• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WSDL location and Port address location

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a question on access the WSDL and consuming the Service.

1) Can the wsdl location (server) http://localhost:8082/TestWebService/mathOperation?wsdl and in the WSDL file retrieved, following port address location BE DIFFERENT ?

<wsdl:service name="Test_Server">
<wsdl:port name="TestHttpSoap11Endpoint" binding="ns1:TestSoap11Binding">
<soap:address location="http://service:18082/services/Test_Server.Test_ServerHttpSoap11Endpoint"/>
</wsdl:port>

2) if above both addresses can be different how to implement that ?


thanks in advance

sathees
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I guess you want to know if the WSDL location of a web service can be significantly different from the web service endpoint address found in the WSDL.
If this is your question, then my answer is yes.
WSDLs may be stored in some kind of repository, perhaps even UDDI as envisioned in the past.
The WSDL is retrieved from the repository but the server on which the web service is deployed may be another computer.

The reason for storing the WSDLs in a repository of some sort may be that you want to be able to change the addresses of the web service endpoints.
By just modifying the address of the endpoint in the WSDL, you can redirect clients to different computers without having to modify the clients in any way.
Best wishes!
 
Sathees sam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you for you value able reply, its gives me a clear idea about it.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I assume client stubs do not have to be regenerated just for address/location change. correct me If I am wrong.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
You are right, client artifacts do not need to be generated if only the address of the endpoint has changed.
The code snippet below shows how to modify the endpoint address:

Best wishes!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic