Trying to implement an api to upload binary data. The WSDL looks like:
--------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:impl=" http://ws.test" xmlns:intf="http://ws.test" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" targetNamespace="http://ws.test">
 <wsdl:types>
  <schema xmlns=" http://www.w3.org/2001/XMLSchema" targetNamespace="http://ws.test">
   <import namespace="http://ws-i.org/profiles/basic/1.1/xsd " schemaLocation="http://ws-i.org/profiles/basic/1.1/xsd"/>
   <element name="data" nillable="true" type="wsi:swaRef"/>
   <element name="uploadDataReturn" nillable="true" type="xsd:string"/>
  </schema>
 </wsdl:types>
   <wsdl:message name="uploadDataRequest">
      <wsdl:part name="data" type="wsi:swaRef"/>
   </wsdl:message>
   <wsdl:message name="uploadDataResponse">
      <wsdl:part element="impl:uploadDataReturn" name="uploadDataReturn"/>
   </wsdl:message>
   <wsdl:portType name="Upload">
      <wsdl:operation name="uploadData" parameterOrder="data">
         <wsdl:input message="impl:uploadDataRequest" name="uploadDataRequest"/>
         <wsdl:output message="impl:uploadDataResponse" name="uploadDataResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="UploadSoapBinding" type="impl:Upload">
      <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="uploadData">
         <wsdlsoap:operation soapAction=""/>
         <wsdl:input name="uploadDataRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="uploadDataResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="UploadService">
      <wsdl:port binding="impl:UploadSoapBinding" name="Upload">
         <wsdlsoap:address location=" http://localhost:8080/WS2/services/Upload"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>
--------------------------------------

When I run a WSDL2JAVA on this wsdl, I get as an argument to the upload a URI. I was wondering if anyone knows how one can get the uploaded attachment using that URI?
--------------------------------------
public interface Upload extends java.rmi.Remote {
    public java.lang.String uploadData(org.ws_i.SwaRef data) throws java.rmi.RemoteException;
}
--------------------------------------
How does one get to the SOAP message to associate the URI with the data uploaded as an attachment. Any pointers would be much appreciated.
Thanks.

Reply via email to