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-762) wrong xml for a service call which is not registered at the server.
Date Wed, 27 Jul 2005 11:09:20 GMT
    [ http://issues.apache.org/jira/browse/AXISCPP-762?page=comments#action_12316887 ] 

Dushshantha Chandradasa commented on AXISCPP-762:
-------------------------------------------------

"detail" is hardcoded in the method SoapFault::setFaultDetail (const AxisChar* sFaultDetail)
which is the extra <detail> tag comes from. I changed this hard coded value to "appSpecific"
and serialize the fault as follows. 

if(m_pFaultDetail) 
{ 
pSZ.serialize("<detail>", NULL); 
m_pFaultDetail->serialize(pSZ); 
pSZ.serialize("</detail>\n", NULL); 
} 

Then it will give the following soap message which is correct and will not break the solution
to AXISCpp-706. 


<?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>AxisWsddException:Requested service not found
</appSpecific></detail> 
</SOAP-ENV:Fault> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 


> wrong xml for a service call which is not registered at the server.
> -------------------------------------------------------------------
>
>          Key: AXISCPP-762
>          URL: http://issues.apache.org/jira/browse/AXISCPP-762
>      Project: Axis-C++
>         Type: Bug
>   Components: Serialization
>  Environment: All
>     Reporter: Dushshantha Chandradasa
>     Assignee: Dushshantha Chandradasa

>
> <?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> 
> above is a SOAP message for a service call for which the service is not registered at
the server. We can find some problems in the xml stream in the following line. 
> <detail><appSpecific><detail>AxisWsddException:Requested service not
found</detail> 
> </appSpecific></detail> 
>   
> Here we can find another <detail> tag inside a <detail> tag. 

-- 
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