• Post Reply Bookmark Topic Watch Topic
  • New Topic

URL inside an WSDL file  RSS feed

 
Simon Yue
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a newbie to web services programming (and actually a newbie to java also).

I am currently writing a simple web service client and server. The only requirement documentation available is a WSDL file. There are several URLs inside the WSDL file (e.g. targetNamespace="http://namespaces.unmz.cz/csn369791"; xs:schema xmlns="http://namespaces.unmz.cz/csn369791"; soap:address location="http://spoc-server/SPOC/".

Which of the above is related to (and should follow) the URL of the server hosting the web services? Thanks.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
The targetNamespace attribute declares the target namespace. It may look like an URL, but it does not (necessarily) mean that there is any server at that location, the same goes for all namespace declarations, like xmlns="...".
The address of the service is found in the <service> element in the WSDL. Take a look at the following example:

The above is a service that uses SOAP binding and the address of the service is the value of the location attribute in the <soap:address> element - http://example.com/stockquote.
This is not the whole truth, but should at least get you going, I hope.
Best wishes!
 
Simon Yue
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!