Loading ...
Sorry, an error occurred while loading the content.

ontent-Length header value was wrong

Expand Messages
  • lary_ecker
    Message 1 of 1 , Feb 12, 2013
    • 0 Attachment
      I haven't succeed to send/receive message using following perl code:
      >
      >
      >
      > use SOAP::Lite +trace;
      >
      > my $soap = SOAP::Lite->new( proxy =>
      > 'http://tc-apps:7001/axis2/services/ExecTC?wsdl',readable => 1)
      >
      > ->encoding("UTF-16");
      >
      > my $method = SOAP::Data->name('GetItemsInfo')
      >
      > ->attr({xmlns => 'http://ws.apache.org/axis2'});
      >
      > SOAP::Data
      >
      > ->name(GetItemsInfo =>
      >
      > \SOAP::Data->value(
      >
      > SOAP::Data->name("sUsr" =>
      > 'CBWQP'),
      >
      > SOAP::Data->name("sPass" =>
      > 'aBWQPKJI')));
      >
      > my $result = $soap->call($method => $query);
      >
      >
      >
      > The Error I get:
      >
      > Content-Length header value was wrong, fixed at
      > c:/Perl/lib/LWP/Protocol/http.pm
      >
      > line 207.
      >
      >
      >
      > You can see extra characters before <?xml
      >
      > And also white space between characters.
      >
      > It does not happened when I use UTF-8. But I have to use UTF-16
      > because of server.
      >
      >
      >
      > Could you please help?
      >
      > Thank in advance
      >
      > Kalina
      >
      >
      >
      > ■ < ? x m l v e r s i o n = " 1 . 0 " e n c o d i n g = " U T F - 1 6 "
      > ? >
      >
      >
      >
      > < s o a p : E n v e l o p e
      >
      > x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0
      > 0 1 / X M
      >
      > L S c h e m a - i n s t a n c e "
      >
      > x m l n s : s o a p e n c = " h t t p : / / s c h e m a s . x
      > m l s o a
      >
      > p . o r g / s o a p / e n c o d i n g / "
      >
      > x m l n s : x s d = " h t t p : / / w w w . w 3 . o r g / 2 0
      > 0 1 / X M
      >
      > L S c h e m a "
      >
      > s o a p : e n c o d i n g S t y l e = " h t t p : / / s c h e
      > m a s . x
      >
      > m l s o a p . o r g / s o a p / e n c o d i n g / "
      >
      > x m l n s : s o a p = " h t t p : / / s c h e m a s . x m l s
      > o a p . o
      >
      > r g / s o a p / e n v e l o p e / " >
      >
      > < s o a p : B o d y >
      >
      > < G e t I t e m s I n f o x m l n s = " h t t p : / / w s . a p a
      > c h
      >
      > e . o r g / a x i s 2 " >
      >
      > < G e t I t e m s I n f o >
      >
      > < s U s r x s i : t y p e = " x s d : s t r i n g " > C B
      > W Q
      >
      > P < / s U s r >
      >
      >
      >
      > < s P a s s x s i : t y p e = " x s d : s t r i n g " > a
      > B W
      >
      > Q P K J I < / s P a s s >
      >
      > < / G e t I t e m s I n f o >
      >
      > < / G e t I t e m s I n f o >
      >
      > < / s o a p : B o d y >
      >
      > < / s o a p : E n v e l o p e >
    Your message has been successfully submitted and would be delivered to recipients shortly.