Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in config-interface.xml file

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below shown is config-interface.xml from J2EETutorials which creates
MyHelloService.wsdl file.

<?xml version="1.0" encoding="UTF-8"?>
<configuration
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<service
name="MyHelloService"
targetNamespace="urn:Foo"
typeNamespace="urn:Foo"
packageName="helloservice">
<interface name="helloservice.HelloIF"/>
</service>
</configuration>

I have a doubt for targetNamespace and typeNamespace attribute.
What is difference between targetNamespace and typeNamespace?
Is xmlns always fixed i.e (http://java.sun.com/xml/ns/jax-rpc/ri/config)?

Thanks
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/webservices/docs/1.6/jaxrpc/jaxrpc-tools.html

As far as I can tell typenamespace is the namespace that the wscompile tool will use inside the <types> section of the WSDL.
targetNamespace defines the target namespace for the WSDL (with exception of the <types> section).
{http://java.sun.com/xml/ns/jax-rpc/ri/config} is simply the namespace that all types/elements for the JWSDP configuration exist in.
[ February 28, 2008: Message edited by: Peer Reynders ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic