Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
P is for Practical
 
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 rifling through the Monastery: (5)
As of 2014-04-18 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (460 votes), past polls