Skip to main content
17-Peridot
April 6, 2017
Question

SOAP call getting failed

  • April 6, 2017
  • 8 replies
  • 3577 views

Hi,

I have created a service to invoke webservice and simply testing it to see results,if completed but getting HttpHostConnectException error.

as shown below:

Service :

2.PNG

Test Service:

1.PNG

Any comments on this??

8 replies

5-Regular Member
April 6, 2017

Hi Tarun Nayyar

By looking at the error it seems that the url is not reachable. Could you please reconfirm if the url is accessible from the ThingWorx server or not?

Also, what are the errors in ThingWorx Application, Script, Communication logs

Thanks,

Ankit Gupta

TanmeyTWX17-PeridotAuthor
17-Peridot
April 6, 2017

Error in logs is same as in above Test Service window. And this URL is working fine if invoked by direct hit from TWX but not through TWX javascript

1-Visitor
April 6, 2017

Hi Tarun ,

If that is the case with the same logs you counter , could you check what is result you are getting from postxml

Try result.toString() and see what response you get surely in the response there will be problem you have faced .

Also in the postxml you can pass username or pass if it is the authentication problem .

Also i cannot see the Namespace you have set in your code !

TanmeyTWX17-PeridotAuthor
17-Peridot
April 6, 2017

sorry,I mis-interpreted the requirement.

I need to invoke a webservice url with single input and get the reposne in infotable.

What to do for that?

1-Visitor
April 6, 2017

I'am assuming you have got the response , then it will be just the xml looping and bind the result to the infotable you created .

This will be on the fly result ... if the service ends too slow in getting result you can store the XML over the repository and then you can loop over

the repository XML for result in infotable