Jump to content

[SOLVED] .Net Web Services


sonofsam

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

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.