You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Chathura Herath (JIRA)" <ji...@apache.org> on 2005/08/04 11:22:35 UTC

[jira] Reopened: (AXIS2-112) Doclitparams Interoperability Test failed

     [ http://issues.apache.org/jira/browse/AXIS2-112?page=all ]
     
Chathura Herath reopened AXIS2-112:
-----------------------------------

     Assign To:     (was: Chathura Herath)

The multipart RPC literal issue is fixed. There is some issue with the interop where the interop does not function properly if the first element of the soap body does not have a namespace prefix. Current OM serialization is such that once the Envelop gets serialized the first element of the Body has a default namesapace, but not a namespace declaration and a perfix. This results in faliure in the Interop endpoint.

> Doclitparams Interoperability Test failed
> -----------------------------------------
>
>          Key: AXIS2-112
>          URL: http://issues.apache.org/jira/browse/AXIS2-112
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>     Versions: 0.9
>  Environment: Windows XP
> j2sdk1.4.2_01
>     Reporter: Nadana Gunaratna

>
> Service Info:
> WSDL Location:http://soapinterop.java.sun.com/round3/groupd/doclitparams?WSDL
> Service Location: http://soapinterop.java.sun.com:80/round3/groupd/doclitparams
> For more Information:
> http://soapinterop.java.sun.com
> The Request SOAP was produced using the generated stubs (using WSDL2Java). A SOAP fault was received as the response.
> Request SOAP Message as displayed in theTCP monitor:
> POST /round3/groupd/doclitparams HTTP/1.1
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related, text/*
> Host: soapinterop.java.sun.com 
> Cache-Control: no-cache
> Pragma: no-cache
> Content-Length: 236
> SOAPAction: "http://soapinterop.org/"
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Header></soapenv:Header>
>    <soapenv:Body>
>       <echoString xmlns="http://soapinterop.org/xsd">
>          <param0>hi</param0>
>       </echoString>
>    </soapenv:Body></soapenv:Envelope>
> Response SOAP Message:
> HTTP/1.1 500 Internal Server Error 
> SOAPAction: "" 
> Content-Type: text/xml; charset="utf-8" 
> Transfer-Encoding: chunked 
> Date: Sat, 30 Jul 2005 04:41:46 GMT 
> Server: Apache Coyote/1.0 
>  
> 21e 
> <?xml version="1.0" encoding="UTF-8"?>
>    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://soapinterop.org/xsd">
>       <env:Body>
>          <env:Fault>
>             <faultcode>env:Client</faultcode>
>             <faultstring>caught exception while handling request: unexpected element name: expected=param0, actual={http://soapinterop.org/xsd}param0</faultstring>
>          </env:Fault>
>       </env:Body>
>    </env:Envelope>
> 0 
>  
> Then the SOAP message was modified as follows, i.e. the first child of the body was pre-fixed with the local name of the namespace, and resent from the TCP Monitor, Request SOAP Message accepted as correct and received Response as follows.
> Request SOAP Message:
> POST /round3/groupd/doclitparams HTTP/1.1
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related, text/*
> Host: soapinterop.java.sun.com 
> Cache-Control: no-cache
> Pragma: no-cache
> Content-Length: 590
> SOAPAction: "http://soapinterop.org/"
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://soapinterop.org/xsd">               
>    <soapenv:Header></soapenv:Header>               
>    <soapenv:Body>                              
>       <x:echoString xmlns:x="http://soapinterop.org/xsd">                                             
>          <param0>hi</param0>                              
>       </x:echoString>               
>    </soapenv:Body></soapenv:Envelope>
>  
> Response SOAP Message:
> HTTP/1.1 200 OK 
> SOAPAction: "" 
> Content-Type: text/xml; charset="utf-8" 
> Transfer-Encoding: chunked 
> Date: Sat, 30 Jul 2005 06:29:45 GMT 
> Server: Apache Coyote/1.0 
>  
> 193 
> <?xml version="1.0" encoding="UTF-8"?>
>    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://soapinterop.org/xsd">
>       <env:Body>
>          <ns0:echoStringResponse>
>             <return>hi</return>
>          </ns0:echoStringResponse>
>       </env:Body>
>    </env:Envelope> 
> 0 
>  

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