axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Abbott" <br...@dommoni.com>
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);
bn->setValue("123");
 
That serializes to:
 
 <soapenv:Header>
  <ns1:ID xmlns:ns1="NS" <http://www.myns.org/NS> >1</ns1:ID>
 </soapenv:Header>
 
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?
 
Brian
 
-----Original Message-----
From: Samisa Abeysinghe [mailto:SAbeysinghe@virtusa.com] 
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.
 
Thanks,
Samisa.
 
-----Original Message-----
From: Brian Abbott [mailto:brian@dommoni.com] 
Sent: Wednesday, March 09, 2005 3:14 PM
To: axis-c-user@ws.apache.org
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:
 
 <soapenv:Header>
  <ns1:SomeID xsi:type="xsd:string" xmlns:ns1="http://www.myns.org/NS"
<http://www.myns.org/NS> >1</ns1:SomeID>
 </soapenv:Header>
 
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?
 
Thanks,
 
Brian

Mime
View raw message