Title: import namespace
Yes, I could use the workaround but that doesn't explain why it is happening. I prefer to use the dynamic wsdl as this typically means that clients are sure they are looking at the most up-to-date version of the service.  Introducing a static file increases the possibility of errors.
 
I have compared the Java2WSDL static version against the version generated by the AdminService and the main difference is that the static version defines the base type as xsd:string but the dynamic version defines it as soapenc:string
 
I have tried converting my service to Wrapped/Document literal using Axis1.2 but it doesn't work for my service -  I am hoping Axis1.3 (http://issues.apache.org/jira/browse/AXIS-1547) resolves the issues with it.
 
 
Java2WSDL version
 

<simpleType name="MatchCriteria">

<restriction base="xsd:string">

<enumeration value="LessThan"/>

<enumeration value="GreaterThan"/>

<enumeration value="EndsWith"/>

<enumeration value="StartsWith"/>

<enumeration value="Contains"/>

<enumeration value="NotEqual"/>

<enumeration value="Exact"/>

</restriction>

</simpleType>

<complexType abstract="true" name="Query">

<sequence>

<element name="matchCriteria" nillable="true" type="tns3:MatchCriteria"/>

<element name="queryValue" nillable="true" type="xsd:string"/>

</sequence>

</complexType>

 
Axis1.2RC2 automatically generated service description Inquiry?wsdl

<simpleType name="MatchCriteria">

<restriction base="soapenc:string">

<enumeration value="LessThan"/>

<enumeration value="GreaterThan"/>

<enumeration value="EndsWith"/>

<enumeration value="StartsWith"/>

<enumeration value="Contains"/>

<enumeration value="NotEqual"/>

<enumeration value="Exact"/>

</restriction>

</simpleType>

<complexType abstract="true" name="Query">

<sequence>

<element name="matchCriteria" nillable="true" type="tns2:MatchCriteria"/>

<element name="queryValue" nillable="true" type="soapenc:string"/>

</sequence>

</complexType>

 
 

------------------------------------------------------------

This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.

Ce courrier �lectronique est confidentiel et prot�g�. L'exp�diteur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) d�sign�(s) est interdite. Si vous recevez ce courrier �lectronique par erreur, veuillez m'en aviser imm�diatement, par retour de courrier �lectronique ou par un autre moyen.

============================================================

Reply via email to