axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhanush Gopinath" <>
Subject Return SOAP Message not as expected in document oriented service
Date Thu, 02 Sep 2004 10:19:23 GMT

Hi All,

I have a document - literal web service method

public Document receiveDocument(Document docElems);

The WSDD for the above message is as given

<service name="ProtoMessageService" style="message">
 <parameter name="wsdlTargetNamespace" value=""/>
    <parameter name="className" value="" />
    <parameter name="allowedMethods" value="receiveDocument" />

This generates a WSDL as given in attachment.

Now my problem is -even though it is specified in the WSDL that the element name Response
SOAP Message should  be receiveDocumentReturn it is giving receiveDoument only.
Also the namespace is also not followed.

Is this a Known Problem .. ???

The  SOAP request and REsponse are as given


<SOAP-ENV:Envelope xmlns:SOAP-ENC="" xmlns:SOAP-ENV=""
xmlns:xsd="" xmlns:xsi="">
    <ns:receiveDocument xmlns:ns="http://ws.proto">
        ........... ...


<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsd=""
    <ns:receiveDocument xmlns:ns="http://ws.proto">
        ........... ...

If you compare the RESPONSE and REQUEST u can see that its is almost identical.. except that
SOAP RESPONSE doesnt have a SOAP-ENC Name space . Is this a Problem ?

Why the namespace and the element name receiveDocumentResponse
is not coming on the SOAP Response. Please Help
Thanks in Advance




 <?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="http://localhost:8080/axis/services/ProtoMessageService"
xmlns="" xmlns:apachesoap=""
xmlns:impl="http://localhost:8080/axis/services/ProtoMessageService" xmlns:intf="http://localhost:8080/axis/services/ProtoMessageService"
xmlns:soapenc="" xmlns:tns1="http://ws.proto" xmlns:wsdl=""
xmlns:wsdlsoap="" xmlns:xsd="">
<schema targetNamespace="http://ws.proto" xmlns="">
  <element name="receiveDocument" type="xsd:anyType" />
<schema targetNamespace="http://localhost:8080/axis/services/ProtoMessageService" xmlns="">
  <element name="receiveDocumentReturn" type="xsd:anyType" />
<wsdl:message name="receiveDocumentResponse">
  <wsdl:part element="impl:receiveDocumentReturn" name="receiveDocumentReturn" />
<wsdl:message name="receiveDocumentRequest">
  <wsdl:part element="tns1:receiveDocument" name="part" />
<wsdl:portType name="MessageDrivenService">
<wsdl:operation name="receiveDocument">
  <wsdl:input message="impl:receiveDocumentRequest" name="receiveDocumentRequest" />
  <wsdl:output message="impl:receiveDocumentResponse" name="receiveDocumentResponse" />
<wsdl:binding name="ProtoMessageServiceSoapBinding" type="impl:MessageDrivenService">
  <wsdlsoap:binding style="document" transport="" />
<wsdl:operation name="receiveDocument">
  <wsdlsoap:operation soapAction="" />
<wsdl:input name="receiveDocumentRequest">
  <wsdlsoap:body namespace="http://ws.proto" use="literal" />
<wsdl:output name="receiveDocumentResponse">
  <wsdlsoap:body namespace="http://localhost:8080/axis/services/ProtoMessageService" use="literal"
<wsdl:service name="MessageDrivenServiceService">
<wsdl:port binding="impl:ProtoMessageServiceSoapBinding" name="ProtoMessageService">
  <wsdlsoap:address location=""


This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.

Visit us at

View raw message