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

Can this SOAP request be written differently?

Expand Messages
  • mikeburdickutah
    Can this SOAP request be written differently so that I can make sure the correct value is on the correct layer so to speak? In other words, can I use a
    Message 1 of 1 , Oct 21, 2005
    • 0 Attachment
      Can this SOAP request be written differently so that I can make sure
      the correct value is on the correct layer so to speak? In other
      words, can I use a different technique to achieve the same goal? As
      you can see, it's hard to follow!

      Thanks,

      Mike


      Example:

      ##################
      my $request = SOAP::Data->name( "DoExpressCheckoutPaymentRequest" =>
      \SOAP::Data->value(
      SOAP::Data->name("Version" =>
      $version)->attr({xmlns=>"urn:ebay:apis:eBLBaseComponents"})->type(""),

      SOAP::Data->name("DoExpressCheckoutPaymentRequestDetails" =>

      \SOAP::Data->value(

      SOAP::Data->name("Token" => $token)->type(""),

      SOAP::Data->name("PaymentAction" => 'Sale')->type(""),

      SOAP::Data->name("PayerID" => "$payerID")->type(""),

      SOAP::Data->name( "PaymentDetails" =>

      \SOAP::Data->value(

      SOAP::Data->name("OrderTotal" =>
      "$amount")->attr({xmlns=>"urn:ebay:apis:eBLBaseComponents",
      currencyID=>"USD"})->type("")

      )

      )

      )

      )->attr({xmlns=>"urn:ebay:apis:eBLBaseComponents"})
      )
      );
      #################
    Your message has been successfully submitted and would be delivered to recipients shortly.