How convert to array or json php soap __dorequest response? The Next CEO of Stack OverflowHow can I prevent SQL injection in PHP?PHP: Delete an element from an arrayConvert HTML + CSS to PDF with PHP?How do I get PHP errors to display?How Do You Parse and Process HTML/XML in PHP?Convert PHP object to associative arrayHow does PHP 'foreach' actually work?Reference - What does this error mean in PHP?Manually convert XML SOAP response into PHP arrayParse XML SOAP response php

Gödel's incompleteness theorems - what are the religious implications?

Is it okay to majorly distort historical facts while writing a fiction story?

Why do we say “un seul M” and not “une seule M” even though M is a “consonne”?

Does int main() need a declaration on C++?

Is it OK to decorate a log book cover?

Car headlights in a world without electricity

Can I cast Thunderwave and be at the center of its bottom face, but not be affected by it?

Are British MPs missing the point, with these 'Indicative Votes'?

Can you teleport closer to a creature you are Frightened of?

Is the offspring between a demon and a celestial possible? If so what is it called and is it in a book somewhere?

Identify and count spells (Distinctive events within each group)

Why was Sir Cadogan fired?

Could you use a laser beam as a modulated carrier wave for radio signal?

How can the PCs determine if an item is a phylactery?

How does a dynamic QR code work?

Arrows in tikz Markov chain diagram overlap

How to coordinate airplane tickets?

That's an odd coin - I wonder why

How can a day be of 24 hours?

Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico

Is a distribution that is normal, but highly skewed, considered Gaussian?

How to show a landlord what we have in savings?

What difference does it make matching a word with/without a trailing whitespace?

Find a path from s to t using as few red nodes as possible



How convert to array or json php soap __dorequest response?



The Next CEO of Stack OverflowHow can I prevent SQL injection in PHP?PHP: Delete an element from an arrayConvert HTML + CSS to PDF with PHP?How do I get PHP errors to display?How Do You Parse and Process HTML/XML in PHP?Convert PHP object to associative arrayHow does PHP 'foreach' actually work?Reference - What does this error mean in PHP?Manually convert XML SOAP response into PHP arrayParse XML SOAP response php










-2















this is _dorequest response. Response is xml string data.
I tried convert with simplexml_load_string() function and later return array but function result is empty.



'<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<ns1:createNgiShipmentWithAddressResponse xmlns:ns1="http://yurticikargo.com.tr/NgiShipmentInterfaceServices" xmlns:ns2="http://yurticikargo.com.tr/NgiShipmentInterfaceServices" xmlns:ns3="http://yurticikargo.com.tr/WSExceptions/">
<XShipmentDataResponse>
<outFlag>0</outFlag>
<projectId>18501</projectId>
<specialFieldDataArray>
<specialFieldName>53</specialFieldName>
<specialFieldValue>SIP-1234885679</specialFieldValue>
</specialFieldDataArray>
<specialFieldDataArray>
<specialFieldName>3</specialFieldName>
<specialFieldValue>SIP-1234885679</specialFieldValue>
</specialFieldDataArray>
</XShipmentDataResponse>
</ns1:createNgiShipmentWithAddressResponse>
</env:Body>
</env:Envelope>'










