Hi,

I created my stub using axis2 and when I run my client I get the following
error in the stub.

"Unexpected subelement {http://schemas.xmlsoap.org/soap/envelope/}Body";

I checked the request and responses using TcpMon.



*Requests*
1. This request is to add the order (This works fine as it is a void method)

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
    <soapenv:Body>
        <ns2:addOrder xmlns:ns2="http://service.axis2.wso2.com";>
            <ns2:orderId>112</ns2:orderId>
            <ns2:customerName>Kasun</ns2:customerName>
            <ns2:company>WSO2</ns2:company>
            <ns2:amount>900.0</ns2:amount>
        </ns2:addOrder>
    </soapenv:Body>
</soapenv:Envelope>


2. This request is to delete the order

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
    <soapenv:Body>
        <ns2:deleteOrder xmlns:ns2="http://service.axis2.wso2.com";>
            <ns2:orderId>112</ns2:orderId>
        </ns2:deleteOrder>
    </soapenv:Body>
</soapenv:Envelope>



*Response*
1. This is the response for the 2nd request.

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
    <soapenv:Body>
        <ns:deleteOrderResponse xmlns:ns="http://service.axis2.wso2.com";>
            <ns:return>true</ns:return>
        </ns:deleteOrderResponse>
    </soapenv:Body>
</soapenv:Envelope>


I think the response is fine. But I'm unable to find the reason for the
above error in the stub.

Please guide me on this.

Thanks in advance.


-- 
Mushthaq Rumy
*Software Engineer*
Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
Email : musht...@wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to