Professional Web Applications Themes

SOAP::Lite : Problem of # sign added by SOAP::Lite in the sent SOAPActionstring - PERL Modules

Removed by Administrator...

  1. Moderated Post

    Default SOAP::Lite : Problem of # sign added by SOAP::Lite in the sent SOAPActionstring

    Removed by Administrator
    Bruno Baguette Guest
    Moderated Post

  2. #2

    Default Re: SOAP::Lite : Problem of # sign added by SOAP::Lite in the sent SOAPAction string

    Hi Bruno,

    In article <2v1vp0F2fa8fhU1uni-berlin.de>,
    Bruno Baguette <bouchonalussinan.org> wrote:
    > I have a problem with a SOAP client written in Perl (source at the end).
    > I've tried both ways (by commenting TRIAL ONE or SECOND TRIAL), and I
    > get exactly the same results.
    >
    > When I see the trace of that script, I notice that there is a # sign
    > before the method I try to invoque.
    >
    > I think that that # sign may be responsible of the SOAP error I get :
    > System.Web.Services.Protocols.SoapException: Server did not recognize
    > the value of HTTP Header SOAPAction: #GetProperties.
    >
    > If I see the trace of the SOAP::Lite module, I see that it send
    > #GetProperties instead of GetProperties :
    > SOAPAction: "http://schemas.dataswitch.be/service/2.7/export/#GetProperties"
    >
    > Is there a way to avoid that # sign in the sent SOAPAction by the
    > SOAP::Lite module ?
    >
    > Thanks _very_ much in advance for your help !
    I had the same problem, the solution can be found quite easy using
    Google. One usefull url:

    [url]http://www.dotnettalk.net/Calling__Net_web_service_using_a_PERL_client_-6[/url]
    301906-1296-a.html

    The gist of the solution is specifiying an on_action method that builds
    the SOAPAction string:

    use SOAP::Lite +trace => 'debug';

    ....

    $SOAPService->on_action(sub{join '/',
    'http://schemas.dataswitch.be/service/2.7/export', $_[1]});

    ....

    This should build the right SOAPAction, look at the output to see the
    actual value for SOAPAction being used to see if it's correct.

    btw. you're probably using SOAP::Lite to talk to a .Net soap service,
    there are more issues with this (you have to use named parameters for
    instance). Check out
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsoap/h[/url]
    tml/soapliteperl.asp for more.

    Cheers,

    Bas.
    Bas Guest

Similar Threads

  1. SOAP::Lite
    By Nicholas Garfield in forum PERL Modules
    Replies: 7
    Last Post: March 8th, 08:08 AM
  2. problem with SOAP::Lite and mod_perl
    By stanmcfarland@comcast.net in forum PERL Modules
    Replies: 0
    Last Post: June 20th, 02:57 PM
  3. Writing a HTML/ASP SOAP client for a SOAP::Lite destination
    By jim.long@vanderbilt.edu in forum PERL Modules
    Replies: 0
    Last Post: March 17th, 12:19 AM
  4. SOAP::Lite install problem
    By Dan Pelton in forum PERL Modules
    Replies: 3
    Last Post: February 28th, 04:44 AM
  5. SOAP::Lite XML-Problem
    By Blaine Everingham in forum PERL Modules
    Replies: 0
    Last Post: December 12th, 07:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139