Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hello all, I have a very small piece of code I have been struggling with and I am wondering if anyone has any insight. I have a WSDL definition from a .NET service of
The service is out of my control. I am using SOAP::Lite. I am not very familiar with SOAPs architecture and I have really never used it before. I have had success with every test service I used (from the SOAP documentation I was using - plus a java one we created ourselves), but not with this one. I do not get anything back. The code I used is as follows:
print SOAP::Lite -> uri(' +Encrypt') -> service('') -> Encrypt('43877AF844D640A189E5708F3BE9222E', 'Testing');
The code appears to run, but does not print anything. I have a tool called SOAPscope that I ran against this same .WSDL and it returned an encrypted string. I'm not sure if I am missing something simple. I know SOAP::Lite says it does not support complex return types, but this just comes back as a string (according to SOAPscope). I will take any advice you have to offer. Maybe I am getting failure return codes, but I don't know how to check them or maybe the data is coming back and Perl does not know how to handle it. Also, so there is no confusion, every other test I ran I used
->proxy() instead of ->service()
and in that proxy I put the name and location of the service. In this case the service is putting out a bogus .wsdl so I modified it to better reflect the service. I used SOAPscope to test with the .WSDL I created and it works as hoped. Thanks.

In reply to SOAP Client by Hammy

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others perusing the Monastery: (2)
    As of 2019-08-22 00:12 GMT
    Find Nodes?
      Voting Booth?

      No recent polls found