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 "Matthew J. Duftler" <du...@watson.ibm.com> on 2001/05/23 20:45:36 UTC

FW: [soapbuilders] SOAP-Header problem (in Apache-SOAP)

I should also have replied to soap-user on this.

Thanks,
-Matt

-----Original Message-----
From: Matthew J. Duftler [mailto:duftler@watson.ibm.com]
Sent: Wednesday, May 23, 2001 2:16 PM
To: soapbuilders@yahoogroups.com
Subject: RE: [soapbuilders] SOAP-Header problem (in Apache-SOAP)


Hi Kartheek,

If memory serves me correctly, the headers are kept as Elements. If that's
the case, then your <DigitalCert> header will be stored as an Element. Since
the following output:

[HeaderEntries={[[DigitalCert: null]]}]]

Shows that there is indeed some sort of item in the vector of header
entries, I think you should examine what that item is. Especially since it
says "DigitalCert". It is probably an org.w3c.dom.Element whose child
character data is "#$FAaDAssd%#$". It's obviously not null, since the name
of the element is there. That output is probably how whatever parser you are
using serializes elements.

Thanks,
-Matt


> -----Original Message-----
> From: Kartheek Hirode [mailto:kartheek_hirode@centegy.com]
> Sent: Wednesday, May 23, 2001 2:01 PM
> To: soap-user@xml.apache.org; soapbuilders@yahoogroups.com
> Subject: [soapbuilders] SOAP-Header problem (in Apache-SOAP)
>
>
> Am having a very sticky problem....the SOAP-Headers (eg.: <DigitalCert> in
> the Envelope shown below) are not showing up correctly on the
> RPCRouterServlet even though the SOAP-Envelope in the pipe has
> the complete
> Header info.
>
> The call.toString() is attached below. This method is (obviously) invoked
> after the call object has been extracted from the envelope (using
> RPCRouter.extractCallFromEnvelope(serviceManager, callEnv, reqCtx);
>
> Thanks very much for any leads,
> --KH
>
> This is the SOAP-Envelope in the pipe:
> -------------------------------------
> (Note: <SOAP-ENV:Header DigitalCert=#$FAaDAssd%#$ )
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <SOAP-ENV:Envelope
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/1999/XMLSchema"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
>
> <SOAP-ENV:Header
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>   <DigitalCert>#$FAaDAssd%#$</DigitalCert>
> </SOAP-ENV:Header>
> <SOAP-ENV:Body>
>   <ns1:PingTopic xmlns:ns1="PingTopic"
>     SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>     <PayloadString xsi:type="xsd:string">Trial payload</PayloadString>
>   </ns1:PingTopic>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
>
> This is the SOAP-Envelope in the RPCRouterServlet:
> --------------------------------------------------
> (Note: HeaderEntries DigitalCert=null)
>
> callEnv.toString=[Attributes={ xmlns:SOAP-ENV="http://schemas.xmlsoa
> p.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> SOAP
> -ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsd="http:/
> /www.w3.org/1999/XMLSchema"}]
> Header=[Attributes={ xmlns:ns0="http://schemas.xm
> lsoap.org/soap/envelope/"
> ns0:encodingStyle="http://schemas.xmlsoap.org/soap/enc
> oding/"}] [HeaderEntries={[[DigitalCert: null]]}]] [Bo
> dy=[Attributes={}] [BodyEntries=
> [(0)=[ns1:PingTopic: null]]
> ]] [EnvelopeEntries=]
>
>
> To unsubscribe from this group, send an email to:
> soapbuilders-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org