ADT Absent Member.
Absent Member.
2870 views

Program Web Service Error - Cannot infer transport information from the URL

Jump to solution

Hi all,

 

My PPM is current on 9.14. I want to use the Program Web service but i hit this error. anyone can help?

Attached is the code(modified a little from the sample example given in toolkit) where it hit this error when createProgram.

 

org.apache.axis2.AxisFault: Cannot infer transport information from the URL
at org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:65)
at org.apache.axis2.client.OperationClient.prepareMessageContext(OperationClient.java:254)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:160)
at com.mercury.itg.ws.pgm.client.ProgramServiceStub.createProgram(ProgramServiceStub.java:188)
at .program.ProgramLoader.testCreateProgram(ProgramLoader.java:167)
at .program.ProgramLoader.doRun(ProgramLoader.java:136)
at .program.ProgramLoader.main(ProgramLoader.java:109)

 

 

How i deploy the web service is:

 

1. add ProgramService.wsdl to my conf>wsdl folder

2. add Program.xsd in my conf>xsd folder

3. replaced all the jar files in lib>ppm folder with those in the webtoolkit

4. add/replace xml-apis.jar,xercesImpl.jar,commons-httpclient-3.1.jar,bcprov-jdk15-143.jar in lib>axis folder

5. add/replace bcprov-jdk15-143.jar in lib>rampart folder

 

did i miss out anything for deploying the Program Web service?

 

 

Thank you! 

 

 

 

 

0 Likes
1 Solution

Accepted Solutions
Established Member.. Utkarsh_Mishra
Established Member..

Re: Program Web Service Error - Cannot infer transport information from the URL

Jump to solution

I think this is not the right way to do this.

 

Following are the most comman way to implement PPM web services.

 

  1. Copy webserivice-toolkit to any PPM directly (Say ppm_root), extract it and then use run_client.bat or sh and complie_client script. You can modify the code provided by HP. Also make sure to set the proper security in password handler class. Please refer web service guides provided by HP.
  2. Another option is to create the cleint using WSDL provided by HP, once client is build you can deploy it in PPM
Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
3 Replies
Super Contributor.. patrick-sa Super Contributor..
Super Contributor..

Re: Program Web Service Error - Cannot infer transport information from the URL

Jump to solution

Hi,

 

 

I had this error and it relates to the location of the services.Please try the following.

 

On the main method

 

 final String serviceURL = args[0] 

 

replace with

 

final String serviceURL = http://your.server.corp:port/itg/ppmservices/DemandService

 

and String requestId = args[1]; 

 

replace with a String requestId = yourId

 

If you can run on the server using hardcoded values then you can troubleshoot further.

 

 

I hope this helps.

 

Patrick.

 

Established Member.. Utkarsh_Mishra
Established Member..

Re: Program Web Service Error - Cannot infer transport information from the URL

Jump to solution

I think this is not the right way to do this.

 

Following are the most comman way to implement PPM web services.

 

  1. Copy webserivice-toolkit to any PPM directly (Say ppm_root), extract it and then use run_client.bat or sh and complie_client script. You can modify the code provided by HP. Also make sure to set the proper security in password handler class. Please refer web service guides provided by HP.
  2. Another option is to create the cleint using WSDL provided by HP, once client is build you can deploy it in PPM
Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
ADT Absent Member.
Absent Member.

Re: Program Web Service Error - Cannot infer transport information from the URL

Jump to solution

Thanks patrick-sa, I've tried it before but couldnt find the cause.

 

Thanks Utkarsh_Mishra, I'll give it a try.

 

 

Kudos to u both 😃 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.