axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Twinkle Thakkar" <tiku.thak...@gmail.com>
Subject Re: ADBException and Running Web Services
Date Wed, 20 Feb 2008 13:11:29 GMT
Hi Amila,

As we have sent earlier following is the SOAP Envelop generated while
requesting from Eclipse Web Service Explorer (We assume

this will be similar to the request SOAP Envelop generated by Java Client) :

*************************************
SOAP Envelop generated by Java Client
*************************************

<?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope

 xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:q0="http://123.com"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

 <soapenv:Body>
  <q0:ListDirectory>
    <directoryListing>/</directoryListing>
  <alsoListFiles>true</alsoListFiles>
  </q0:ListDirectory>
 </soapenv:Body>

</soapenv:Envelope>

And Request Envelop generated by that SOAP Client software (
http://www.ditchnet.org/soapclient/) is as follows:

*************************************
SOAP Envelop generated by SOAP Client
*************************************

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope

    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"

    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

      <SOAP-ENV:Body>
         <ListDirectory xmlns="http://123.com">
           <directoryListing xsi:type="xsd:string">\</directoryListing>
         <alsoListFiles xsi:type="xsd:boolean">true</alsoListFiles>
         </ListDirectory>
      </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

As far as we have spotted as a difference between the two request envelopes
mentioned above, the following two lines in the SOAP Request envelop
generated by SOAP CLIENT Software are not mentioned in SOAP Request envelop
generated by Eclipse.

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"

SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"

For your reference, following is the complete WSDL File:
*************************************
Complete WSDL File
*************************************

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://abc.123.com"
 xmlns:impl="http://abc.123.com"
 xmlns:intf="http://abc.123.com"
 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:apachesoap="http://xml.apache.org/xml-soap"
 xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
 <wsdl:types>
  <xsd:schema targetNamespace="http://abc.123.com"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <xsd:element name="ReceiveFeedData">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="feedName" type="xsd:string" />
      <xsd:element name="feedData"
       type="xsd:base64Binary"
       xmime:expectedContentTypes="application/octet-stream" />
      <xsd:element name="feedFileName"
       type="xsd:string" />
      <xsd:element maxOccurs="1" minOccurs="0"
       name="feedMetaData" type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="LockConfigFile">
    <xsd:complexType>
     <xsd:sequence />
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="LockConfigFileResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="lockToken" type="xsd:int" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetConfigFileXML">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="lockToken" type="xsd:int" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetConfigFileXMLResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="configXML" type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="SetConfigFileXML">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="lockToken" type="xsd:int" />
      <xsd:element name="inConfigXML"
       type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="UnlockConfigFile">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="lockToken" type="xsd:int" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="ReceiveFeedDataResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="success" type="xsd:boolean" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="SetConfigFileXMLResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="success" type="xsd:boolean" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="UnlockConfigFileResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="success" type="xsd:boolean" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetK4Databases">
    <xsd:complexType>
     <xsd:sequence />
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetK4DatabasesResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="databaseNames"
       type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetK4Properties">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="K4Database"
       type="xsd:string" />
      <xsd:element name="username" type="xsd:string" />
      <xsd:element name="password" type="xsd:string" />
      <xsd:element name="publicationID"
       type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetK4PropertiesResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="K4PropertiesInfo"
       type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetPublications">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="K4Database"
       type="xsd:string" />
      <xsd:element name="username" type="xsd:string" />
      <xsd:element name="password" type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetPublicationsResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="publicationInfo"
       type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>

   <xsd:element name="SetServiceState">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="serviceState"
       type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="SetServiceStateResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="success" type="xsd:boolean" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetProcessingList">
    <xsd:complexType>
     <xsd:sequence />
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetProcessingListResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="processingInfo"
       type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetServiceState">
    <xsd:complexType>
     <xsd:sequence />
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetServiceStateResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="serviceStateResponse"
       type="xsd:string" />
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetPassword">
    <xsd:complexType>
     <xsd:sequence />
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="GetPasswordResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="password"
       type="xsd:string">
      </xsd:element>
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="SetPassword">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="password"
       type="xsd:string">
      </xsd:element>
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="SetPasswordResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="success"
       type="xsd:boolean">
      </xsd:element>
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>

   <!--  Added by Twinkle for ListDirectory() -->
   <xsd:element name="ListDirectory">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="directoryListing"
       type="xsd:string">
      </xsd:element>
      <xsd:element name="alsoListFiles"
       type="xsd:boolean">
      </xsd:element>
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>
   <xsd:element name="ListDirectoryResponse">
    <xsd:complexType>
     <xsd:sequence>
      <xsd:element name="directoryListing"
       type="xsd:string">
      </xsd:element>
     </xsd:sequence>
    </xsd:complexType>
   </xsd:element>

  </xsd:schema>
 </wsdl:types>
 <wsdl:message name="SetPasswordRequest">
  <wsdl:part name="parameters" element="impl:SetPassword">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetProcessingListRequest">
  <wsdl:part name="parameters" element="impl:GetProcessingList">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetProcessingListResponse">
  <wsdl:part name="parameters"
   element="impl:GetProcessingListResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="LockConfigFileRequest">
  <wsdl:part name="parameters" element="impl:LockConfigFile">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="UnlockConfigFileResponse">
  <wsdl:part name="parameters"
   element="impl:UnlockConfigFileResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetK4DatabasesResponse">
  <wsdl:part name="parameters"
   element="impl:GetK4DatabasesResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetPasswordRequest">
  <wsdl:part name="parameters" element="impl:GetPassword">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetK4PropertiesRequest">
  <wsdl:part name="parameters" element="impl:GetK4Properties">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="SetServiceStateRequest">
  <wsdl:part name="parameters" element="impl:SetServiceState">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetPublicationsResponse">
  <wsdl:part name="parameters"
   element="impl:GetPublicationsResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="SetServiceStateResponse">
  <wsdl:part name="parameters"
   element="impl:SetServiceStateResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetPublicationsRequest">
  <wsdl:part name="parameters" element="impl:GetPublications">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="SetConfigFileXMLRequest">
  <wsdl:part name="parameters" element="impl:SetConfigFileXML">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="UnlockConfigFileRequest">
  <wsdl:part name="parameters" element="impl:UnlockConfigFile">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="ListDirectoryRequest">
  <wsdl:part name="parameters" element="impl:ListDirectory">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetConfigFileXMLRequest">
  <wsdl:part name="parameters" element="impl:GetConfigFileXML">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="SetPasswordResponse">
  <wsdl:part name="parameters"
   element="impl:SetPasswordResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetPasswordResponse">
  <wsdl:part name="parameters"
   element="impl:GetPasswordResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetK4PropertiesResponse">
  <wsdl:part name="parameters"
   element="impl:GetK4PropertiesResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="ListDirectoryResponse">
  <wsdl:part name="parameters"
   element="impl:ListDirectoryResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="ReceiveFeedDataResponse">
  <wsdl:part name="parameters"
   element="impl:ReceiveFeedDataResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="SetConfigFileXMLResponse">
  <wsdl:part name="parameters"
   element="impl:SetConfigFileXMLResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetK4DatabasesRequest">
  <wsdl:part name="parameters" element="impl:GetK4Databases">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="ReceiveFeedDataRequest">
  <wsdl:part name="parameters" element="impl:ReceiveFeedData">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetServiceStateResponse">
  <wsdl:part name="parameters"
   element="impl:GetServiceStateResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetServiceStateRequest">
  <wsdl:part name="parameters" element="impl:GetServiceState">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="GetConfigFileXMLResponse">
  <wsdl:part name="parameters"
   element="impl:GetConfigFileXMLResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:message name="LockConfigFileResponse">
  <wsdl:part name="parameters"
   element="impl:LockConfigFileResponse">
  </wsdl:part>
 </wsdl:message>
 <wsdl:portType name="123SOAP">
  <wsdl:operation name="ReceiveFeedData">
   <wsdl:input message="impl:ReceiveFeedDataRequest">
   </wsdl:input>
   <wsdl:output message="impl:ReceiveFeedDataResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="LockConfigFile">
   <wsdl:input message="impl:LockConfigFileRequest">
   </wsdl:input>
   <wsdl:output message="impl:LockConfigFileResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetConfigFileXML">
   <wsdl:input message="impl:GetConfigFileXMLRequest">
   </wsdl:input>
   <wsdl:output message="impl:GetConfigFileXMLResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="SetConfigFileXML">
   <wsdl:input message="impl:SetConfigFileXMLRequest">
   </wsdl:input>
   <wsdl:output message="impl:SetConfigFileXMLResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="UnlockConfigFile">
   <wsdl:input message="impl:UnlockConfigFileRequest">
   </wsdl:input>
   <wsdl:output message="impl:UnlockConfigFileResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetK4Databases">
   <wsdl:input message="impl:GetK4DatabasesRequest">
   </wsdl:input>
   <wsdl:output message="impl:GetK4DatabasesResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetK4Properties">
   <wsdl:input message="impl:GetK4PropertiesRequest">
   </wsdl:input>
   <wsdl:output message="impl:GetK4PropertiesResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetPublications">
   <wsdl:input message="impl:GetPublicationsRequest">
   </wsdl:input>
   <wsdl:output message="impl:GetPublicationsResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="SetServiceState">
   <wsdl:input message="impl:SetServiceStateRequest">
   </wsdl:input>
   <wsdl:output message="impl:SetServiceStateResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetProcessingList">
   <wsdl:input message="impl:GetProcessingListRequest">
   </wsdl:input>
   <wsdl:output message="impl:GetProcessingListResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetServiceState">
   <wsdl:input message="impl:GetServiceStateRequest">
   </wsdl:input>
   <wsdl:output message="impl:GetServiceStateResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetPassword">
   <wsdl:input message="impl:GetPasswordRequest"></wsdl:input>
   <wsdl:output message="impl:GetPasswordResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="SetPassword">
   <wsdl:input message="impl:SetPasswordRequest"></wsdl:input>
   <wsdl:output message="impl:SetPasswordResponse">
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="ListDirectory">
   <wsdl:input message="impl:ListDirectoryRequest">
   </wsdl:input>
   <wsdl:output message="impl:ListDirectoryResponse">
   </wsdl:output>
  </wsdl:operation>
 </wsdl:portType>
 <wsdl:binding name="123SOAPSoapBinding"
  type="impl:123SOAP">
  <wsdlsoap:binding style="document"
   transport="http://schemas.xmlsoap.org/soap/http" />
  <wsdl:operation name="ReceiveFeedData">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/ReceiveFeedData" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="LockConfigFile">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/LockConfigFile" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetConfigFileXML">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/GetConfigFileXML" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="SetConfigFileXML">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/SetConfigFileXML" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="UnlockConfigFile">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/UnlockConfigFile" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetK4Databases">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/GetK4Databases" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetK4Properties">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/GetK4Properties" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetPublications">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/GetPublications" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="SetServiceState">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/SetServiceState" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetProcessingList">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/GetProcessingList" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetServiceState">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/GetServiceState" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="GetPassword">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/GetPassword" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="SetPassword">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/SetPassword" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="ListDirectory">
   <wsdlsoap:operation
    soapAction="http://abc.123.com/ListDirectory" />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
 </wsdl:binding>
 <wsdl:service name="123WS">
  <wsdl:port name="123SOAP"
   binding="impl:123SOAPSoapBinding">
   <wsdlsoap:address
    location="http://localhost:8080/123SOAP/services/123SOAP" />
  </wsdl:port>
 </wsdl:service>
</wsdl:definitions>

*************************************
End of WSDL File
*************************************

Please help us out with this issue.

Thanks,
Twinkle


On 2/20/08, Amila Suriarachchi <amilasuriarachchi@gmail.com> wrote:
>
> This should be a problem with the request message.
> to give a correct answer we need to have the whole wsdl file. Here it
> seems to be a problem with the namespaces.
> Generate a java client and try to invoke the service. then compare the two
> requests.
>
> thanks,
> Amila.
>
> On Feb 19, 2008 9:34 AM, Twinkle Thakkar <tiku.thakkar@gmail.com> wrote:
>
> > Hi,
> >
> > We are facing an issue with our web services developed using axis2-1.3.
> > We have used Eclipse plugin to generate java code
> >
> > from wsdl.
> >
> > The web services are working fine when called using Eclipse Web Services
> > Explorer or Java Client. But we are not able to
> >
> > communicate with all our parameterized web methods using SOAP Client
> > availabe @ http://www.ditchnet.org/soapclient/.
> >
> > Following is the error description of one of the parameterized methods:
> >
> > We recieve an ADBException - org.apache.axis2.databinding.ADBException:
> > Unexpected subelement directoryListing.
> >
> > Here, directoryListing is the parameter we pass to the web method.
> > Following is the wsdl description for the method:
> >
> > ...
> > <xsd:element name="ListDirectory">
> >  <xsd:complexType>
> >   <xsd:sequence>
> >    <xsd:element name="directoryListing" type="xsd:string">
> >    </xsd:element>
> >    <xsd:element name="alsoListFiles" type="xsd:boolean">
> >    </xsd:element>
> >   </xsd:sequence>
> >  </xsd:complexType>
> > </xsd:element>
> > <xsd:element name="ListDirectoryResponse">
> >  <xsd:complexType>
> >   <xsd:sequence>
> >    <xsd:element name="directoryListing" type="xsd:string">
> >    </xsd:element>
> >   </xsd:sequence>
> >  </xsd:complexType>
> > </xsd:element>
> > ...
> >
> > ...
> > <wsdl:operation name="ListDirectory">
> >  <wsdl:input message="impl:ListDirectoryRequest">
> >  </wsdl:input>
> >  <wsdl:output message="impl:ListDirectoryResponse">
> >  </wsdl:output>
> > </wsdl:operation>
> > ...
> >
> > ...
> > <wsdl:operation name="ListDirectory">
> >  <wsdlsoap:operation
> >   soapAction="http://www.123.com/ListDirectory" />
> >  <wsdl:input>
> >   <wsdlsoap:body use="literal" />
> >  </wsdl:input>
> >  <wsdl:output>
> >   <wsdlsoap:body use="literal" />
> >  </wsdl:output>
> > </wsdl:operation>
> > ...
> >
> > When we try to access our web method using Eclipse, we find following
> > soap request:
> >
> > <?xml version="1.0" encoding="UTF-8" ?>
> > <soapenv:Envelope
> >
> >  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >
> > xmlns:q0="http://123.com"
> >  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >
> >  <soapenv:Body>
> >   <q0:ListDirectory>
> >     <directoryListing>/</directoryListing>
> >   <alsoListFiles>true</alsoListFiles>
> >   </q0:ListDirectory>
> >  </soapenv:Body>
> >
> > </soapenv:Envelope>
> >
> > And following soap request we find while we try to access our web method
> > using soap client:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <SOAP-ENV:Envelope
> >
> >     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >     xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> >
> >     SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> >     xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> >
> >       <SOAP-ENV:Body>
> >          <ListDirectory xmlns="http://123.com">
> >            <directoryListing xsi:type="xsd:string">\</directoryListing>
> >          <alsoListFiles xsi:type="xsd:boolean">true</alsoListFiles>
> >          </ListDirectory>
> >       </SOAP-ENV:Body>
> >
> > </SOAP-ENV:Envelope>
> >
> > Please suggest us a solution to this issue.
> >
> > Thanks.
> > Twinkle.
> >
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.

Mime
View raw message