Looks like you're facing the same error mentioned here[1]. It seems the
backend is expecting at least a dummy header. Try that.

[1] "[Dev] Exception with header"

Thanks,
Bhathiya

On Sun, Nov 12, 2017 at 12:34 PM, Buddhimala Ranasinghe <[email protected]
> wrote:

> Hi All,
>
> I have create an API in ESB 5.0.0 for accessing a secured  SOAP BE
> service. Attached is the sysnapse configuraion for my API.
>
> <api xmlns="http://ws.apache.org/ns/synapse"; name="NawalokaPatientAPI"
> context="/nawaloka">
>    <resource methods="GET" uri-template="/read/{patientid}">
>       <inSequence>
>          <property name="Authorization" value="Basic
> YnVkZGhpbWFsYTpidWRkaGltYWxhMTIz" scope="transport"/>
>          <payloadFactory media-type="xml">
>             <format>
>                <ser:read xmlns:ser="http://service.sample.nawaloka.com";>
>                   <ser:patientId>123</ser:patientId>
>                </ser:read>
>             </format>
>             <args>
>                <arg evaluator="xml" expression="get-property('uri.
> var.patientid')"/>
>             </args>
>          </payloadFactory>
>          <log level="full"/>
>          <property name="SOAPAction" value="urn:read" scope="transport"/>
>          <property name="messageType" value="text/xml" scope="axis2"/>
>          <property name="ContentType" value="text/xml" scope="axis2"/>
>          <send>
>             <endpoint>
>                <address uri="https://192.168.55.160:9443/services/
> NawalokaPatientService" format="soap11"/>
>             </endpoint>
>          </send>
>       </inSequence>
>       <outSequence>
>          <property name="messageType" value="application/json"
> scope="axis2"/>
>          <send/>
>       </outSequence>
>    </resource>
> </api>
>
> The WSDL for my BE service can be found in following URL location.
>
> http://192.168.55.160:9763/services/NawalokaPatientService?wsdl
>
>
> My problem is, when I tried to invoke the API using SOAPUI, the following
> error message prompt with 500 error code.
>
> {"Exception": "SOAP Envelope can not have children other than SOAP Header
> and Body"}
>
> Attached what is logged in ESB, enabled wirelogs and debug logs.
>
> How can I resolve this issue? Appreciate your support.
> --
>
>
> *Buddhimala Ranasinghe*
> Software Engineer-Support Team | WSO2
> Emil: [email protected]
> Mobile:+94771563138 <077%20156%203138>
> Web:http://wso2.com
> [image: https://wso2.com/signature] <https://wso2.com/signature>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Bhathiya Jayasekara*
*Associate Technical Lead,*
*WSO2 inc., http://wso2.com <http://wso2.com>*

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
<http://www.linkedin.com/in/bhathiyaj>*
*Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
*Blog: http://movingaheadblog.blogspot.com
<http://movingaheadblog.blogspot.com/>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to