You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "indika priyantha kumara (JIRA)" <ji...@apache.org> on 2008/05/21 08:48:55 UTC

[jira] Resolved: (SYNAPSE-319) Callout Mediator issue

     [ https://issues.apache.org/jira/browse/SYNAPSE-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

indika priyantha kumara resolved SYNAPSE-319.
---------------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2

Error indicates that , the soap-body first child <-> required parameter convention can not be done(Axis2 server side).  This may be due to enclosed soap envelope within outer soapbody.  

it seems that  enclosing a soap envelope within outer soapbody is related to the some incorrect configuration in the callout mediator. (Most probably , it may be with a wrong xpath expression for the 'source' of callout mediator). Please refers sample 430. It demonstrates a simple callout mediator.

Issue is resolved as this is not an issue with callout mediator. 

There was an issue when soapaction has not been specified from the callout mediator. Now, if you are not explicitly set the soap action , then , writing soapaction as a transport header is disable.

> Callout Mediator issue
> ----------------------
>
>                 Key: SYNAPSE-319
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-319
>             Project: Synapse
>          Issue Type: Bug
>         Environment: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20071008 Ubuntu/7.10 (gutsy) Firefox/2.0.0.6
>            Reporter: Lakmal Warusawithana
>            Assignee: indika priyantha kumara
>            Priority: Blocker
>             Fix For: 1.2
>
>
> From Callout Mediator call local registry key. It give some exceptions. Here are trace from tcpmon
> POST /rpc/soap/jirasoapservice-v2 HTTP/1.1
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: "urn:anonOutInOp"
> User-Agent: Axis2
> Host: localhost:89
> Transfer-Encoding: chunked
> 308
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://soap.rpc.jira.atlassian.com" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>             <SOAP-ENV:Body>
>                 <ns1:login>
>                     <in0 xsi:type="xsd:string">admin</in0>
>                     <in1 xsi:type="xsd:string">admin123</in1>
>                 </ns1:login>
>             </SOAP-ENV:Body>
>         </SOAP-ENV:Envelope></soapenv:Body></soapenv:Envelope>
> 0
> here response
> HTTP/1.1 500 Internal Server Error
> Server: Apache-Coyote/1.1
> Content-Type: text/xml;charset=utf-8
> Transfer-Encoding: chunked
> Date: Mon, 05 May 2008 12:59:13 GMT
> Connection: close
> 39d
> <?xml version="1.0" encoding="UTF-8"?><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"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring><detail><faultData xsi:type="ns1:SAXException" xmlns:ns1="http://sax.xml.org"><exception xsi:type="ns2:Exception" xsi:nil="true" xmlns:ns2="http://lang.java"/><message xsi:type="xsd:string">SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</message></faultData><ns3:hostname xmlns:ns3="http://xml.apache.org/axis/">lakmal-laptop</ns3:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
> 0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org