The stack trace shows where the error is happening, but the error
message "null" is pretty vague!

Anyway, I checked the API spec for SOAPMessage, and I don't see how you
can expect to usefully serialize it with the BeanSerializer.  The only
read/write property is contentDescription.  Also, the class is abstract.
You cannot de-serialize to it since you cannot construct it with the
default ctor.

With a custom serializer, you could serialize the attachments and SOAP
part (actually, you could use writeTo to get a string, then just
serialize the string).  With a custom deserializer, you could
instantiate a concrete class using the MessageFactory.

All-in-all, however, this seems like a mess.  Have you noticed that
SOAPMessage has more than a bit in common with
org.apache.soap.SOAPContext?  If you want to create a SOAP body and some
attachments, then send them, you can use SOAPContext and/or the Apache
SOAP messaging API (instead of the RPC API).

Scott Nichol

----- Original Message -----
From: "Dave Searle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 11:24 AM
Subject: RE: sending SOAPMessage as paramater


> Hi scott
>
> java.lang.IllegalArgumentException: Unable to retrieve
> 'contentDescription' property value: null.
> at
>
org.apache.soap.encoding.soapenc.BeanSerializer.marshall(BeanSerializer.
> java:122)
> at
>
org.apache.soap.encoding.soapenc.ParameterSerializer.marshall(ParameterS
> erializer.java:107)
> at
> org.apache.soap.rpc.RPCMessage.serializeParams(RPCMessage.java:333)
> at org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:307)
> at org.apache.soap.Body.marshall(Body.java:145)
> at org.apache.soap.Envelope.marshall(Envelope.java:195)
> at
>
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnectio
> n.java:273)
> at org.apache.soap.rpc.Call.invoke(Call.java:248)
> at
> jxtaWS.Testing.TestSOAPReceiver.main(TestSOAPReceiver.java:109)
> java.lang.NullPointerException
> at
> jxtaWS.Testing.TestSOAPReceiver.main(TestSOAPReceiver.java:118)
> Exception in thread "main"
>
>
>
> -----Original Message-----
> From: Scott Nichol [mailto:[EMAIL PROTECTED]]
> Sent: 03 January 2003 16:00
> To: [EMAIL PROTECTED]
> Subject: Re: sending SOAPMessage as paramater
>
>
> Could you add code to your client to catch the SOAPException then do
>
>     e.getRootException().printStackTrace()
>
> That would print a stack trace for the underlying exception.
>
> Scott Nichol
>
> ----- Original Message -----
> From: "Dave Searle" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 03, 2003 10:40 AM
> Subject: RE: sending SOAPMessage as paramater
>
>
> > Sorry Scott, I'm using 2.3.1, I can attach the code if that helps?
> >
> > -----Original Message-----
> > From: Scott Nichol [mailto:[EMAIL PROTECTED]]
> > Sent: 03 January 2003 15:37
> > To: [EMAIL PROTECTED]
> > Subject: Re: sending SOAPMessage as paramater
> >
> >
> > What version of Apache SOAP are you using (so I can determine the
> source
> > in which to look up the line numbers)?
> >
> > Scott Nichol
> >
> > ----- Original Message -----
> > From: "Dave Searle" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, January 03, 2003 10:19 AM
> > Subject: sending SOAPMessage as paramater
> >
> >
> > > Hi,
> > >
> > > This is probably a bit of a long shot, but has anyone tried to
send
> > > javax.xml.soap.SOAPMessage as a parameter to a webservice that is
> > > expecting it?
> > >
> > > I have built a webservice that takes a SOAPMessage as a parameter;
I
>
> > > have mapped all the types across but I still get an error on the
> > client
> > > (see below). I have scoured the web for possible clues but
> > unfortunately
> > > to no avail.
> > >
> > > Any feedback would be a bonus++
> > >
> > > Cheers,
> > > Dave
> > >
> > > Error message is:
> > >
> > > [SOAPException: faultCode=SOAP-ENV:Client; msg=Unable to retrieve
> > > &apos;contentDescription&apos; property value: null.;
> > > targetException=java.lang.IllegalArgumentException: Unable to
> retrieve
> >
> > > 'contentDescription' property value: null.] at
> > >
> >
>
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnectio
> > > n.java:354)
> > > at org.apache.soap.rpc.Call.invoke(Call.java:248)
> > > at
> > > jxtaWS.Testing.TestSOAPReceiver.main(TestSOAPReceiver.java:106)
> > > Exception in thread "main"
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to