You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> on 2005/07/01 10:37:59 UTC

[jira] Created: (AXISCPP-723) SOAP Fault sent from server has wrong XML

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


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


[jira] Resolved: (AXISCPP-723) SOAP Fault sent from server has wrong XML

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-723?page=all ]
     
Dushshantha Chandradasa resolved AXISCPP-723:
---------------------------------------------

    Resolution: Fixed

Fixed and tested with C++ server side

> 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


[jira] Closed: (AXISCPP-723) SOAP Fault sent from server has wrong XML

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-723?page=all ]
     
Dushshantha Chandradasa closed AXISCPP-723:
-------------------------------------------


> 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


[jira] Commented: (AXISCPP-723) SOAP Fault sent from server has wrong XML

Posted by "Henrik Nordberg (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-723?page=comments#action_12315028 ] 

Henrik Nordberg commented on AXISCPP-723:
-----------------------------------------

Samisa and Adrian,

both of you seem to say that

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

is invalid as detail node of a SOAP fault. Why do you think that is the case? Did you follow the conversation here: 
http://issues.apache.org/jira/browse/AXIS-1836
?

It seems unnecessary to have a <detail> node nested within <appSpecific>, but the SOAP detail node can contain anything (except text; it has to be XML elements), so technically it is correct. If you feel otherwise, please make your views known by commenting  on AXIS-1835.


> 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

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


[jira] Commented: (AXISCPP-723) SOAP Fault sent from server has wrong XML

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
    [ 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


[jira] Commented: (AXISCPP-723) SOAP Fault sent from server has wrong XML

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-723?page=comments#action_12317028 ] 

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

I did some modifications to Soapfault class so that the SOAP message for a fault is as follows. 

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


Any thoughts on this please...

> 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

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


[jira] Commented: (AXISCPP-723) SOAP Fault sent from server has wrong XML

Posted by "Adrian Dick (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-723?page=comments#action_12314873 ] 

Adrian Dick commented on AXISCPP-723:
-------------------------------------

This was introduced as a fix to AXISCPP-706.

However, this means the SOAP fault no longer matches the structure described in the SOAP specs, or a fault described by the customers WSDL.
I think the underlying reason for this is we currently do not support a Fault detail element that is anything other than a Complex type.  My proposed changes to support both SOAP 1.2 and SOAP 1.1 Faults (see http://marc.theaimsgroup.com/?l=axis-c-dev&m=111640463326474&w=2 ) will also introduce the ability for all types of detail element, including complex, arrays and simple types.

> 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

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


[jira] Assigned: (AXISCPP-723) SOAP Fault sent from server has wrong XML

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-723?page=all ]

Dushshantha Chandradasa reassigned AXISCPP-723:
-----------------------------------------------

    Assign To: Dushshantha Chandradasa

> 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


[jira] Commented: (AXISCPP-723) SOAP Fault sent from server has wrong XML

Posted by "Adrian Dick (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-723?page=comments#action_12315051 ] 

Adrian Dick commented on AXISCPP-723:
-------------------------------------

Henkrik,

You are correct, the <appSpecific><detail> nodes within the SOAP detail node is perfectly valid SOAP.
However, as part of the fix for AXISCPP-706 this structure was hard-coded into the axis-c engine, which I believe is wrong.

The SOAP detail node should contain whatever structure is defined by the WSDL for a given web service (or any XML where fault is not specified in the WSDL) - it may be the real problem in the previous issue was incorrectly generated code, or a mis-understanding on how to use that code.

> 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

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