You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Trapanator (JIRA)" <ax...@ws.apache.org> on 2004/11/11 16:46:27 UTC

[jira] Created: (AXIS-1658) WSDL2Java produces source with incorrect parameter names

WSDL2Java produces source with incorrect parameter names
--------------------------------------------------------

         Key: AXIS-1658
         URL: http://nagoya.apache.org/jira/browse/AXIS-1658
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2RC1, 1.2RC2    
 Environment: Windows 2000
Axis 1.2 RC1
JDK 1.4.2
    Reporter: Trapanator
    Priority: Blocker


I have the WSDL (at the end of this message). I think there's a WSDL2Java bug: when I invoke the "Ciao" operation, my ActiveBPEL server (with its Axis server) returns me an error:

  AxisFault
  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
  faultSubcode:
  faultString: Missing parameter for service request: doc

the problem is in this SOAP message (sent from client):

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:ciao soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://Ciao">
   <ns1:documento href="#id0"/>
   <key xsi:type="xsd:string">ciao</key>
  </ns1:ciao>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">D1</multiRef>
 </soapenv:Body>
</soapenv:Envelope>

as you see,  the tag "<ns1:documento href="#id0"/>" is wrong: it should be "<ns1:doc ... />"


WSDL is following:

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Ciao" targetNamespace="http://Ciao" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://Ciao" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <types>
      <schema targetNamespace="http://Ciao" xmlns="http://www.w3.org/2001/XMLSchema">
           <element name="documento">
                <simpleType>
                     <restriction base="string">
                          <enumeration value="D1"/>
                          <enumeration value="D2"/>
                     </restriction>
                </simpleType>
           </element>
      </schema>
   </types>
   <message name="CiaoOUTMsg">
      <part name="key" type="xsd:string"/>
      <part name="protN" type="xsd:string"/>
   </message>
   <message name="CiaoINMsg">
      <part element="tns:documento" name="doc"/>
      <part name="key" type="xsd:string"/>
   </message>
   <portType name="Ciao_PT">
      <operation name="ciao">
         <input message="tns:CiaoINMsg"/>
         <output message="tns:CiaoOUTMsg"/>
      </operation>
   </portType>
   <binding name="Ciao_PLTServiceBinding" type="tns:Ciao_PT">
      <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      <operation name="ciao">
       <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
         <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
         </input>
         <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
         </output>
      </operation>
   </binding>
   <service name="Ciao_PLTService">
      <port binding="tns:Ciao_PLTServiceBinding" name="Ciao_PLTServicePort">
       <soap:address location="http://localhost:8080/active-bpel/services/Ciao_PLTService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      </port>
   </service>
</definitions>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1658) WSDL2Java produces source with incorrect parameter names

Posted by "Ashutosh Shahi (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1658?page=comments#action_55608 ]
     
Ashutosh Shahi commented on AXIS-1658:
--------------------------------------

Hi,
   The comment that i made is based on the link at: http://publib.boulder.ibm.com/infocenter/ws51help/index.jsp?topic=/com.ibm.websphere.exp.doc/info/exp/ae/rwbs_map.html , u can check in the section "mapping between wsdl and soap messages". It says:
--- If the wsdl:part is defined using the type attribute, the name and type of the part are used in the message. If the wsdl:part is defined using the element attribute, the name and type of the element are used in the message. The element attribute is not allowed by the JAX-RPC specification when use="encoded". ---

Also, JAX-RPC 1.1 section 6.3 says the same.

My suggestion is, you can try to modify the wsdl by changing the "element" attribute to "type" attribute, and then see if it works.
Ashutosh

> WSDL2Java produces source with incorrect parameter names
> --------------------------------------------------------
>
>          Key: AXIS-1658
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1658
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1, 1.2RC2
>  Environment: Windows 2000
> Axis 1.2 RC1
> JDK 1.4.2
>     Reporter: Trapanator
>     Priority: Blocker

