can you send the complete message log from your monitoring tool
including the attachment part. Looks like the Content-ID of the
attachment is not whats expected by the client side stub.
-vivek.
Oancea Daniel wrote:
> Hi all,
>
> I have an problem with an client that has to receive an attachment.
> From what I see, using an monitoring tool, the response SOAP Message
> contain the attachment that suppose to arrive on client side, but the
> client is not capable to dispatch it.
>
> Here is my operation description from the WSDL file:
>
> <wsdl:operation name="getFile">
> <soap:operation soapAction="getFile"/>
> <wsdl:input>
> <soap:body parts="request" use="literal"/>
> </wsdl:input>
> <wsdl:output>
> <mime:multipartRelated>
> <mime:part>
> <soap:body parts="" use="literal"/>
> </mime:part>
> <mime:part>
> <mime:content part="response"
> type="application/octet-stream"/>
> </mime:part>
> </mime:multipartRelated>
> </wsdl:output>
> </wsdl:operation>
>
> on the client side I made something like that:
> .............
> DataHandler dh = client.getFile(2);
> int resp = data.getInputStream().available();
> System.out.println("receive: "+resp+" bytes!");
> ...............
>
> the error response is:
> java.rmi.RemoteException: no attachment with id "response" found in
> message; nested exception is:
> [java] no attachment with id "response" found in message
> [java] at
> enthrone.StreamFilePortType_Stub.getFile(StreamFilePortType_Stub.java:79)
> [java] at enthrone.Client.main(Client.java:24)
> [java] Caused by: no attachment with id "response" found in message
> [java] at
> enthrone.StreamFilePortType_Stub.getAttachment(StreamFilePortType_Stub.java:194)
> [java] at
> enthrone.StreamFilePortType_Stub.getFile(StreamFilePortType_Stub.java:72)
> [java] ... 1 more
>
> Any suggestions will be overcome!
>
> Thanks
>
>
--
Vivek Pandey
Web Services Standards and Technologies
Sun Microsystems Inc.