You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Nicolas BESSON <ni...@wimba.com> on 2002/09/02 11:49:21 UTC
attachement and gSoap c++ client
Hi,
I want to send binary data in attachement. 64Binary encoding is not
appropriate and make 33% bytes overhead.
I saw in the Axis attachment sample (samples/attachment) you have used
DataHandler, but i want to access my axis web service with a gSoap c++
client.
Have you got an idea how to do that ? Or an example ?
Nicolas
RE: attachement and gSoap c++ client
Posted by Nicolas BESSON <ni...@wimba.com>.
Maybe it's because Axis use the old DIME format.
When do you think implementing the new DIME format ?
Nicolas
> -----Message d'origine-----
> De : Nicolas BESSON [mailto:nicolas.besson@wimba.com]
> Envoye : lundi 2 septembre 2002 11:49
> A : axis-user@xml.apache.org
> Objet : attachement and gSoap c++ client
>
>
> Hi,
>
> I want to send binary data in attachement. 64Binary encoding is not
> appropriate and make 33% bytes overhead.
> I saw in the Axis attachment sample (samples/attachment) you have used
> DataHandler, but i want to access my axis web service with a gSoap c++
> client.
>
> Have you got an idea how to do that ? Or an example ?
>
> Nicolas
>
>
>
problem with sample/attachement
Posted by Nicolas BESSON <ni...@wimba.com>.
I try to use the attachment sample web service.
The service is deplyed and when i lauch the clinet, the following error
appear.
Some one have an idea ?
java.lang.NullPointerException
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: java.lang.NullPointerException
faultActor: null
faultDetail:
stackTrace: java.lang.NullPointerException
at
org.apache.axis.encoding.ser.JAFDataHandlerSerializer.serialize(JAFDataHandl
erSerializer.java:114)
at
org.apache.axis.encoding.SerializationContextImpl.serializeActual(Serializat
ionContextImpl.java:1194)
at
org.apache.axis.encoding.SerializationContextImpl.serialize(SerializationCon
textImpl.java:751)
at
org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(Serializat
ionContextImpl.java:819)
at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:147)
at
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:401)
at
org.apache.axis.message.MessageElement.output(MessageElement.java:728)
at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:408)
at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:336)
at org.apache.axis.Message.getContentType(Message.java:381)
at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:125)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
at org.apache.axis.client.Call.invokeEngine(Call.java:2088)
at org.apache.axis.client.Call.invoke(Call.java:2077)
at org.apache.axis.client.Call.invoke(Call.java:1847)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at org.apache.axis.client.Call.invoke(Call.java:1312)
at samples.attachments.EchoAttachment.echo(EchoAttachment.java:152)
at samples.attachments.EchoAttachment.main(EchoAttachment.java:358)
java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.axis.encoding.ser.JAFDataHandlerSerializer.serialize(JAFDataHandl
erSerializer.java:114)
at
org.apache.axis.encoding.SerializationContextImpl.serializeActual(Serializat
ionContextImpl.java:1194)
at
org.apache.axis.encoding.SerializationContextImpl.serialize(SerializationCon
textImpl.java:751)
at
org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(Serializat
ionContextImpl.java:819)
at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:147)
at
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:401)
at
org.apache.axis.message.MessageElement.output(MessageElement.java:728)
at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:408)
at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:336)
at org.apache.axis.Message.getContentType(Message.java:381)
at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:125)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
at org.apache.axis.client.Call.invokeEngine(Call.java:2088)
at org.apache.axis.client.Call.invoke(Call.java:2077)
at org.apache.axis.client.Call.invoke(Call.java:1847)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at org.apache.axis.client.Call.invoke(Call.java:1312)
at samples.attachments.EchoAttachment.echo(EchoAttachment.java:152)
at samples.attachments.EchoAttachment.main(EchoAttachment.java:358)