From: "NAKAMURA, Hiroshi" Date: 2004-03-27T01:27:11+09:00 Subject: Re: SOAP question Hi, > From: "John Didion" > Sent: Friday, March 26, 2004 12:55 PM > I ran this code[1] and got these results[2]. As you can see, the resuting > xml is very different from the original. Is there anything I can do to make > the result look like the original? > require 'soap/processor' > > str = < xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" > xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"> > > > > USERNAME > Type="wsse:PasswordDigest">PASSWORDDIGEST > NONCE > 2003-09-08T05:52:36Z > > > > > > > > SOAP > > env = SOAP::Processor.unmarshal(str) > puts SOAP::Processor.marshal(env) CVS version of soap4r can handle SOAPHeader better. Result of your code[1]. USERNAME PASSWORDDIGEST NONCE 2003-09-08T05:52:36Z If you don't want "xsi:type..." in SOAP Body, try puts SOAP::Processor.marshal(env, {:generate_explicit_type => false}) Body must be; You can get the CVS version from http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/lib/soap4r/ Regards, // NaHi