>
> I have the WSDL (at the end of this message). I think there's a WSDL2Java bug: when I invoke the "Ciao" operation, my ActiveBPEL server (with its Axis server) returns me an error:
>   AxisFault
>   faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>   faultSubcode:
>   faultString: Missing parameter for service request: doc
> the problem is in this SOAP message (sent from client):
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Body>
>   <ns1:ciao soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://Ciao">
>    <ns1:documento href="#id0"/>
>    <key xsi:type="xsd:string">ciao</key>
>   </ns1:ciao>
>   <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">D1</multiRef>
>  </soapenv:Body>
> </soapenv:Envelope>
> as you see,  the tag "<ns1:documento href="#id0"/>" is wrong: it should be "<ns1:doc ... />"
> WSDL is following:
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="Ciao" targetNamespace="http://Ciao" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://Ciao" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>    <types>
>       <schema targetNamespace="http://Ciao" xmlns="http://www.w3.org/2001/XMLSchema">
>            <element name="documento">
>                 <simpleType>
>                      <restriction base="string">
>                           <enumeration value="D1"/>
>                           <enumeration value="D2"/>
>                      </restriction>
>                 </simpleType>
>            </element>
>       </schema>
>    </types>
>    <message name="CiaoOUTMsg">
>       <part name="key" type="xsd:string"/>
>       <part name="protN" type="xsd:string"/>
>    </message>
>    <message name="CiaoINMsg">
>       <part element="tns:documento" name="doc"/>
>       <part name="key" type="xsd:string"/>
>    </message>
>    <portType name="Ciao_PT">
>       <operation name="ciao">
>          <input message="tns:CiaoINMsg"/>
>          <output message="tns:CiaoOUTMsg"/>
>       </operation>
>    </portType>
>    <binding name="Ciao_PLTServiceBinding" type="tns:Ciao_PT">
>       <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       <operation name="ciao">
>        <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          <input>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </input>
>          <output>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </output>
>       </operation>
>    </binding>
>    <service name="Ciao_PLTService">
>       <port binding="tns:Ciao_PLTServiceBinding" name="Ciao_PLTServicePort">
>        <soap:address location="http://localhost:8080/active-bpel/services/Ciao_PLTService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       </port>
>    </service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1658) WSDL2Java produces source with incorrect parameter names

Posted by "Ashutosh Shahi (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1658?page=comments#action_55613 ]
     
Ashutosh Shahi commented on AXIS-1658:
--------------------------------------

As I see, u have removed one part section (protN) from the CiaoOUTMsg and that is why u get the return type as void. Even in the previous case, only protN was being returned and not key. 
I think this is happening because of duplicate name, key, in both CiaoINMsg and CiaoOUTMsg or because you r returning two strings, not sure though. You can try returning a complex type containing both the strings incase u want to return two strings. Hope that helps.
Ashutosh

> WSDL2Java produces source with incorrect parameter names
> --------------------------------------------------------
>
>          Key: AXIS-1658
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1658
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1, 1.2RC2
>  Environment: Windows 2000
> Axis 1.2 RC1
> JDK 1.4.2
>     Reporter: Trapanator
>     Priority: Blocker

>
> I have the WSDL (at the end of this message). I think there's a WSDL2Java bug: when I invoke the "Ciao" operation, my ActiveBPEL server (with its Axis server) returns me an error:
>   AxisFault
>   faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>   faultSubcode:
>   faultString: Missing parameter for service request: doc
> the problem is in this SOAP message (sent from client):
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Body>
>   <ns1:ciao soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://Ciao">
>    <ns1:documento href="#id0"/>
>    <key xsi:type="xsd:string">ciao</key>
>   </ns1:ciao>
>   <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">D1</multiRef>
>  </soapenv:Body>
> </soapenv:Envelope>
> as you see,  the tag "<ns1:documento href="#id0"/>" is wrong: it should be "<ns1:doc ... />"
> WSDL is following:
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="Ciao" targetNamespace="http://Ciao" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://Ciao" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>    <types>
>       <schema targetNamespace="http://Ciao" xmlns="http://www.w3.org/2001/XMLSchema">
>            <element name="documento">
>                 <simpleType>
>                      <restriction base="string">
>                           <enumeration value="D1"/>
>                           <enumeration value="D2"/>
>                      </restriction>
>                 </simpleType>
>            </element>
>       </schema>
>    </types>
>    <message name="CiaoOUTMsg">
>       <part name="key" type="xsd:string"/>
>       <part name="protN" type="xsd:string"/>
>    </message>
>    <message name="CiaoINMsg">
>       <part element="tns:documento" name="doc"/>
>       <part name="key" type="xsd:string"/>
>    </message>
>    <portType name="Ciao_PT">
>       <operation name="ciao">
>          <input message="tns:CiaoINMsg"/>
>          <output message="tns:CiaoOUTMsg"/>
>       </operation>
>    </portType>
>    <binding name="Ciao_PLTServiceBinding" type="tns:Ciao_PT">
>       <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       <operation name="ciao">
>        <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          <input>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </input>
>          <output>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </output>
>       </operation>
>    </binding>
>    <service name="Ciao_PLTService">
>       <port binding="tns:Ciao_PLTServiceBinding" name="Ciao_PLTServicePort">
>        <soap:address location="http://localhost:8080/active-bpel/services/Ciao_PLTService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       </port>
>    </service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1658) WSDL2Java produces source with incorrect parameter names

