Title: Message

It is quite hard to tell what is going wrong without having a look at the WSDL used and the SOAP message.

However, I do not think that it is something to do with the SOAP header.

 

Have you tied calling the method without SOAP headers?

 

Thanks,

Samisa…

 

-----Original Message-----
From: Brian Abbott [mailto:[EMAIL PROTECTED]
Sent:
Wednesday, March 09, 2005 3:42 PM
To: 'Apache AXIS C User List'
Subject: RE: SOAP Headers - Setting Type information

 

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">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:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
Sent:
Wednesday, March 09, 2005 3:14 PM
To: [email protected]
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">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

Reply via email to