Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You don't really have to modify wsdl to achieve this. If you are using Eclipse Helios Web service Client Wizard, On the second step (optional) where you specify output folder for generated source, there's a checkbox for 'Define custom mapping for namespace to package.'. Select that box and on the next form you can define your custom package mappings.</p> <p><H2>EDIT 1:</h2> Link to the <a href="http://help.eclipse.org/helios/topic/org.eclipse.jst.ws.axis2.ui.doc.user/topics/taxis2client.html" rel="noreferrer">Official Documentation</a></p> <p><H2>EDIT 2:</H2></p> <h3>WSDL</h3> <pre><code>&lt;wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://mycompany.com/MyService.wsdl" xmlns:scm="http://mycompany.com/MyService.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://mycompany.com/MyService.wsdl"&gt; ... </code></pre> <p>For simple wsdl as shown above, custom mapping would look like as below.</p> <p><code>http://mycompany.com/MyService.wsdl - com.mycompany.ws.workflow</code> <code>http://mycompany.com/MyService.xsd - com.mycompany.ws.workflow.schema</code></p> <p>You can click Add and enter name-space and package names or you can store mapping in properties file and click import to add it all at once. I prefer properties file. Also you have to escape the name space URL and other special characters if you are going to use properties file. Your properties file should look similar to below.</p> <h3>nsmapping.properties</h3> <p><code>http\://mycompany.com/MyService.wsdl=com.mycompany.ws.workflow</code> <code>http\://mycompany.com/MyService.xsd=com.mycompany.ws.workflow.schema</code></p> <p>Excerpt from official documentation.</p> <blockquote> <p>The content of the properties file must be of the format namespace=package. You will need to escape some special characters in the properties files. For example <a href="http://someNamespace=somePackage" rel="noreferrer">http://someNamespace=somePackage</a> should be http://someNamespace=somePackage. Otherwise, the colon (:) would be treated as delimiter resulting in trying to map http to //someNamespace=somePackage.</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload