title: SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error
body: <p>I tried to connect server (I implemented the client side) using SOAP::Lite module
  during my debug, I encounter with error of SOAP version which solved by:
      -> soapversion('1.2')
      -> envprefix('soap12');</p>
  
  <p>Now, I have issue that I got below error:
  SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error
  and then is also write after:
  The security context token is expired or is not valid. The message was not processed
  Is there any connection between both? </p>
  
  <p>My code is:
  my $soap = SOAP::Lite
      -> uri('$uri_address')
      -> on_action( sub { join '/', '$uri_address', $_[1] } )
      -> proxy('$url_address')
      -> soapversion('1.2')
      -> envprefix('soap12');</p>
  
  <h2>- Overriding the constant</h2>
  
  <p>$SOAP::Constants::DEFAULT_HTTP_CONTENT_TYPE 
     = 'application/soap+xml';</p>
  
  <p>my $method = SOAP::Data->name('HelloWorld')
  ->attr({xmlns => '$uri_address'});</p>
  
  <h1>The parameters are held in @params</h1>
  
  <p>my @params = ( SOAP::Data->name(MyData => $my_string));</p>
  
  <p>my $result = $soap
                          ->call($method => @params);</p>
  
  <p>if ($result->fault)
  {
       print "\n\n==========fault happened===========\n\n";
     print $result->faultstring;
  }
  else
  {
     print $result->result;
  }</p>
  
  <p>It printed the envelope and then it prints:
  SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x3749874)
  SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error
  Date: Wed, 13 Apr 2011 23:36:26 GMT
  Server: Microsoft-IIS/7.5
  Content-Length: 562
  Content-Type: application/soap+xml; charset=utf-8
  Client-Date: Wed, 13 Apr 2011 23:36:27 GMT
  Client-Peer: 10.185.78.22:80
  Client-Response-Num: 1
  X-Powered-By: ASP.NET</p>
  
  <p>http://www.w3.org/2005/08/addressing/soap/faults:Sendera:BadContextTokenThe security context token is expired or is not valid. The message was not processed.
  SOAP::Deserializer::deserialize: ()
  SOAP::Parser::decode: ()
  SOAP::SOM::new: ()</p>
  
  <p>==========fault happened===========</p>
  
  <p>SOAP::SOM::DESTROY: ()
  SOAP::Lite::DESTROY: ()
  SOAP::Serializer::DESTROY: ()
  SOAP::Data::DESTROY: ()
  SOAP::Data::DESTROY: ()
  SOAP::Data::DESTROY: ()
  SOAP::Data::DESTROY: ()
  SOAP::Data::DESTROY: ()
  SOAP::Data::DESTROY: ()
  SOAP::Transport::DESTROY: ()
  SOAP::Transport::HTTP::Client::DESTROY: ()
  SOAP::Deserializer::DESTROY: ()
  SOAP::Parser::DESTROY: ()</p>
  
  <p>What can be the root cause? pls help...</p>
  
  <p>Thanks in advance!! </p>