HI ,
Our third party web services using SOAP1.1 so am sending http content header as Text/xml if am sending request in application+soap/xml its not accepting the request. Problem is not with the content header .Problem is after receiving the response from the server .AXIS2 Client is looking for SOAP header in response XML file ,but response from our third party server is not having the any soap headers, its directly starting with the element, so client giving error that First Element must contain the local name, Envelope, but found Search Data (is the root element in XML file).Can we force AXIS2 client to not expect soap headers from response just take data and give it for AXIOM for processing it . Thanks, VIshnu ________________________________ From: Amila Suriarachchi [mailto:[email protected]] Sent: Thursday, November 26, 2009 7:25 AM To: [email protected] Subject: Re: AXIS2 WebServices: Processing Response which does not contain SOAP Headers On Wed, Nov 25, 2009 at 4:59 PM, Vishnu Vardhan Reddy <[email protected]> wrote: AIXS2 version using in application is axis2-1.4.1 I am sending and receiving plain/XMl (SOAP 1.1 Request and Response) Problem is response from server is plain xml it does not contain any SOAP headers. but operation client is expecting SOAP headers to process the response XML . I mean the value of the http contentype header. for soap messages it should be application+soap/xml thanks, Amila. Thanks, VIshnu ________________________________ From: Amila Suriarachchi [mailto:[email protected]] Sent: Wednesday, November 25, 2009 4:38 PM To: [email protected] Subject: Re: AXIS2 WebServices: Processing Response which does not contain SOAP Headers On Wed, Nov 25, 2009 at 4:22 PM, Vishnu Vardhan Reddy <[email protected]> wrote: HI , I am using AXIS2 client API to invoke third party web services. Response we are getting from the web service is XML but it doe contain any SOAP headers its just plain xml file as response, but while sending request it includes SOAP Headers .I cheeked the response though TC/IP monitor, receiving plain XML file .Client API is giving following error while processing the response XML SOAPProcessingException: First Element must contain the local name, Envelope . What is the Axis2 version you use? What is the content type of the response? if it is application/xml the it should process as a plain xml file. thanks, Amila. How can we force Operation client to by pass soap header processing and getting XML file and process by AXIOM. Thanks in advance for your kind support. Thanks & regards, Vishnu. -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
