jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes Problem in soap response it gives me some faultcode.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem in soap response it gives me some faultcode.." Watch "Problem in soap response it gives me some faultcode.." New topic
Author

Problem in soap response it gives me some faultcode..

Nevin kumar
Ranch Hand

Joined: Mar 15, 2008
Posts: 93
when I tried returning a String or an array from my service class which uses xfire I'm able to get the soap response properly by invoking with
with a saaj client but when I tried to send an array of user defined objects(that is Item in my case) I'm not able to get the response .
Below is my soap request & response which I have sent and received.Any help highly appreciated ..

REQUEST:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><quote><itemId>1</itemId><quantity>3</quantity><itemName>speaker</itemName></quote><quote><itemId>2</itemId><quantity>5</quantity><itemName>gjgj</itemName></quote></SOAP-ENV:Body></SOAP-ENV:Envelope>

RESPONSE:

<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Index: 1, Size: 1</faultstring></soap:Fault></soap:Body></soap:Envelope>
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1175
I just wonder to which namespace the quote, itemId and quantity elements belong to.

Regards,
Dan

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1175
Very similar issues at -

Re: Validate SOAP Message with Aegis Binding?

Cryptic fault when trying to call an XFire SOAP service using a SOAP client generated with Axis


Regards,
Dan
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1175
Dan Drillich wrote:I just wonder to which namespace the quote, itemId and quantity elements belong to.

Regards,
Dan


Interestingly, my beloved guide says -
NOTE: WS-I BP 1.0 requires all immediate children of Body element be namespace qualified.


Regards,
Dan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in soap response it gives me some faultcode..