Posted by "Trapanator (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1658?page=comments#action_55611 ]
     
Trapanator commented on AXIS-1658:
----------------------------------

If I modify the wsdl as your suggestion (see following) it works. But there's a strange bug:
the "ciao" operation has void return value, instead of String (as in WSDL, see "CiaoOUTMsg").
What's the problem?

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Ciao" targetNamespace="http://Ciao" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://Ciao" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <types>
      <schema targetNamespace="http://Ciao" xmlns="http://www.w3.org/2001/XMLSchema">
			    <simpleType name="documento">
				     <restriction base="string">
					      <enumeration value="D1"/>
					      <enumeration value="D2"/>
				     </restriction>
			    </simpleType>
	  </schema>
   </types>

   <message name="CiaoOUTMsg">
      <part name="key" type="xsd:string"/>
   </message>

   <message name="CiaoINMsg">
      <part type="tns:documento" name="doc"/>
      <part name="key" type="xsd:string"/>
   </message>

   <portType name="Ciao_PT">
      <operation name="ciao">
         <input message="tns:CiaoINMsg"/>
         <output message="tns:CiaoOUTMsg"/>
      </operation>

   </portType>

   <binding name="Ciao_PLTServiceBinding" type="tns:Ciao_PT">
      <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      <operation name="ciao">
       <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
         <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
         </input>

         <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
         </output>

      </operation>
   </binding>

   <service name="Ciao_PLTService">
      <port binding="tns:Ciao_PLTServiceBinding" name="Ciao_PLTServicePort">
       <soap:address location="http://localhost:8080/active-bpel/services/Ciao_PLTService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      </port>
   </service>

</definitions>



> WSDL2Java produces source with incorrect parameter names
> --------------------------------------------------------
>
>          Key: AXIS-1658
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1658
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1, 1.2RC2
>  Environment: Windows 2000
> Axis 1.2 RC1
> JDK 1.4.2
>     Reporter: Trapanator
>     Priority: Blocker

>
> I have the WSDL (at the end of this message). I think there's a WSDL2Java bug: when I invoke the "Ciao" operation, my ActiveBPEL server (with its Axis server) returns me an error:
>   AxisFault
>   faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>   faultSubcode:
>   faultString: Missing parameter for service request: doc
> the problem is in this SOAP message (sent from client):
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Body>
>   <ns1:ciao soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://Ciao">
>    <ns1:documento href="#id0"/>
>    <key xsi:type="xsd:string">ciao</key>
>   </ns1:ciao>
>   <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">D1</multiRef>
>  </soapenv:Body>
> </soapenv:Envelope>
> as you see,  the tag "<ns1:documento href="#id0"/>" is wrong: it should be "<ns1:doc ... />"
> WSDL is following:
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="Ciao" targetNamespace="http://Ciao" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://Ciao" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>    <types>
>       <schema targetNamespace="http://Ciao" xmlns="http://www.w3.org/2001/XMLSchema">
>            <element name="documento">
>                 <simpleType>
>                      <restriction base="string">
>                           <enumeration value="D1"/>
>                           <enumeration value="D2"/>
>                      </restriction>
>                 </simpleType>
>            </element>
>       </schema>
>    </types>
>    <message name="CiaoOUTMsg">
>       <part name="key" type="xsd:string"/>
>       <part name="protN" type="xsd:string"/>
>    </message>
>    <message name="CiaoINMsg">
>       <part element="tns:documento" name="doc"/>
>       <part name="key" type="xsd:string"/>
>    </message>
>    <portType name="Ciao_PT">
>       <operation name="ciao">
>          <input message="tns:CiaoINMsg"/>
>          <output message="tns:CiaoOUTMsg"/>
>       </operation>
>    </portType>
>    <binding name="Ciao_PLTServiceBinding" type="tns:Ciao_PT">
>       <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       <operation name="ciao">
>        <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          <input>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </input>
>          <output>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </output>
>       </operation>
>    </binding>
>    <service name="Ciao_PLTService">
>       <port binding="tns:Ciao_PLTServiceBinding" name="Ciao_PLTServicePort">
>        <soap:address location="http://localhost:8080/active-bpel/services/Ciao_PLTService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       </port>
>    </service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1658) WSDL2Java produces source with incorrect parameter names

Posted by "Ashutosh Shahi (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1658?page=comments#action_55526 ]
     
Ashutosh Shahi commented on AXIS-1658:
--------------------------------------

Hi,
   I see a problem with your WSDL, is it hand written or a generated one. The problem is, according to JAX-RPC specification, the "element" attribute in wsdl:part is not allowed in rpc/encoded mode.
Thanks,
Ashutosh

> WSDL2Java produces source with incorrect parameter names
> --------------------------------------------------------
>
>          Key: AXIS-1658
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1658
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1, 1.2RC2
>  Environment: Windows 2000
> Axis 1.2 RC1
> JDK 1.4.2
>     Reporter: Trapanator
>     Priority: Blocker

>
> I have the WSDL (at the end of this message). I think there's a WSDL2Java bug: when I invoke the "Ciao" operation, my ActiveBPEL server (with its Axis server) returns me an error:
>   AxisFault
>   faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>   faultSubcode:
>   faultString: Missing parameter for service request: doc
> the problem is in this SOAP message (sent from client):
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Body>
>   <ns1:ciao soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://Ciao">
>    <ns1:documento href="#id0"/>
>    <key xsi:type="xsd:string">ciao</key>
>   </ns1:ciao>
>   <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">D1</multiRef>
>  </soapenv:Body>
> </soapenv:Envelope>
> as you see,  the tag "<ns1:documento href="#id0"/>" is wrong: it should be "<ns1:doc ... />"
> WSDL is following:
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="Ciao" targetNamespace="http://Ciao" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://Ciao" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>    <types>
>       <schema targetNamespace="http://Ciao" xmlns="http://www.w3.org/2001/XMLSchema">
>            <element name="documento">
>                 <simpleType>
>                      <restriction base="string">
>                           <enumeration value="D1"/>
>                           <enumeration value="D2"/>
>                      </restriction>
>                 </simpleType>
>            </element>
>       </schema>
>    </types>
>    <message name="CiaoOUTMsg">
>       <part name="key" type="xsd:string"/>
>       <part name="protN" type="xsd:string"/>
>    </message>
>    <message name="CiaoINMsg">
>       <part element="tns:documento" name="doc"/>
>       <part name="key" type="xsd:string"/>
>    </message>
>    <portType name="Ciao_PT">
>       <operation name="ciao">
>          <input message="tns:CiaoINMsg"/>
>          <output message="tns:CiaoOUTMsg"/>
>       </operation>
>    </portType>
>    <binding name="Ciao_PLTServiceBinding" type="tns:Ciao_PT">
>       <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       <operation name="ciao">
>        <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          <input>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </input>
>          <output>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </output>
>       </operation>
>    </binding>
>    <service name="Ciao_PLTService">
>       <port binding="tns:Ciao_PLTServiceBinding" name="Ciao_PLTServicePort">
>        <soap:address location="http://localhost:8080/active-bpel/services/Ciao_PLTService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       </port>
>    </service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1658) WSDL2Java produces source with incorrect parameter names

Posted by "Trapanator (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1658?page=comments#action_55532 ]
     
Trapanator commented on AXIS-1658:
----------------------------------

Yes, it's generated by ActiveBPEL with its own Axis server. So, I must modify the WSDL to be usuable by WSDL2Java?

> WSDL2Java produces source with incorrect parameter names
> --------------------------------------------------------
>
>          Key: AXIS-1658
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1658
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1, 1.2RC2
>  Environment: Windows 2000
> Axis 1.2 RC1
> JDK 1.4.2
>     Reporter: Trapanator
>     Priority: Blocker

>
> I have the WSDL (at the end of this message). I think there's a WSDL2Java bug: when I invoke the "Ciao" operation, my ActiveBPEL server (with its Axis server) returns me an error:
>   AxisFault
>   faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>   faultSubcode:
>   faultString: Missing parameter for service request: doc
> the problem is in this SOAP message (sent from client):
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Body>
>   <ns1:ciao soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://Ciao">
>    <ns1:documento href="#id0"/>
>    <key xsi:type="xsd:string">ciao</key>
>   </ns1:ciao>
>   <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">D1</multiRef>
>  </soapenv:Body>
> </soapenv:Envelope>
> as you see,  the tag "<ns1:documento href="#id0"/>" is wrong: it should be "<ns1:doc ... />"
> WSDL is following:
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="Ciao" targetNamespace="http://Ciao" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://Ciao" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>    <types>
>       <schema targetNamespace="http://Ciao" xmlns="http://www.w3.org/2001/XMLSchema">
>            <element name="documento">
>                 <simpleType>
>                      <restriction base="string">
>                           <enumeration value="D1"/>
>                           <enumeration value="D2"/>
>                      </restriction>
>                 </simpleType>
>            </element>
>       </schema>
>    </types>
>    <message name="CiaoOUTMsg">
>       <part name="key" type="xsd:string"/>
>       <part name="protN" type="xsd:string"/>
>    </message>
>    <message name="CiaoINMsg">
>       <part element="tns:documento" name="doc"/>
>       <part name="key" type="xsd:string"/>
>    </message>
>    <portType name="Ciao_PT">
>       <operation name="ciao">
>          <input message="tns:CiaoINMsg"/>
>          <output message="tns:CiaoOUTMsg"/>
>       </operation>
>    </portType>
>    <binding name="Ciao_PLTServiceBinding" type="tns:Ciao_PT">
>       <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       <operation name="ciao">
>        <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          <input>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </input>
>          <output>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </output>
>       </operation>
>    </binding>
>    <service name="Ciao_PLTService">
>       <port binding="tns:Ciao_PLTServiceBinding" name="Ciao_PLTServicePort">
>        <soap:address location="http://localhost:8080/active-bpel/services/Ciao_PLTService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       </port>
>    </service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1658) WSDL2Java produces source with incorrect parameter names

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1658?page=history ]

Davanum Srinivas updated AXIS-1658:
-----------------------------------

    Priority: Major  (was: Blocker)

downgrading the bug.

> WSDL2Java produces source with incorrect parameter names
> --------------------------------------------------------
>
>          Key: AXIS-1658
>          URL: http://issues.apache.org/jira/browse/AXIS-1658
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1, 1.2RC2
>  Environment: Windows 2000
> Axis 1.2 RC1
> JDK 1.4.2
>     Reporter: Trapanator

>
> I have the WSDL (at the end of this message). I think there's a WSDL2Java bug: when I invoke the "Ciao" operation, my ActiveBPEL server (with its Axis server) returns me an error:
>   AxisFault
>   faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>   faultSubcode:
>   faultString: Missing parameter for service request: doc
> the problem is in this SOAP message (sent from client):
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Body>
>   <ns1:ciao soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://Ciao">
>    <ns1:documento href="#id0"/>
>    <key xsi:type="xsd:string">ciao</key>
>   </ns1:ciao>
>   <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">D1</multiRef>
>  </soapenv:Body>
> </soapenv:Envelope>
> as you see,  the tag "<ns1:documento href="#id0"/>" is wrong: it should be "<ns1:doc ... />"
> WSDL is following:
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="Ciao" targetNamespace="http://Ciao" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://Ciao" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>    <types>
>       <schema targetNamespace="http://Ciao" xmlns="http://www.w3.org/2001/XMLSchema">
>            <element name="documento">
>                 <simpleType>
>                      <restriction base="string">
>                           <enumeration value="D1"/>
>                           <enumeration value="D2"/>
>                      </restriction>
>                 </simpleType>
>            </element>
>       </schema>
>    </types>
>    <message name="CiaoOUTMsg">
>       <part name="key" type="xsd:string"/>
>       <part name="protN" type="xsd:string"/>
>    </message>
>    <message name="CiaoINMsg">
>       <part element="tns:documento" name="doc"/>
>       <part name="key" type="xsd:string"/>
>    </message>
>    <portType name="Ciao_PT">
>       <operation name="ciao">
>          <input message="tns:CiaoINMsg"/>
>          <output message="tns:CiaoOUTMsg"/>
>       </operation>
>    </portType>
>    <binding name="Ciao_PLTServiceBinding" type="tns:Ciao_PT">
>       <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       <operation name="ciao">
>        <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          <input>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </input>
>          <output>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </output>
>       </operation>
>    </binding>
>    <service name="Ciao_PLTService">
>       <port binding="tns:Ciao_PLTServiceBinding" name="Ciao_PLTServicePort">
>        <soap:address location="http://localhost:8080/active-bpel/services/Ciao_PLTService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       </port>
>    </service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira