Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAP Set Endpoint Not Working

 
Jeff Margileth
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've generated SOAP classes via wsimport from a local WSDL. All of the URLs in the WSDL point to the production services, but for testing I need to connect to a test location (different URL). There are dozens of examples on the web to set the endpoint, but it doesn't seem to be working for me - it's hitting the prod URL, not test.



The debug correctly shows the TEST port being set correctly, but when executed, inside one of the handler resolvers, I have the following code:



The top debug lines both show the PRODUCTION URL! Shouldn't at least the port be the DEMO URL that I'd previously set?

Am I doing something wrong? Can someone point me in the right direction?

Thank you for the help.

Jeff
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2693
156
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeff,

Your code looks ok, and I don't know if this helps, but change the last part of your code:

into

 
Jeff Margileth
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fritz,

Thanks for the response! That's certainly a bit cleaner. I ended up pulling up wireshark today and sniffing the traffic - the logged WSDL_PORT is just wrong! The code is working (there's clearly some other problem, as the API isn't returning successfully, but we're moving forward...) It's very misleading though that it's logging the port as somewhere other than it's actually going! Very confusing, but it is what it is, I guess. As I said, I'm a bit new to SOAP so stumbling through it, but at least making progress. Thanks again for the reply!

Jeff
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!