Hi,

I'm having some issues consuming POJO Axis2 service with an ATL
(Microsoft Visual Studio 2005, C++) client.  First I was trying to
call a simple method returning an int.  ATL was getting confused by
something in the WSDL provided by Axis2 and was sending a request
which looked like

POST /axis2/services/EnterpriseService.EnterpriseServiceHttpSoap11Endpoint/
HTTP/1.1
Content-Length: 304
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:test"
Accept: text/xml
Host: xxxxxxx
User-Agent: Microsoft-ATL-Native/8.00

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";><soap:Body><
xmlns="http://fa.test.com/xsd";></></soap:Body></soap:Envelope>

Notice the <soap:Body>< xmlns="http://fa.test.com/xsd";></></soap:Body>
missing the name of the element in both opening and closing tag.
I decided that this was caused by WDSL from Axis2 missing the
wsdl:types element with the name "test" (method is called test).  So I
moved on to a method which returns an array of strings.  Now ATL just
happily fails with a failure to parse XML upon seeing the following
response:

Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 04 Nov 2008 22:14:12 GMT

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><ns:getSessionsResponse
xmlns:ns="http://fa.biscom.com/xsd";><ns:return>abc</ns:return><ns:return>abc1</ns:return><ns:return
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true"
/><ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:nil="true" /></ns:getSessionsResponse></soapenv:Body></soapenv:Envelope>

I also tried switching the service to the literal encoding mode which
didn't make a difference. I tried creating similar ATL consumer for a
similar C# web service and it works fine.

Is anybody consuming Axis2 services with ATL out there?  I will
appreciate any further troubleshooting tips to figure out what if
anything can be tweaked to make this work.

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to