I am trying to implement simple web service which takes zip file as an
attachment and sends back the zip file into attachment.
I am bit confused as to should I be starting from WSDL end or should I first
write interface & implementation?
Can I set MimeMultipart object into AttachmentPart object? if yes then how?
I am still very new to the web services. following is my wsdl
<wsdl:message name="processZipRequest">
<wsdl:part name="aZip" type="xsd:hexBinary"/>
</wsdl:message>
<wsdl:message name="processZipResponse">
<wsdl:part name="newZip" type="xsd:hexBinary"/>
</wsdl:message>
<wsdl:portType name="UpdateXML">
<wsdl:operation name="processZip">
<wsdl:input message="tns:processZipRequest"/>
<wsdl:output message="tns:processZipResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="UpdateXMLBinding" type="tns:UpdateXML">
<soap:binding style="document"
transport="
http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="processZip">
<wsdl:input>
<mime:multipartRelated>
<mime:part>
<soap:body use="literal"/>
</mime:part>
<mime:part>
<mime:content part="aZip" type="multipart/x-zip"/>
</mime:part>
</mime:multipartRelated>
</wsdl:input>
<wsdl:output>
<mime:multipartRelated>
<mime:part>
<soap:body use="literal"/>
</mime:part>
<mime:part>
<mime:content part="newZip" type="multipart/x-zip"/>
</mime:part>
</mime:multipartRelated>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
It generated server side class:
public class UpdateXML_Impl implements java.rmi.Remote {
public javax.mail.internet.MimeMultipart
processZip(javax.mail.internet.MimeMultipart aZip) throws
java.rmi.RemoteException {
javax.mail.internet.MimeMultipart _retVal = null;
return _retVal;
}
}
Thanks
-harsh
__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250