This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 1164
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: 1164
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: 1164
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..
 
Similar Threads
Could not recognize the SOAP XML Namespace while invoking MessageRouterServlet
Soap Envelope not version 1.1
Getting Bad Response from Web service
Axis rejects int parameter
SOAP Exception : did not recognize the value of HTTP Header SOAPAction: