DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15891>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15891

soap:header ignored when using MIME binding

           Summary: soap:header ignored when using MIME binding
           Product: Axis
           Version: 1.1beta
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The Axis 1.1 seems to ignore soap:header declarations when using MIME binding.
Instead it sends all message parts in SOAP body. Here is the wsdl binding section:

    <wsdl:binding name="StoreServiceSOAPBinding" type="tns:StoreService">
        <soap:binding style="rpc"
                      transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="store">
            <wsdl:input>
                <mime:multipartRelated>
                    <mime:part>
                        <soap:body parts="fileName" use="encoded"
                           
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                        <soap:header message="tns:FileToStore" part="context"
use="encoded"
                           
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                    </mime:part>
                    <mime:part>
                        <mime:content part="fileContent"
type="application/octetstream"/>
                    </mime:part>
                </mime:multipartRelated>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="encoded"
                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>

The context part should have been send as SOAP header, but it was not
(the whole message was in SOAP body).
When I dropped "mime" declarations:

    <wsdl:binding name="StoreServiceSOAPBinding" type="tns:StoreService">
        <soap:binding style="rpc"
                      transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="store">
            <wsdl:input>
                        <soap:body parts="fileName fileContent" use="encoded"
                           
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                        <soap:header message="tns:FileToStore" part="context"
use="encoded"
                           
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="encoded"
                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>

then everything worked fine.

Reply via email to