Hi gurus
I'm passing parameters in a soap call that are being auto-classed to something other than I'd like. My code is:
SOAP::Data->value(SOAP::Data->new->name('ID' => '0001')),SOAP::Data->value(SOAP::Data->new->name('pin' => '00001'))
And they are getting encoded as integers, not strings:
<facilityPin xsi:type="xsd:int">0001</facilityPin>
<personalPin xsi:type="xsd:int">00001</personalPin>
Anyway to define that I want those values passed as strings instead of integers? It seems to be auto-determining, which is very very cool, but the receiving code isn't handling the int correctly.
Full Code
$service -> AuthenticateUser();
my $som = $service -> call (SOAP::Data->name('AuthenticateUser')->
+attr({xmlns => 'http://test.live.org/WS/'}),SOAP::Data->value(SOAP::D
+ata->new->name('id' => '0001')),SOAP::Data->value(SOAP::Data->new->na
+me('pin' => '00001')),SOAP::Data->value(SOAP::Data->new->name('user'
+=> 'user')),SOAP::Data->value(SOAP::Data->new->name('pass' => 'pass')
+))||&soapGetBad();
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.