Jump to content

Recommended Posts

Hello

 

New on PHP and I have a problem, I'm making __call to a web .Net Web service and I have responde but is structure like that

stdClass Object ( [schema] => [any] => "The Information that web service responce" ) ; But I dont know how separte the data from to read a specific field.

 

help

 

Adolfo Foliaco

Link to comment
https://forums.phpfreaks.com/topic/76097-solved-net-web-services/
Share on other sites

thank for the response

but this is how it goes

 

this is the Soap on the web service

 

 

 

 

POST /mywebservice.asmx HTTP/1.1
Host: localhost
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <getmy xmlns="namespace">
      <intGUID>int</intGUID>
    </getmy>
  </soap12:Body>
</soap12:Envelope>

HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <getmyResponse xmlns="namespace">
      <getmyResult>
        <xsd:schema>schema</xsd:schema>xml
      </getmyResult>
    </getmyResponse>
  </soap12:Body>
</soap12:Envelope>

 

so as you can see the soap call return a xml schema.

 

so how I read each field of the xml schema

 

thanks

 

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.