axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amila Suriarachchi <amilasuriarach...@gmail.com>
Subject Re: SOAP Response problem
Date Mon, 02 Mar 2009 05:15:39 GMT
hi,

you may need to use the Apache Synapse[1] to do the response conversion.

thanks,
Amila.

[1] http://synapse.apache.org/

On Wed, Feb 25, 2009 at 8:08 PM, Gaurav Kumar <gk_gt@yahoo.com> wrote:

> Hi am getting incorrect SOAP response from my Web service. But for some
> reason I need to handle incorrect SOAP response.
>
> SOAP response I am getting
> ******************************************
> HTTP/1.1 200 OK
> Server: OSP 2.4 BPEL engine
> Content-Type: text/xml; charset=ISO-8859-1
> Content-Length: 1964
> Connection: close
>
> <?xml version="1.0" encoding="UTF-8"?>
>    <SOAP-ENV:Envelope xmlns:SOAP-ENV="
> http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="
> http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
> http://www.w3.org/2001/XMLSchema"
> xmlns:urn:="urn:Alcatel_Lucent_OSP_BPEL">
>       <SOAP-ENV:Body>
>          <urn:namur_smlsce_portalreadmeter2Response>
>             <errorcode>1</errorcode>
>             <meterinfo>xyz</meterinfo>
>          </urn:namur_smlsce_portalreadmeter2Response>
>       </SOAP-ENV:Body>
>    </SOAP-ENV:Envelope>
>
> ******************************************
>
> In above response 2 things are  incorrect :-
> 1.  xmlns:urn:="urn:Alcatel_Lucent_OSP_BPEL
> 2. Content-Type: text/xml; charset=ISO-8859-1 in HTTP header and
> encoding="UTF-8" in xml tag. Different charset ecoding for HTTP and SOAP.
>
> So I want to make 2 correction in  the message :
> 1. Change xmlns:urn:="urn:Alcatel_Lucent_OSP_BPEL to
> xmlns:urn="urn:Alcatel_Lucent_OSP_BPEL
>
> 2. Change UTF-8 ecoding to ISO-8859-1
>
> Thanx in advance.
>
> With Regards and Thanks
> Gaurav Kumar
>
> - The ability to simplify means to eliminate the unnecessary so that the
> necessary may speak
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Mime
View raw message