Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

SOAP::Lite xsi:type

by DreamT (Pilgrim)
on Aug 16, 2012 at 15:18 UTC ( #987798=perlquestion: print w/replies, xml ) Need Help??
DreamT has asked for the wisdom of the Perl Monks concerning the following question:

Quick question: How do I remove the xsi prefix in the following SOAP::Lite generated code?
<clientIP xsi:type="s:string"></clientIP>

The attribute is created with
SOAP::Data->new(name => 'clientIP', type => 's:string', attr => {}),

Replies are listed 'Best First'.
Re: SOAP::Lite xsi:type
by daxim (Chaplain) on Aug 16, 2012 at 16:20 UTC
    SOAP::Data->new(name => 'clientIP', attr => { type => 's:string', 'xsi:type' => undef })
    Congratulations, your SOAP XML is now non-sensical, likely even non-conforming to the relevant standards. Quick question back: why do you think doing this is a good idea?

      Welcome to interoperability with .NET!

      I'm working through the same issue with a .NET based webservice now.

      Thank you!
      Well, I don't think that it is a good idea. But the SOAP server that I'm connecting to isn't accepting the xsi prefix for some strange reason.

        It probably has something to do with encodingStyle and/or xmlns, life might get easier if you can switch to SOAP::Simple/XML::Compile, it suports WSDL

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://987798]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2018-12-11 01:18 GMT
Find Nodes?
    Voting Booth?
    How many stories does it take before you've heard them all?

    Results (52 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!