Attachment......
Drikoudis Ioannis <[email protected]> Mon, 14 Nov 2005 20:21:02 +0200
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
Hello WSIF-UserZ, i am trying to create a web service with apache-wsif-DynamicInvoker and all those stuff, BUT i am very confused :( . Let's talk about my problem.... I want my service send a file to the client through the Dynamic Invoker. My WSDL is <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:tns="urn:TransferService" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="urn:TransferService" name="Transfer"> <wsdl:message name="getResult_IN"> <wsdl:part name="IP_Port" type="xsd:string"/> </wsdl:message> <wsdl:message name="getResult_OUT"> <wsdl:part name="result" type="xsd:string"/> </wsdl:message> <wsdl:portType name="DiskContentInterface"> <wsdl:operation name="getResult"> <wsdl:input message="tns:getResult_IN"/> <wsdl:output message="tns:getResult_OUT"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="DiskContentBinding" type="tns:DiskContentInterface"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getResult"> <soap:operation soapAction="urn:TransferService"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <mime:multipartRelated> <mime:part> <soap:body use="literal"/> </mime:part> <mime:part> <mime:content part="result" type="text/html" /> </mime:part> </mime:multipartRelated> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="TransferService"> <wsdl:port name="Java_DiskContent" binding="tns:DiskContentBinding"> <soap:address location="http://127.0.0.1:8080/soap/servlet/rpcrouter"/> </wsdl:port> </wsdl:service> I think this is correct, isn't it? My output message has the attachment (text/html). When i try to run the client i am taking the message " Invoke Method Error :=( Exception) : null" . I don't know what is wrong. Please can anyone enlighten me on this problem? Thanks for your time, Ioannis.