AW: [soaplite] WS-Trust / WS Security / RequestSecurityToken, was: namespace
> I) You also replied to another email in the soaplite, yahooin priniple yes. If you use this, you can write:
> email. Where you specified that through this command:
> ce/"); # namespace of your method
> We can generate
> <login xmlns="http://www.betfair.com/publicapi/v3/BFGlobalService/">
> Can I do this for my requirement too?
I.e. you do not need prefixes ($prefix2) for your elements inside
RequestSecurityToken, when using ->uri(NS) and
when all request elements are within this namespace.
> 2) You also mentioned that I can register namespaces insideright.
> SOAP:Envelop , and then do not need to do that stuff again
> for SOAP::Header , SOAP:Body?
> Are you sure that the code which you sent me , ( where we areyes. Except - the server does strange things with the request :-/
> not inserting namespaces inside Header / body ) would also work?
But I don't excpect the server to do strange things...
>You can. But why do you need them? It is ok to put a namespace declaration
> SOAP::Lite I guess creates the header and body automatically
> when I issue the method call at runtime.I do not have the
> control to insert namespaces there.
on a valid "place". Envelope is
a valid place.
Anyway, you can supply a namespace for every element, including the method
name (RequestSecurityToken) by using:
"xmlns:xyxyxy => "urn:theNamespace" }), ...