This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am using jboss 4.0.4 GA to generate wsdl file. I am using wstools ant task. WSDL generation is successful, but small issue is to make it more readable. Actually, namespace prefix is not auto generated with definitions , element, complexType,etc. For example, part of wsdl:
But, namespace is there in wsdl:
<definitions name='MyTestAdapter' targetNamespace='http://com.test.com' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
Is there any configuration I need to make in wstools.config.xml?
Any help is really appreciated.
So, as you can see the namespace is defined at the level of the schema. Therefore, can you please post the entire WSDL document?
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Joined: Nov 10, 2010
WSDL generated is the same as given in reference link by you.
Like for complexType, I need "xsd:complexType", where xsd points to xmlns:xsd='http://www.w3.org/2001/XMLSchema'
For <definitions name='TestMessageAdapter' , I need <wsdl:definitions name='TestMessageAdapter'
I am also posting wsdl for reference.
In the example you posted, xsd:complexType and complexType are equivalent since the schema element specifies xmlns='http://www.w3.org/2001/XMLSchema'. Meaning, all elements within the schema element belong to the 'http://www.w3.org/2001/XMLSchema' namespace.
Joined: Nov 10, 2010
Thanks for reply. Yes, it is true that xsd:complexType and complexType are equivalent. There is no issue with functionality too. Only to make wsdl easily readable, I want to append xsd as prefix. As, this wsdl is generated by wstools, not manually and it is in build process. So, there is no option to append prefix manually in wsdl. Is there any option where I can cofigure to have prefix with elements.