You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by mvkirankumar <ki...@db.com> on 2007/02/01 16:48:40 UTC

[AXIS2] Problem while using xmlBeans with AXIS2

Hi,

I tried ADB, but it was not that schema supportive and did not work good for
complex schema types.
Hence according to DIMS/Anne's suggestion started using xmlBeans for my
implementation.

xmlBeans is awesome, it creates plent of java files but.

I have attached the WSDL, which gives me "Data binding error" when invoked
from MS Excel Client. The same MS Excel client works fine for the sample
provided in samples directory.

SOAP Input:

<?xml version='1.0' encoding='utf-8'?>
<SOAP-ENV:Envelope
xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema">
  <SOAP-ENV:Body>
    <SOAPSDK4:update xmlns:SOAPSDK4="http://services.pace.db.com/xsd">
      <symbol xmlns="http://securitymaster.pace.db.com/xsd">IBM</symbol>
    </SOAPSDK4:update>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

SOAP Response:

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header />
  <soapenv:Body>
    <soapenv:Fault>
      <faultcode>soapenv:Client</faultcode>
      <faultstring>Data binding error</faultstring>
      <detail />
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>

Please have a look on the attached WSDL and point me, if am doing anything
wrong. I just re-used the WSDL that is given in samples.

Your help towards this would be very much appreciable.

Thanks in advance.
Kiran Kumar. http://www.nabble.com/file/6147/SecurityRequestV9.wsdl
SecurityRequestV9.wsdl 
-- 
View this message in context: http://www.nabble.com/-AXIS2--Problem-while-using-xmlBeans-with-AXIS2-tf3155598.html#a8750515
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [AXIS2] Problem while using xmlBeans with AXIS2

Posted by mvkirankumar <ki...@db.com>.
Ajith,

Im not binding with all the elements, but i have specified minoccurs="0" for
each element in the wsdl.
Please have a look on the updated attached wsdl, which does not work.

Still i receive the same data binding error.

Your help on this would be appreciable.

Thanks
Kiran kumar.


Ajith Ranabahu wrote:
> 
> Hi Kiran,
> would you have a serverside log or a stacktrace ? All I can think of
> is that the client request  is not formed properly - perhaps certain
> elements missing ?
> 
> Ajith
> 
> On 2/1/07, mvkirankumar <ki...@db.com> wrote:
>>
>> Hi,
>>
>> I tried ADB, but it was not that schema supportive and did not work good
>> for
>> complex schema types.
>> Hence according to DIMS/Anne's suggestion started using xmlBeans for my
>> implementation.
>>
>> xmlBeans is awesome, it creates plent of java files but.
>>
>> I have attached the WSDL, which gives me "Data binding error" when
>> invoked
>> from MS Excel Client. The same MS Excel client works fine for the sample
>> provided in samples directory.
>>
>> SOAP Input:
>>
>> <?xml version='1.0' encoding='utf-8'?>
>> <SOAP-ENV:Envelope
>> xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/"
>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema">
>>   <SOAP-ENV:Body>
>>     <SOAPSDK4:update xmlns:SOAPSDK4="http://services.pace.db.com/xsd">
>>       <symbol xmlns="http://securitymaster.pace.db.com/xsd">IBM</symbol>
>>     </SOAPSDK4:update>
>>   </SOAP-ENV:Body>
>> </SOAP-ENV:Envelope>
>>
>> SOAP Response:
>>
>> <?xml version='1.0' encoding='utf-8'?>
>> <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>>   <soapenv:Header />
>>   <soapenv:Body>
>>     <soapenv:Fault>
>>       <faultcode>soapenv:Client</faultcode>
>>       <faultstring>Data binding error</faultstring>
>>       <detail />
>>     </soapenv:Fault>
>>   </soapenv:Body>
>> </soapenv:Envelope>
>>
>> Please have a look on the attached WSDL and point me, if am doing
>> anything
>> wrong. I just re-used the WSDL that is given in samples.
>>
>> Your help towards this would be very much appreciable.
>>
>> Thanks in advance.
>> Kiran Kumar. http://www.nabble.com/file/6147/SecurityRequestV9.wsdl
>> SecurityRequestV9.wsdl
>> --
>> View this message in context:
>> http://www.nabble.com/-AXIS2--Problem-while-using-xmlBeans-with-AXIS2-tf3155598.html#a8750515
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> 
> -- 
> Ajith Ranabahu
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 
http://www.nabble.com/file/6188/SecurityRequestV9.wsdl
SecurityRequestV9.wsdl 
-- 
View this message in context: http://www.nabble.com/-AXIS2--Problem-while-using-xmlBeans-with-AXIS2-tf3155598.html#a8755452
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [AXIS2] Problem while using xmlBeans with AXIS2

Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi Kiran,
would you have a serverside log or a stacktrace ? All I can think of
is that the client request  is not formed properly - perhaps certain
elements missing ?

Ajith

On 2/1/07, mvkirankumar <ki...@db.com> wrote:
>
> Hi,
>
> I tried ADB, but it was not that schema supportive and did not work good for
> complex schema types.
> Hence according to DIMS/Anne's suggestion started using xmlBeans for my
> implementation.
>
> xmlBeans is awesome, it creates plent of java files but.
>
> I have attached the WSDL, which gives me "Data binding error" when invoked
> from MS Excel Client. The same MS Excel client works fine for the sample
> provided in samples directory.
>
> SOAP Input:
>
> <?xml version='1.0' encoding='utf-8'?>
> <SOAP-ENV:Envelope
> xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema">
>   <SOAP-ENV:Body>
>     <SOAPSDK4:update xmlns:SOAPSDK4="http://services.pace.db.com/xsd">
>       <symbol xmlns="http://securitymaster.pace.db.com/xsd">IBM</symbol>
>     </SOAPSDK4:update>
>   </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> SOAP Response:
>
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header />
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>       <faultstring>Data binding error</faultstring>
>       <detail />
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>
>
> Please have a look on the attached WSDL and point me, if am doing anything
> wrong. I just re-used the WSDL that is given in samples.
>
> Your help towards this would be very much appreciable.
>
> Thanks in advance.
> Kiran Kumar. http://www.nabble.com/file/6147/SecurityRequestV9.wsdl
> SecurityRequestV9.wsdl
> --
> View this message in context: http://www.nabble.com/-AXIS2--Problem-while-using-xmlBeans-with-AXIS2-tf3155598.html#a8750515
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org