Small issues about SOAP

Source: Internet
Author: User
Concerning the small issues of SOAP, the company's project cooperates with a third party. The third party provides the SOAP request address, request data format, and returned data format (SOAP ).
How can I use PHP to send a SOAP request and receive data returned by a third party.

Problem:
The client uses php to write a demo.

Can I send a request using fsockopen?
Or use SoapClient ()?

Note:
Third-party servers are written in. NET.
The third party provides SOPA specifications and URLs.


Reply to discussion (solution)

Php provides the SoapClient class to meet your needs.
Code compilation needs to be analyzed from the WSDL. if the other party does not provide the WSDL, there must be detailed call instructions.

The third party does not provide the WSDL, but only provides a SOAP standard document and the URL of the client request server.

No detailed call instructions are provided.
A demo is provided, but it is. NET. I am so confused about. NET.
I want to write it in PHP.

Something is for you, not for me
How do I know that?








Documentation provided for a third party. in the figure, only the registration required documents are provided.

The third party also provides the requested URL:
URL1 = "http://www.XXX.com/ipcam/soapservice ";
URL2 = "http://www.XXX.com/ipcam/ssservice ";
URL3 = "http://www.XXX.com/Userservice/useroperation ";


The third party does not provide WSDL, but only provides a SOAP standard document and the URL requested by the client.
The provided DEMO is. NET.
I don't know how to write a PHP DEMO.

For example:
$ This-> client = new SoapClient ("http: // localhost: 8080/HelloWorldService? Wsdl ", $ data)
However, the other party does not provide the WSDL.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.