hi
Do you mind you could use "RPC" style in the wsdl file instead of "Document" style?
if you use rpc style the soap message's body part is constructed between your <method name> </method name> tags.
From: "Liu, Scott" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Subject: Strange behavior on soap message generated by axis1.1? Date: Fri, 6 Aug 2004 18:00:57 -0700
I used Axis 1.1 RC2 before I switched to the stable Axis 1.1 final version (June 2003). Then the RESPONSE soap message in my service was changed to an undesired form. The message looks like this.
<?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>
<addResponse xmlns="urn:messages.webservices">
<AddResponse xmlns="urn:messages.webservices"> <========================= This is extra
<status isSuccess="true"/>
<ns1:recordRef key="89" type="case" xmlns:ns1="urn:dto.webservices"/>
</AddResponse> <========================= This is extra
</addResponse>
</soapenv:Body>
</soapenv:Envelope>
The response was defined as the follows.
<message name="addResponse">
<part name="parameters" element="types:addResponse"/>
</message>
<!-- Add -->
<complexType name="AddResponse">
<sequence>
<element ref="msg:status"/>
<element ref="dto:recordRef" minOccurs="0"/>
</sequence>
</complexType>
<element name="addResponse" type="msg:AddResponse"/>
Why did it include the complex type "AddResponse" in the soap message?
If I switch to the old version it would be fine.
Can someone point me to the solution or the axis class which maybe responsible for the behavior?
Thanks a bunch,
Scott
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
