axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Abbott" <>
Subject RE: SOAP Headers - Setting Type information
Date Wed, 09 Mar 2005 09:41:56 GMT
Hi Samisa,
The code I am calling is:
MyStub stub(endpoint);
IHeaderBlock* hb = stub.createSOAPHeaderBlock("ID", "NS");
BasicNode* bn = hb->createImmediateChild(CHARACTER_NODE);
That serializes to:
  <ns1:ID xmlns:ns1="NS" <> >1</ns1:ID>
When I pack this into the Envelope and send a call that returns a
string, I get an exception of code 70 that says it "Cannot de-serialize
the requested element" so, it could be the information being returned
and not the header. The actual SOAP traffic itself is clean (no faults,
etc). I suppose it could be the value returned but, that is just as
simple string and the type information is present. Is anyone aware of
this happening in the past?
-----Original Message-----
From: Samisa Abeysinghe [] 
Sent: Wednesday, March 09, 2005 1:29 AM
To: Apache AXIS C User List
Subject: RE: SOAP Headers - Setting Type information

I have not tried this but I hope that you can use createAttribute() on
the node object.
Please have a look at BasicNode.h in include folder.
-----Original Message-----
From: Brian Abbott [] 
Sent: Wednesday, March 09, 2005 3:14 PM
Subject: SOAP Headers - Setting Type information
In the documentation, I do not see any means of setting the type
attributes of a node contained in a SOAP header. Am I overlooking
something? Is there a way to do this?
For example, I want to create:
  <ns1:SomeID xsi:type="xsd:string" xmlns:ns1=""
<> >1</ns1:SomeID>
I am currently able through the CPP APIs to create that but without the
xsi:type attribute. Do the facilities exist to add the attribute?

View raw message