Hello keith ,

I am also facing problem in SOAP response.

SOAP Response I am getting (TCP Monitor trace):-
*****************************************
HTTP/1.1 200 OK
Server: OSP 2.4 BPEL engine
Content-Type: text/xml; charset=ISO-8859-1
Content-Length: 1965
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>
     ...      
   </SOAP-ENV:Body>
   </SOAP-ENV:Envelope>

*****************************************

In our SOAP response Envelope 1 semantics error in namespace declaration:-
xmlns:urn:="urn:Alcatel_Lucent_OSP_BPEL"
Because of this my SOAP client give exception while receiving the SOAP
response :
*********************
org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException:
Unexpected character ':' (code 58) expected '='
 at [row,col {unknown-source}]: [1,284]
********************

Is any work around of this problem ? like getting the raw response etc.

KR,
Gaurav Kumar



Keithgchapman wrote:
> 
> You could have elementFormDefault="unqualified" in the schema of the WSDL.
> This instructs the user not to care about the namespaces.
> 
> Thanks,
> Keith.
> 
> On Fri, Feb 20, 2009 at 7:39 PM, durbans <[email protected]> wrote:
> 
>>
>> I am new to Axis2; i am using ADB.
>> I'd like to skip namespace prefixes in XML response. For example if the
>> client receive
>>
>>  <name xsi:type="xsd:string">John</name>
>>
>> or receive
>>
>> <s:name xsi:type="xsd:string">John</s:name>
>>
>> it must work in both case. At the moment only the second case work,
>> because
>> in xsd file the namespace is defined.
>>
>> Are there any way to skip ALWAYS the namespaces ?
>> --
>> View this message in context:
>> http://www.nabble.com/Axis2%3A-how-to-skip-namespace-prefixes---tp22120392p22120392.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
> 
> blog: http://www.keith-chapman.org
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis2%3A-how-to-skip-namespace-prefixes---tp22120392p22165119.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to