Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: XML::Compile Changing Server Endpoint

by runrig (Abbot)
on Jul 02, 2013 at 22:22 UTC ( #1042114=note: print w/ replies, xml ) Need Help??


in reply to Re^2: XML::Compile Changing Server Endpoint
in thread XML::Compile Changing Server Endpoint

I need to be able to pass in different server names and override the one in the WSDL.

Just throwing out ideas for workarounds...but if you parse the wsdl yourself ( with XML::LibXML->load_xml(..) ) and replace the port/address/@location, you can just pass the LibXML Node object instead of the file to addWSDL() ( or ..::WSDL->new() ). XML::Compile handles more than just files passed to its object constructors.


Comment on Re^3: XML::Compile Changing Server Endpoint
Re^4: XML::Compile Changing Server Endpoint
by jdudleyh (Novice) on Jul 03, 2013 at 14:53 UTC

    "Just throwing out ideas for workarounds...but if you parse the wsdl yourself ( with XML::LibXML->load_xml(..) )" ... "XML::Compile handles more than just files passed to its object constructors."

    Thanks Runrig, that works quite adequately! I hadn't noticed that I could pass the file object to the XML::Compile::WSDL11 constructor.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1042114]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2015-07-04 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls