sending request to soap apihow to call a 3rd party soap api and create an object of soapclient

How can I get edges to bend to avoid crossing?

The Confused Alien

Needle Hotend for nonplanar printing

Why do I need two parameters in an HTTP parameter pollution attack?

Most importants new papers in computational complexity

One folder two different locations on ubuntu 18.04

Details of video memory access arbitration in Space Invaders

How can my story take place on Earth without referring to our existing cities and countries?

Is there reliable evidence that depleted uranium from the 1999 NATO bombing is causing cancer in Serbia?

Can Access Fault Exceptions of the MC68040 caused by internal access faults occur in normal situations?

Java Optional working of orElse is not as if else

Did Wakanda officially get the stuff out of Bucky's head?

Symbol for "not absolutely continuous" in Latex

What is a macro? Difference between macro and function?

Miss Toad and her frogs

In the context of a differentiator circuit, what is a “current-sensing resistor”?

Can a single server be associated with multiple domains?

How does the Duergar Magic shrink/enlarge ability work with rage?

Can a US President have someone sent to prison?

Can a police officer film me on their personal device in my own home?

Why does a brace command group need spaces after the opening brace in POSIX Shell Grammar?

Why transcripts instead of degree certificates?

Should I report a leak of confidential HR information?

Different budgets within roommate group



sending request to soap api


how to call a 3rd party soap api and create an object of soapclient






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















am trying to send a request to soap API using the following code




$client=$this->_connect->getConnection(); if ($client)
$req->salesOrderDetails->SalesOrder = $SalesOrder; $resultRequest = >
$client->ImportSalesOrder($req);




I have used $SalesOrder in the previous lines of code which is printing the sales order data but i am not able to print $SalesOrder data in the above code. Am getting the error shown below




Warning: Creating default object from empty value in
C:xampphtdocsMagentoappCodeCurocarteErpObserverOrderImport.php











share|improve this question









New contributor



Naveesh kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    am trying to send a request to soap API using the following code




    $client=$this->_connect->getConnection(); if ($client)
    $req->salesOrderDetails->SalesOrder = $SalesOrder; $resultRequest = >
    $client->ImportSalesOrder($req);




    I have used $SalesOrder in the previous lines of code which is printing the sales order data but i am not able to print $SalesOrder data in the above code. Am getting the error shown below




    Warning: Creating default object from empty value in
    C:xampphtdocsMagentoappCodeCurocarteErpObserverOrderImport.php











    share|improve this question









    New contributor



    Naveesh kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      0












      0








      0








      am trying to send a request to soap API using the following code




      $client=$this->_connect->getConnection(); if ($client)
      $req->salesOrderDetails->SalesOrder = $SalesOrder; $resultRequest = >
      $client->ImportSalesOrder($req);




      I have used $SalesOrder in the previous lines of code which is printing the sales order data but i am not able to print $SalesOrder data in the above code. Am getting the error shown below




      Warning: Creating default object from empty value in
      C:xampphtdocsMagentoappCodeCurocarteErpObserverOrderImport.php











      share|improve this question









      New contributor



      Naveesh kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      am trying to send a request to soap API using the following code




      $client=$this->_connect->getConnection(); if ($client)
      $req->salesOrderDetails->SalesOrder = $SalesOrder; $resultRequest = >
      $client->ImportSalesOrder($req);




      I have used $SalesOrder in the previous lines of code which is printing the sales order data but i am not able to print $SalesOrder data in the above code. Am getting the error shown below




      Warning: Creating default object from empty value in
      C:xampphtdocsMagentoappCodeCurocarteErpObserverOrderImport.php








      soap-api






      share|improve this question









      New contributor



      Naveesh kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question









      New contributor



      Naveesh kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question








      edited Jun 18 at 13:18









      Smita Kagwade

      39714 bronze badges




      39714 bronze badges






      New contributor



      Naveesh kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked Jun 18 at 12:59









      Naveesh kumarNaveesh kumar

      11 bronze badge




      11 bronze badge




      New contributor



      Naveesh kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Naveesh kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Naveesh kumar is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f278742%2fsending-request-to-soap-api%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Naveesh kumar is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Naveesh kumar is a new contributor. Be nice, and check out our Code of Conduct.












          Naveesh kumar is a new contributor. Be nice, and check out our Code of Conduct.











          Naveesh kumar is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f278742%2fsending-request-to-soap-api%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown