[Xml-compile] modifying the soap:address/@location element in a WSDL file

Mark Blackman m.blackman at fairfx.com
Tue Apr 21 09:18:42 GMT 2009


On 20 Apr 2009, at 17:22, Mark Blackman wrote:

>
> On 20 Apr 2009, at 17:05, Mark Overmeer wrote:
>
>> * Mark Blackman (m.blackman at fairfx.com) [090420 15:58]:
>>> Is there any nice shortcut for modifying the location attribute of
>>> soap:address either in the WSDL file *before* or *after*
>>> my $wsdl = XML::Compile::WSDL11->new($xml_data);
>>
>> This is often needed.  Use
>>  $wsdl->compileClient('Operation', endpoint => ...)
>>                          or        server   => ...
>>
>> "endpoint" redefines the whole location string, "server" only
>> the hostname and port.
>
> thanks, I think was just about to reach that conclusion reading the  
> docs.
>
> - Mark

Although, looks like you need to be using at least XML::Compile::SOAP  
v2.0x
for this option to be available. All of my installations were v0.78,  
now updated.

- Mark




More information about the Xml-compile mailing list