This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes problem with endpoint url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "problem with endpoint url " Watch "problem with endpoint url " New topic
Author

problem with endpoint url

vasu chowdary
Ranch Hand

Joined: Mar 15, 2008
Posts: 90
Dear ranch supporters,

I Have a small doubt about end point url in web wervices.Actually in my development i have 3 environments test1,test2 and test3.we have a web services application which has to test in all the 3 environments.We will deploy the same application in 3 environments.In test1 we deployed the application and in wsdl file we observed that <soap:address location="http://test1.xyz.com/wcf/HCPCSService.svc" />,location pointed to current environment.After that we developed a client application(web application) and generated the stubs using the wsdl(we copied the wsdl to client application ), in test1 and it working perfectly.In the generated stubs there is URL in proxy class which points to the wsdl in client application.

now my doubt is if we deploy the application in test2 the soap:address location will point to test2,then the am i need to generate the stubs again for the client application?

environment:rad8,websphere7,jax-ws,jdk6
shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
vasu chowdary wrote:Dear ranch supporters,

I Have a small doubt about end point url in web wervices.Actually in my development i have 3 environments test1,test2 and test3.we have a web services application which has to test in all the 3 environments.We will deploy the same application in 3 environments.In test1 we deployed the application and in wsdl file we observed that <soap:address location="http://test1.xyz.com/wcf/HCPCSService.svc" />,location pointed to current environment.After that we developed a client application(web application) and generated the stubs using the wsdl(we copied the wsdl to client application ), in test1 and it working perfectly.In the generated stubs there is URL in proxy class which points to the wsdl in client application.

now my doubt is if we deploy the application in test2 the soap:address location will point to test2,then the am i need to generate the stubs again for the client application?

environment:rad8,websphere7,jax-ws,jdk6


According to the environment, the endpoint will vary so the client stub. Because stub keeps the wsdl url that will differ according to the endpoints. If in all environment, the endpoint url is same then no need to generate stub again.
 
jQuery in Action, 2nd edition
 
subject: problem with endpoint url