guru' s help !
 
wsdl2java doesn't generate wsdl file in the "MIME Binding Schema" ( http://www.w3.org/TR/wsdl.html#A4.4 )
 
I wann't to get wsdl in the format according to the shema: http://schemas.xmlsoap.org/wsdl/mime/
 
for example axis/samples/swa/ has the following format file swa.wsdl:
 
...
here is the binding part:
...
    <binding name="swaBinding" type="swa:swaPort">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/ >
        <operation name="swaSend">
            <soap:operation soapAction="swaSend"/>
            <input>
                <mime:multipartRelated>
                    <mime:part>
                        <soap:body use="literal" parts="applicationName"/>
                    </mime:part>
                    <mime:part>
                        <mime:content part="content" type="multipart/mixed"/>
                    </mime:part>
                </mime:multipartRelated>

            </input>
            <output>
                <soap:body use="literal"/>
            </output>
        </operation>
    </binding>
...
 
but when i execute java2wsdl tool on my code:
 
...
public interface Storage extends java.rmi.Remote {
    public storage.core.axis.Product getProduct(java.lang.String in0) throws java.rmi.RemoteException;
    public storage.core.axis.Product[] getProducts() throws java.rmi.RemoteException;
    public java.lang.String getImage(java.lang.String in0, javax.mail.internet.MimeMultipart in1) throws java.rmi.RemoteException;
    public javax.mail.internet.MimeMultipart getImage2(java.lang.String in0, float[] in1) throws java.rmi.RemoteException;
}
...
 
 
I got following wsdl without following http://schemas.xmlsoap.org/wsdl/mime/ shema
 
...
   <wsdl:message name="getImageRequest">
      <wsdl:part name="in0" type="soapenc:string"/>
      <wsdl:part name="in1" type="apachesoap:Multipart"/>
   </wsdl:message>
...
   <wsdl:binding name="StorageServiceSoapBinding" type="impl:Storage">
 
      <wsdl:operation name="getImage">
         <wsdlsoap:operation soapAction=""/>
         <wsdl:input name="getImageRequest">
            <wsdlsoap:body use="encoded" encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:storageProduct"/>
         </wsdl:input>
         <wsdl:output name="getImageResponse">
            <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:storageProduct"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
 
 
I wan't to axis java2wsdl tool to do it . or some another tool? I mean I want                 <mime:multipartRelated> tag to be generated.
 
please help me to do it. thank you .
 

Reply via email to