By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,315 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,315 IT Pros & Developers. It's quick & easy.

create envelope

P: n/a
Hi all!

I need to create an soap envelope that will be sent to an external service
using HTTP POST. I created the required classes which are serialized using
XmlSerializer. The envelope should look like this:

<Envelope xmlns="http://www.w3.org/2001/12/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/12/soap-envelope
soap-envelope.xsd">
<Header>
<rrCircuitRequest xmlns="http://tempuri.org/test"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tempuri.org/test rrCircuit.xsd">
<requestID>12345</requestID>
</rrCircuitRequest>
</Header>
<Body>
<requestOffer xmlns="http://tempuri.org/test"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tempuri.org/test offer.xsd">
[...]

When serializing the classes I created, the xmlns:xsi attributes are missing
in the Envelope, rrCircuitRequest and requestOffer nodes. How can I add
these attributes to the serialized XML? Which attributes do I have to set in
my classes?

Thanks

Markus
Nov 12 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.