axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dushshantha Chandradasa (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Commented: (AXISCPP-723) SOAP Fault sent from server has wrong XML
Date Wed, 03 Aug 2005 03:42:37 GMT
    [ http://issues.apache.org/jira/browse/AXISCPP-723?page=comments#action_12317468 ] 

Dushshantha Chandradasa commented on AXISCPP-723:
-------------------------------------------------

With the above modification i did, i found another problem ib deserializing simple faults.
The deserializer fails to deserialize the content within the detail tag.

<detail><appSpecific>AxisWsddException:Requested service not found 
</appSpecific></detail> 

The code snippet of void * SoapDeSerializer::checkForFault (const AxisChar * pName, const
AxisChar * pNamespace) method is as follows.

pcDetail = getElementAsString ("detail", " ");
	
	if (pcDetail)
	{
	    pFault->setFaultDetail (pcDetail);
			delete [] pcDetail;          
	}

getElementAsString ("detail", " ") fails to give a return because of the <appSpecific>
tag nested with <detail>. 

can we use  m_pParser->next () methd here to just skip the <detail> tag and deserialize
with getElementAsString ("appSpecific", " ") ???

I tried this once but it didn't work. m_pNode->m_pchNameOrValue still contained "detail"
. Cannot I use m_pParser->next () in this method?? 


> SOAP Fault sent from server has wrong XML
> -----------------------------------------
>
>          Key: AXISCPP-723
>          URL: http://issues.apache.org/jira/browse/AXISCPP-723
>      Project: Axis-C++
>         Type: Bug
>   Components: Server - Engine
>     Versions: 1.5 Final
>     Reporter: Samisa Abeysinghe
>     Assignee: Dushshantha Chandradasa

>
> When the C++ server throws a SOAP fault, I get the following XML:
> <detail><appSpecific><detail>AxisWsddException:Requested service not
found</detail>
> </appSpecific></detail>
> As you can notice, the use of "detail" tag is wrong here.
> Following is the ccomplete SOAP message sent by server:
> HTTP/1.1 200 OK
> Date: Fri, 01 Jul 2005 08:53:35 GMT
> Server: Apache/2.0.49 (Unix)
> Content-Length: 580
> Content-Type: text/xml
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <SOAP-ENV:Fault>
> <faultcode>SOAP-ENV:Client</faultcode>
> <faultstring>Requested service is not registerd at the server</faultstring>
> <faultactor>server name:listen port</faultactor>
> <detail><appSpecific><detail>AxisWsddException:Requested service not
found</detail>
> </appSpecific></detail>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message