Hi all,
I have problems with Attachment sample in Axis 1.1 (Java).
For 3 days I have spent with the Attachment sample, I don't arrive to run it
:((
I need your help.
I saw on the mailling list the problem about namespace. According to an
message of november on your mailinglist, I have deleted the namespace (in
the WSSD file) and thanks this, Axis autogenerates the WSDL without
SOAPException (good).
However, the sample don't run I have now java.lang.NullPointerException !
So, I run the sample using C:\>java samples.attachments.EchoAttachment
C:/web.jpg
(The binary file C:/web.jpg exists)
Now this is the response
java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.axis.Message.createAttachmentPart(Message.java:638)
at
javax.xml.soap.SOAPMessage.createAttachmentPart(SOAPMessage.java:243)
at
samples.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:523)
at samples.attachments.EchoAttachment.main(EchoAttachment.java:362)
So I bug at line 523 of EchoAttachment.java when I create an AttachmentPart
!
javax.xml.soap.AttachmentPart attachment =
soapMessage.createAttachmentPart(dataHandler);
Finally, I want to debug this file but I can't because I don't arrive to
compil the source EchoAttachment.java.
javac EchoAttachment.java
EchoAttachment.java:239: cannot resolve symbol
symbol : method setScopedProperty (java.lang.String,java.util.Hashtable)
location: class org.apache.axis.client.Call
call.setScopedProperty(HTTPConstants.REQUEST_HEADERS, myhttp);
org.apache.axis.client.Call API
[http://ws.apache.org/axis/java/apiDocs/org/apache/axis/client/Call.html]
Call don't support a method called setScopedProperty(String, Hashmap)
Futhermore, org.apache.axis.client.Call implements the interface
javax.xml.rpc.Call
http://ws.apache.org/axis/java/apiDocs/javax/xml/rpc/Call.html
This interface don't support a method called setScopedProperty(String,
Hashmap)
... I don't understand this (pechaps a depreciated method in AXIS 1.1 ??)
Thank you in advance for your help... I'm completlty lost.
Cedric
NeoPost