My company is migrating its email to everyone.net. Our ticket system (written in Perl) has to be able to interface with their system, which uses XRC over SOAP to communicate. My problem is that when I try to pass data of the type ArrayOfInt, it simply gets ignored (everything else works fine). This is not critical, as only the offerIDs data requires it. Net::XRC provided some insight, but didn't include how to do this via SOAP. My question is, if any of you have had experience with everyone.net in the past, could you take a look at my code and see if there's a better way to pass the offerIDs data (I'm using the array @pkg to represent it)?

#!/usr/bin/perl use strict; use SOAP::Lite +trace => "debug"; package XRC; # This is the domain clientID use constant XRC_CLIENTID => 12345; sub addUser { my ($username, $password, $pkg) = @_; my $client = connectXrc(); my $result = $client->createUser( XRC_CLIENTID, @{$pkg}, $username, $password); } sub connectXrc { # xrc.wsdl handles the authentication my $client = SOAP::Lite ->uri("urn:xrc.ws.everyone.net") ->service("file:///path/to/xrc.wsdl") ->proxy("https://ws.everyone.net/ws/services/xrc"); return $client; }

My test program looks like this:

#!/usr/bin/perl use XRC; my @pkg = 5544; print "username: "; my $username = <STDIN>; chomp($username); print "password: "; my $password = <STDIN>; chomp($password); XRC::addUser($username, $password, \@pkg);
- cerror

In reply to XRC and SOAP::Lite by cerror

Title:
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, details, 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, summary, 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.