You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Mangala Gowri Nanda <ma...@yahoo.com> on 2001/04/23 06:16:55 UTC
SOAP headers: newbie question
Could someone please tell me how to set a transaction id (string) in
the SOAP header from the client and how to receive it at the server end
?
I tried the following at the client end:
Header header = new Header();
Vector hparams = new Vector ();
hparams.addElement(new Parameter("TransId", String.class, "123",null)
);
header.setHeaderEntries ( hparams );
call.setHeader ( header );
and I get the following error when I try to run the client:
Exception in thread "main" java.lang.ClassCastException:
org.apache.soap.rpc.Parameter
at org.apache.soap.Header.marshall(Header.java:134)
at org.apache.soap.Envelope.marshall(Envelope.java:189)
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:206)
at org.apache.soap.rpc.Call.invoke(Call.java:203)
at samples.addressbook.GetAddress.main(GetAddress.java:167)
Any help would be much appreciated.
Thanks,
gowri
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
Re: SOAP headers: newbie question
Posted by Mangala Gowri Nanda <ma...@yahoo.com>.
Found what I was looking for in the Apache FAQ at
http://soap.ManilaSites.Com/
:-):-)
Apologies for not reading it first.
--- Mangala Gowri Nanda <ma...@yahoo.com> wrote:
> Could someone please tell me how to set a transaction id (string) in
> the SOAP header from the client and how to receive it at the server
> end
> ?
>
> I tried the following at the client end:
>
> Header header = new Header();
> Vector hparams = new Vector ();
> hparams.addElement(new Parameter("TransId", String.class, "123",null)
> );
> header.setHeaderEntries ( hparams );
> call.setHeader ( header );
>
> and I get the following error when I try to run the client:
>
> Exception in thread "main" java.lang.ClassCastException:
> org.apache.soap.rpc.Parameter
> at org.apache.soap.Header.marshall(Header.java:134)
> at org.apache.soap.Envelope.marshall(Envelope.java:189)
> at
>
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:206)
> at org.apache.soap.rpc.Call.invoke(Call.java:203)
> at samples.addressbook.GetAddress.main(GetAddress.java:167)
>
>
> Any help would be much appreciated.
>
> Thanks,
>
> gowri
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
=====
Insanity is heriditary ... I inherited it from my kids :-)
C-9113, Vasant Kunj
New Delhi 110070 Ph: 91-11-6137230
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
Re: SOAP headers: newbie question
Posted by Mangala Gowri Nanda <ma...@yahoo.com>.
Found what I was looking for in the Apache FAQ at
http://soap.ManilaSites.Com/
:-):-)
Apologies for not reading it first.
--- Mangala Gowri Nanda <ma...@yahoo.com> wrote:
> Could someone please tell me how to set a transaction id (string) in
> the SOAP header from the client and how to receive it at the server
> end
> ?
>
> I tried the following at the client end:
>
> Header header = new Header();
> Vector hparams = new Vector ();
> hparams.addElement(new Parameter("TransId", String.class, "123",null)
> );
> header.setHeaderEntries ( hparams );
> call.setHeader ( header );
>
> and I get the following error when I try to run the client:
>
> Exception in thread "main" java.lang.ClassCastException:
> org.apache.soap.rpc.Parameter
> at org.apache.soap.Header.marshall(Header.java:134)
> at org.apache.soap.Envelope.marshall(Envelope.java:189)
> at
>
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:206)
> at org.apache.soap.rpc.Call.invoke(Call.java:203)
> at samples.addressbook.GetAddress.main(GetAddress.java:167)
>
>
> Any help would be much appreciated.
>
> Thanks,
>
> gowri
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
=====
Insanity is heriditary ... I inherited it from my kids :-)
C-9113, Vasant Kunj
New Delhi 110070 Ph: 91-11-6137230
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org