Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in soap response it gives me some faultcode..

 
Nevin kumar
Ranch Hand
Posts: 93
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just wonder to which namespace the quote, itemId and quantity elements belong to.

Regards,
Dan
 
Dan Drillich
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic