Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

SOAP::Lite xsi:type

by DreamT (Pilgrim)
on Aug 16, 2012 at 15:18 UTC ( [id://987798]=perlquestion: print w/replies, xml ) Need Help??

DreamT has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
Quick question: How do I remove the xsi prefix in the following SOAP::Lite generated code?
<clientIP xsi:type="s:string">81.170.250.10</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 (Curate) 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-20 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found