share|improve this question


























    -2















    this is _dorequest response. Response is xml string data.
    I tried convert with simplexml_load_string() function and later return array but function result is empty.



    '<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <ns1:createNgiShipmentWithAddressResponse xmlns:ns1="http://yurticikargo.com.tr/NgiShipmentInterfaceServices" xmlns:ns2="http://yurticikargo.com.tr/NgiShipmentInterfaceServices" xmlns:ns3="http://yurticikargo.com.tr/WSExceptions/">
    <XShipmentDataResponse>
    <outFlag>0</outFlag>
    <projectId>18501</projectId>
    <specialFieldDataArray>
    <specialFieldName>53</specialFieldName>
    <specialFieldValue>SIP-1234885679</specialFieldValue>
    </specialFieldDataArray>
    <specialFieldDataArray>
    <specialFieldName>3</specialFieldName>
    <specialFieldValue>SIP-1234885679</specialFieldValue>
    </specialFieldDataArray>
    </XShipmentDataResponse>
    </ns1:createNgiShipmentWithAddressResponse>
    </env:Body>
    </env:Envelope>'










    share|improve this question
























      -2












      -2








      -2








      this is _dorequest response. Response is xml string data.
      I tried convert with simplexml_load_string() function and later return array but function result is empty.



      '<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Header/>
      <env:Body>
      <ns1:createNgiShipmentWithAddressResponse xmlns:ns1="http://yurticikargo.com.tr/NgiShipmentInterfaceServices" xmlns:ns2="http://yurticikargo.com.tr/NgiShipmentInterfaceServices" xmlns:ns3="http://yurticikargo.com.tr/WSExceptions/">
      <XShipmentDataResponse>
      <outFlag>0</outFlag>
      <projectId>18501</projectId>
      <specialFieldDataArray>
      <specialFieldName>53</specialFieldName>
      <specialFieldValue>SIP-1234885679</specialFieldValue>
      </specialFieldDataArray>
      <specialFieldDataArray>
      <specialFieldName>3</specialFieldName>
      <specialFieldValue>SIP-1234885679</specialFieldValue>
      </specialFieldDataArray>
      </XShipmentDataResponse>
      </ns1:createNgiShipmentWithAddressResponse>
      </env:Body>
      </env:Envelope>'










      share|improve this question














      this is _dorequest response. Response is xml string data.
      I tried convert with simplexml_load_string() function and later return array but function result is empty.



      '<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Header/>
      <env:Body>
      <ns1:createNgiShipmentWithAddressResponse xmlns:ns1="http://yurticikargo.com.tr/NgiShipmentInterfaceServices" xmlns:ns2="http://yurticikargo.com.tr/NgiShipmentInterfaceServices" xmlns:ns3="http://yurticikargo.com.tr/WSExceptions/">
      <XShipmentDataResponse>
      <outFlag>0</outFlag>
      <projectId>18501</projectId>
      <specialFieldDataArray>
      <specialFieldName>53</specialFieldName>
      <specialFieldValue>SIP-1234885679</specialFieldValue>
      </specialFieldDataArray>
      <specialFieldDataArray>
      <specialFieldName>3</specialFieldName>
      <specialFieldValue>SIP-1234885679</specialFieldValue>
      </specialFieldDataArray>
      </XShipmentDataResponse>
      </ns1:createNgiShipmentWithAddressResponse>
      </env:Body>
      </env:Envelope>'







      php






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 21 at 20:07









      Tuğçe ÖzerTuğçe Özer

      1




      1






















          1 Answer
          1






          active

          oldest

          votes


















          0














          xml converted to array:



          $xml = "$result"; //$result xml string
          $xml_parser = xml_parser_create();
          xml_parse_into_struct($xml_parser,$xml,$vals,$index);
          xml_parser_free($xml_parser);
          $sonuc = $vals[$index['NODENAME'][0]]["value"];





          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55288506%2fhow-convert-to-array-or-json-php-soap-dorequest-response%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            xml converted to array:



            $xml = "$result"; //$result xml string
            $xml_parser = xml_parser_create();
            xml_parse_into_struct($xml_parser,$xml,$vals,$index);
            xml_parser_free($xml_parser);
            $sonuc = $vals[$index['NODENAME'][0]]["value"];





            share|improve this answer



























              0














              xml converted to array:



              $xml = "$result"; //$result xml string
              $xml_parser = xml_parser_create();
              xml_parse_into_struct($xml_parser,$xml,$vals,$index);
              xml_parser_free($xml_parser);
              $sonuc = $vals[$index['NODENAME'][0]]["value"];





              share|improve this answer

























                0












                0








                0







                xml converted to array:



                $xml = "$result"; //$result xml string
                $xml_parser = xml_parser_create();
                xml_parse_into_struct($xml_parser,$xml,$vals,$index);
                xml_parser_free($xml_parser);
                $sonuc = $vals[$index['NODENAME'][0]]["value"];





                share|improve this answer













                xml converted to array:



                $xml = "$result"; //$result xml string
                $xml_parser = xml_parser_create();
                xml_parse_into_struct($xml_parser,$xml,$vals,$index);
                xml_parser_free($xml_parser);
                $sonuc = $vals[$index['NODENAME'][0]]["value"];






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 22 at 13:03









                Tuğçe ÖzerTuğçe Özer

                1




                1





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • 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%2fstackoverflow.com%2fquestions%2f55288506%2fhow-convert-to-array-or-json-php-soap-dorequest-response%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







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현