Project and Portfolio Management Practitioners Forum
cancel

Web Service - Load Balancer URL

Highlighted
Akif Saburi
Super Contributor.

Web Service - Load Balancer URL

Web service works fine when I use localhost and port. But its not working while using the load balancer URL.

I dont want to call web service using localhost.

 

PPM: 9.20

Web Server: IIS

Java: jdk1.7.0_17

 

==========e.g.===========
bash-4.1$ java examples.dm.DemandServiceClient http://localhost:9000/itg/ppmservices/DemandService?wsdl
Starting Demand Service tests...
Request Id: 477647
Demand Service tests complete.

========but fails with loadbalance URL===========

bash-4.1$ java examples.dm.DemandServiceClient http://ppm.dev.com/itg/ppmservices/DemandService?wsdl
May 15, 2013 11:25:46 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled
Exception in thread "main" org.apache.axis2.AxisFault: HTTP Transport error : '307' - 'Temporary Redirect'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '307' - 'Temporary Redirect'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '307' - 'Temporary Redirect'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '307' - 'Temporary Redirect'
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at com.mercury.itg.ws.dm.client.DemandServiceStub.createRequest(DemandServiceStub.java:542)
at examples.dm.DemandServiceClient.createRequest(DemandServiceClient.java:247)
at examples.dm.DemandServiceClient.main(DemandServiceClient.java:78)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '307' - 'Temporary Redirect'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '307' - 'Temporary Redirect'
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
... 6 more
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '307' - 'Temporary Redirect'
at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:149)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
... 7 more