AXIS2 WebServices: Processing Response which does not contain SOAP Headers

vardhana.vishnu.gmail.com's picture
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 . 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 . AIXS2 version using in application is axis2-1.4.1 I am sending and receiving plain/XMl (SOAP 1.1 Request and Response) thanks in advance . thanks, VIshnu.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)