Can you provide the complete WSDL please? And the WSDD?
Did you use code-first or wsdl-first approach?

Anne

On 9 Feb 2007 07:26:25 -0000, Durga Srinivasu <[EMAIL PROTECTED]> wrote:

Hai All,

I have a question on Axis 1.4.

Is axis supports web service operations with complex java object as input
(Ex: addUser(String userName,NewUser details))?.

I am able to deploy the service with custom java object "NewUser" input.
But when i try to invoke the same service with soap client, i am getting the
following soap fault message.

SOAP RESPONSE:

<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>
      <soapenv:Fault>
        <faultcode>soapenv:Server.userException</faultcode>
        <faultstring>org.xml.sax.SAXException: operation description is
missing parameter description!</faultstring>
        <detail>
            <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/
">srinivasu</ns1:hostname>
        </detail>
      </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>

SOAP REQUEST:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:pwc="http://proactivenet.com/webservices/pwcommand/";>
  <soapenv:Header>
      <pwc:sessionId>EX</pwc:sessionId>
  </soapenv:Header>
  <soapenv:Body>
      <pwc:addUser>
        <pwc:userName>EX</pwc:userName>
        <pwc:newUser>
            <pwc:email>EX</pwc:email>
            <pwc:password>EX</pwc:password>
            <pwc:forcePasswordChange>EX</pwc:forcePasswordChange>
        </pwc:newUser>
      </pwc:addUser>
  </soapenv:Body>
</soapenv:Envelope>

addUser schema definition in wsdl:

<xs:complexType name="NewUser">
  <xs:sequence>
    <xs:element name="email" type="xs:string" />
    <xs:element name="password" type="xs:string" />
    <xs:element name="forcePasswordChange" type="xs:boolean" />
  </xs:sequence>
</xs:complexType>

<xs:element name="addUser">
  <xs:complexType>
  <xs:sequence>
    <xs:element name="userName" type="xs:string" />
    <xs:element name="newUser" type="tns:NewUser" />
  </xs:sequence>
  </xs:complexType>
</xs:element>


If anybody is facing the similar issue, please let me know.

thanks
Durga Srinivasu


<http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/[EMAIL
 PROTECTED]>

Reply via email to