• Anonymous
  • Login
  • Register
Stubby - Discussion: Send Attach to Web Service

Created on Oct 2, 2007
Created by Cristina Baraldi
Status
Open

Hi,
I have to develop a Web Service client with notes 7.
Stubby is very usefull and from the wsdl I created all the java classes needed to call the service.
But the web service developers told to me that the web service (developed with axis) need a file attached that is not one of the web service parameter.
I find online the way to attach a file:
String filePath="C:\\Temp\\DIP55304-AN-E-1.pdf.p7m";
DataHandler dh = new DataHandler(new FileDataSource(filePath));
_call.addAttachmentPart(part);

I tried to insert the above code in the classes generated from stubby but it doesn't work. the message that I receive is:

WebServiceEngineFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: java.lang.RuntimeException: No support for attachments
faultActor:
faultNode:
faultDetail:

java.lang.RuntimeException: No support for attachments
at lotus.domino.axis.AxisFault.makeFault(Unknown Source)
at lotus.domino.axis.client.Call.invoke(Unknown Source)
at lotus.domino.axis.client.Call.invoke(Unknown Source)
at lotus.domino.axis.client.Call.invoke(Unknown Source)
at samples.attachments.EchoAttachmentsServiceSoapBindingStub.verificaP7M(EchoAttachmentsServiceSoapBindingStub.java:156)
at JavaAgent.NotesMain(JavaAgent.java:55)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(Unknown Source)
Caused by: java.lang.RuntimeException: No support for attachments
at lotus.domino.axis.client.Call.setRequestMessage(Unknown Source)
... 7 more

Could you help me?
Thank in advance
Cristina



Documents
     
Creation Date
Author
Subject
Oct 2, 2007 Cristina Baraldi Send Attach to Web Service
Oct 2, 2007 Julian Robichaux     Response: Not much you can do
Oct 3, 2007 Cristina Baraldi         Response: Developer Works Article
     
In this field you can enter the actual discussion topic.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.