Can we please throw an error for rpc/lit and rpc/encoded?

thanks,
dims

On 9/18/05, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> Hi Filip,
>  Uh Oh.. this is an rpc/literal service :(. We don't generate correct code
> for the rpc/lit case (yet). Only doc/lt
> 
>  
> 
> On 9/19/05, Filipp Akinfiev <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > 
> > Hi All, 
> > 
> > i have make a stub for WS from simple wsdl file with WSDL2Java – no
> errors, no warnings. 
> > 
> > communication is ok too, see below. 
> > 
> > but after response i get error: Data binding error. 
> > 
> > any ideas ? 
> > 
> > thanks in advance! 
> > 
> > king regards, 
> > 
> > filipp 
> > 
> >   
> > 
> >
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> > 
> > POST /xmlws.exe/soap/IXMLWS HTTP/1.1 
> > 
> > User-Agent: Axis/2.0 
> > 
> > SOAPAction: urn:XMLWSIntf-IXMLWS#Kundenname 
> > 
> > Connection: Keep-Alive 
> > 
> > Host: 217.110.127.228:80 
> > 
> > Content-Length: 313 
> > 
> > Content-Type: text/xml; charset=utf-8 
> > 
> >   
> > 
> > <?xml version='1.0' encoding='utf-8'?> 
> > 
> >    <soapenv:Envelope xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/";> 
> > 
> >       <soapenv:Header></soapenv:Header> 
> > 
> >       <soapenv:Body> 
> > 
> >          <Kundenname xmlns=" http://axis2.soap.fax.de/xsd";> 
> > 
> >             <Account>12345678</Account> 
> > 
> >             <Password>ABCDEF</Password> 
> > 
> >          </Kundenname> 
> > 
> >       </soapenv:Body> 
> > 
> >    </soapenv:Envelope> 
> > 
> >
> =========================================================================
> > 
> >
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > 
> > HTTP/1.1 100 Continue 
> > 
> > Server: Microsoft-IIS/5.0 
> > 
> > Date: Sun, 18 Sep 2005 22:22:23 GMT 
> > 
> > X-Powered-By:: ASP.NET 
> > 
> >   
> > 
> > HTTP/1.1 200 OK 
> > 
> > Server: Microsoft-IIS/5.0 
> > 
> > Date: Sun, 18 Sep 2005 22:22:23 GMT 
> > 
> > X-Powered-By:: ASP.NET 
> > 
> > Connection: close 
> > 
> > Content-Type: text/xml; charset="utf-8" 
> > 
> > Content-Length: 553 
> > 
> > Content: 
> > 
> >   
> > 
> > <?xml version="1.0"?> 
> > 
> >    <SOAP-ENV:Envelope xmlns:SOAP-ENV="
> http://schemas.xmlsoap.org/soap/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:Body
> SOAP-ENC:encodingStyle="http://schemas.xmlsoap.org/soap/envelope/";>
> > 
> >          <NS1:KundennameResponse
> xmlns:NS1="urn:XMLWSIntf-IXMLWS"> 
> > 
> >             <return xsi:type="xsd:int">0</return> 
> > 
> >             <KdName xsi:type="xsd:string">Firma XXXXX</KdName> 
> > 
> >          </NS1:KundennameResponse> 
> > 
> >       </SOAP-ENV:Body> 
> > 
> >    </SOAP-ENV:Envelope> 
> > 
> >
> =========================================================================
> > 
> > java.lang.RuntimeException : Data binding error 
> > 
> > at
> de.fax.soap.axis2.databinding.IXMLWSKundennameDatabindingSupporter.fromOM(IXMLWSKundennameDatabindingSupporter.java
> :44) 
> > 
> > at de.fax.soap.axis2.IXMLWSStub.Kundenname(
> IXMLWSStub.java:77 ) 
> > 
> > at com.pakra.test.TestFaxDeAxis2.kundenname(
> TestFaxDeAxis2.java:44 ) 
> > 
> > at com.pakra.test.TestFaxDeAxis2.main(
> TestFaxDeAxis2.java:31 ) 
> > 
> > Caused by: org.apache.xmlbeans.XmlException : error: The
> document is not a [EMAIL PROTECTED]://axis2.soap.fax.de/xsd: document
> element mismatch got [EMAIL PROTECTED]:XMLWSIntf-IXMLWS 
> > 
> > at
> org.apache.xmlbeans.impl.newstore2.Locale.verifyDocumentType(
> Locale.java:426 )null 
> > 
> >   
> > 
> > at
> org.apache.xmlbeans.impl.newstore2.Locale.autoTypeDocument(
> Locale.java:336 ) 
> > 
> > at
> org.apache.xmlbeans.impl.newstore2.Locale.parseToXmlObject(
> Locale.java:710 ) 
> > 
> > at
> org.apache.xmlbeans.impl.newstore2.Locale.parseToXmlObject(
> Locale.java:693 ) 
> > 
> > at
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(
> SchemaTypeLoaderBase.java:220 ) 
> > 
> > at
> de.fax.soap.axis2.xsd.KundennameRSDocument$Factory.parse(
> KundennameRSDocument.java:83 ) 
> > 
> > at
> de.fax.soap.axis2.databinding.IXMLWSKundennameDatabindingSupporter.fromOM(IXMLWSKundennameDatabindingSupporter.java
> :40) 
> > 
> > 
> > ... 3 more 
> > 
> > <?xml version="1.0" encoding="utf-8"?> 
> > 
> > <definitions name="IXMLWSservice" 
> > 
> >     targetNamespace="http://tempuri.org/"; 
> > 
> >             xmlns="http://schemas.xmlsoap.org/wsdl/"; 
> > 
> >            
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
> > 
> >            
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
> > 
> >             xmlns:tns="http://tempuri.org/"; 
> > 
> >             xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> > 
> >             xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> > 
> >             xmlns:xsd1="http://axis2.soap.fax.de/xsd"; 
> > 
> >            
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> > 
> >     xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";> 
> > 
> >   
> > 
> >   <types> 
> > 
> >   
> > 
> >   
> > 
> >             <schema targetNamespace="http://axis2.soap.fax.de/xsd"; 
> > 
> >                        
> xmlns="http://www.w3.org/2001/XMLSchema"; 
> > 
> >                        
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
> > 
> >         elementFormDefault="qualified"> 
> > 
> >         
> > 
> >             <complexType name="KundennameRQ"> 
> > 
> >                 <all> 
> > 
> >                     <element name="Account" type="xsd:string"/> 
> > 
> >                     <element name="Password" type="xsd:string"/> 
> > 
> >                     <element name="KdName" type="xsd:string"/> 
> > 
> >                 </all> 
> > 
> >                         </complexType> 
> > 
> >             <complexType name="KundennameResponse"> 
> > 
> >                 <all> 
> > 
> >                     <element name="return" type="xsd:int"/> 
> > 
> >                     <element name="KdName" type="xsd:string"/> 
> > 
> >                 </all> 
> > 
> >                         </complexType> 
> > 
> >             
> > 
> >                         <element name="Kundenname"
> type="xsd1:KundennameRQ"/> 
> > 
> >                         <element name="KundennameRS"
> type="xsd1:KundennameResponse"/> 
> > 
> >     </schema> 
> > 
> >   </types> 
> > 
> >   
> > 
> >   
> > 
> >   
> > 
> >   
> > 
> >   <message name="Kundenname3Request"> 
> > 
> >     <part element="xsd1:Kundenname" name="Kundenname"/> 
> > 
> >   </message> 
> > 
> >   <message name="Kundenname3Response"> 
> > 
> >     <part element="xsd1:KundennameRS" name="KundennameResponse"/> 
> > 
> >   </message> 
> > 
> >   
> > 
> >   
> > 
> >   <portType name="IXMLWS"> 
> > 
> >     <operation name="Kundenname"> 
> > 
> >       <input message="tns:Kundenname3Request"
> name="Kundenname3Request"/> 
> > 
> >       <output message="tns:Kundenname3Response"
> name="Kundenname3Response"/> 
> > 
> >     </operation> 
> > 
> >   </portType> 
> > 
> >   
> > 
> >   <binding name="IXMLWSbinding" type="tns:IXMLWS"> 
> > 
> >     <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/ > 
> > 
> >     <operation name="Kundenname"> 
> > 
> >       <soap:operation
> soapAction="urn:XMLWSIntf-IXMLWS#Kundenname" style="rpc"/> 
> > 
> >       <input name="Kundenname3Request"> 
> > 
> >         <soap:body namespace="urn:XMLWSIntf-IXMLWS"
> use="literal"/> 
> > 
> >       </input> 
> > 
> >       <output name="Kundenname3Response"> 
> > 
> >         <soap:body namespace="urn:XMLWSIntf-IXMLWS"
> use="literal"/> 
> > 
> >       </output> 
> > 
> >     </operation> 
> > 
> >   </binding> 
> > 
> >   <service name="IXMLWSservice"> 
> > 
> >     <port name="IXMLWSPort" binding="tns:IXMLWSbinding"> 
> > 
> >       <soap:address
> location="http://ccs.fax.de/xmlws3.exe/soap/IXMLWS"/> 
> > 
> >     </port> 
> > 
> >   </service> 
> > 
> > </definitions> 
> > 
> >
> ========================================================================
> > 
> >   
> > 
> >   
> 
> 
> 
> -- 
> Ajith Ranabahu 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

Reply via email to