Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^6: SOAP lite with WCF

by Anonymous Monk
on Jul 08, 2013 at 01:15 UTC ( #1043021=note: print w/replies, xml ) Need Help??


in reply to Re^5: SOAP lite with WCF
in thread SOAP lite with WCF

How? Here I specify the SOAP Action name ProcessMessage - no mention of 'Request' here.
my $soap = SOAP::Lite -> ns( 'http://www.w3.org/2001/XMLSchema-instance', 'xsi' ) -> ns( 'urn::sdp:profilemanager:requestmanager', 'a' ) -> ns( 'urn::sdp:profilemanager:contract:110308', 'b' ) -> uri($uri) -> on_action( sub { join '.ProcessMessage', 'urn::sdp:profilemanag +er:requestmanager:100818.ProfileScopeServiceContract', $_[1] } ) -> proxy($url); And here I assume I'm specifying the name of the first element with th +e Soap Body - Request. <code> my $method = SOAP::Data->name('Request') ->attr({xmlns => 'urn::sdp:profilemanager:profilemanagerrequestman +ager:100818'});
But this seems to also append the word 'Request' to my soap action?

Replies are listed 'Best First'.
Re^7: SOAP lite with WCF
by Anonymous Monk on Jul 08, 2013 at 01:32 UTC

    How? Here I specify the SOAP Action name ProcessMessage - no mention of 'Request' here.

    So what, you're using two variables  $_[0] and $_[1] , maybe one of them has "Request"

    If you don't know whats going on, Basic debugging checklist says Dumper() Dumper() Dumper()

    But this seems to also append the word 'Request' to my soap action?

    What happens when you comment that line out?

      I've been using Perl for all of 2 days. Maybe you could explain the function and what its doing as its not very intuitive?
      -> on_action( sub { join '.ProcessMessage', 'urn::sdp:profilemanag +er:requestmanager:100818.ProfileScopeServiceContract', $_[1] } )
      Where am using the variable $_[0] you mention?

        Where am using the variable  $_[0] you mention?

        Well, it looks like you're not, but it looks like you are using  $_[1] , so what is the value of  $_[1] ?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043021]
help
Chatterbox?
[ambrus]: Corion: as for that, I talked with schmorp, and looked a bit more at Prima
[ambrus]: Corion: from the docs, it definitely looks like it would be possible to write an AnyEvent driver for it using Prima::File and Prima::Timer.
[ambrus]: (I haven't found an idle event.)
[ambrus]: However, I also looked at the internals, and found two interesting things:
[marto]: stupid xpath question, I have a xpath copied from the browser, is the * wildcard supposed to work for IDs? e.g. '//*[@id="*"]/ div/div/header/p/a '?
[ambrus]: The main loop for unixish systems is in https://metacpan. org/source/ KARASIK/Prima-1. 49/unix/apc_app.c. It is a hand-rolled select loop, but also always spins at least once every 0.2 seconds for some reason.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2016-12-08 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (140 votes). Check out past polls.