You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ae...@rbc.com on 2005/02/23 14:18:43 UTC

?wsdl

does anyone know why the WSDL generated with ? at the end of the service URL is different from the WSDL generated using org.apache.axis.wsdl.Java2WSDL when working with rpc/encoded services? 

The main difference seems to be in the definition of the simple types as the Java2WSDL version defines the base type as xsd:string but the dynamic version defines it as soapenc:string.

This problem seems to have been introduced in Axis1.2RC2 as the dynamically generated wsdl running under Axis1.1 defines the base type as xsd:string. 

Example:- 
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 ?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.

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

Re: ?wsdl

Posted by Eugene Shershnev <sh...@gmail.com>.
?wsdlJust a note, it does not matter what is the namespace prefix - xsd or soapenc.
Both are just "shortcuts" to a namespace. If the "value" of both is the same, the 2 XML fragments below are identical from parser's point of view.

So, just to complete your question you may want to post declarations of those 2 namespaces.
  ----- Original Message ----- 
  From: aedemar.cooke@rbc.com 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, February 23, 2005 8:18a
  Subject: ?wsdl


  does anyone know why the WSDL generated with ? at the end of the service URL is different from the WSDL generated using org.apache.axis.wsdl.Java2WSDL when working with rpc/encoded services? 

  The main difference seems to be in the definition of the simple types as the Java2WSDL version defines the base type as xsd:string but the dynamic version defines it as soapenc:string.

  This problem seems to have been introduced in Axis1.2RC2 as the dynamically generated wsdl running under Axis1.1 defines the base type as xsd:string. 

  Example:- 
  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 ?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.

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