Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

SOAP connection via tunnel server possibilities (4 Comments)

$
0
0

Topic by Gaurav

Content

We can't connect to RightNow end point directly (via http or https) from our development & production environment. We have an intermediate server which listens SOAP requests on a specific listening port, and forward the request to appropriate external end point accordingly. It also gets the response from external end point and returns back to calling environment.(Tunnle Server: This is our first development to consume right now services & this is first time we are using this approach to connect to right now).

We have generated Webservice stubs (using Axis framwork) and developed our module specific logic to call the web service.

When we execute this code from development environment (via above mentioned Tunnel server) it returns an exception as bellow;

Caused by: org.apache.axis2.AxisFault: Data element in the Message is NULL
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at com.rightnow.ws.wsdl.data.RightNowSyncServiceStub.runAnalyticsReport(RightNowSyncServiceStub.java:5964)
 
And when we execute the same code from our local desktops (from IDE), we get expected response from web service.
 
Only difference is;
From Development environment the endpoint URL is some thing as below:
http://<TunnelServerIP>:<TunnelServerListeningPort>/cgi-bin/<interface>.cfg/services/soap
while from local desktop, the endpoint URL is directly the rightnow end point.
https://<RN host name>/cgi-bin/<interface>.cfg/services/soap
 
Please help, we are facing this issue from many days and not able to find the cause & fix for this.

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles