axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Manganelli <>
Subject WSDL2Java produces source with incorrect parameter names
Date Mon, 15 Nov 2004 10:07:30 GMT
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:

  faultCode: {}Server.generalException
  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="" xmlns:xsd=""
  <ns1:ciao soapenv:encodingStyle="" xmlns:ns1="http://Ciao">
   <ns1:documento href="#id0"/>
   <key xsi:type="xsd:string">ciao</key>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle=""

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=""
xmlns:bpws="" xmlns:plnk=""
xmlns:tns="http://Ciao" xmlns:xsd="">
      <schema targetNamespace="http://Ciao" xmlns="">
           <element name="documento">
                     <restriction base="string">
                          <enumeration value="D1"/>
                          <enumeration value="D2"/>
   <message name="CiaoOUTMsg">
      <part name="key" type="xsd:string"/>
      <part name="protN" type="xsd:string"/>
   <message name="CiaoINMsg">
      <part element="tns:documento" name="doc"/>
      <part name="key" type="xsd:string"/>
   <portType name="Ciao_PT">
      <operation name="ciao">
         <input message="tns:CiaoINMsg"/>
         <output message="tns:CiaoOUTMsg"/>
   <binding name="Ciao_PLTServiceBinding" type="tns:Ciao_PT">
      <soap:binding style="rpc" transport="" xmlns:soap=""/>
      <operation name="ciao">
       <soap:operation soapAction="" style="rpc" xmlns:soap=""/>
        <soap:body encodingStyle="" use="encoded"
        <soap:body encodingStyle="" use="encoded"
   <service name="Ciao_PLTService">
      <port binding="tns:Ciao_PLTServiceBinding" name="Ciao_PLTServicePort">
       <soap:address location="http://localhost:8080/active-bpel/services/Ciao_PLTService"

View raw message