Project and Portfolio Management Practitioners Forum
cancel

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

SOLVED
Go to solution
Highlighted
ADT
Regular Contributor.

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

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! 

 

 

 

 

3 REPLIES
patrick-sa
Super Contributor.

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

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.

 

Utkarsh_Mishra
Acclaimed Contributor.
Solution

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

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
Regular Contributor.

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

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 =)