Shun Fung BSP Order number query Interface SOAP request Example _php tutorial

Source: Internet
Author: User

Shun Fung BSP Order number query Interface SOAP Request example


In some interfaces the design of a soap-like request is sometimes used, such as the interface of Shun Fung BSP.

I tried different ways of post-request, either completely requested something, or received garbled, all failed.

The core code for SOAP requests for Shun Fung interfaces is shared as follows:

code as follows

/**
* Send SOAP request
*/
PR ivate function _soap ()
{
$client = new SoapClient ($this->serviceurl);
$info = new StdClass ();
$info-> ; arg0 = $this->xml;
$param = Array ($info);
$response = $client->__call ("Sfexpressservice", $param);
return $response->return;
}

/**
* Stitching out the requested XML
*/
Public Function Createxml ()
{
$xml = '
Invoice_no . ' "/>

';
$this->xml = $xml;
}

Tips:
1. $this the BSP request address assigned by->serviceurl, note the address of the WSDL
2. $this->user, $this->password is the ID and check code assigned by Shun Fung
3. The returned return is an XML string, which you may need to simplexml_load_string to parse.

http://www.bkjia.com/PHPjc/898890.html www.bkjia.com true http://www.bkjia.com/PHPjc/898890.html techarticle Shun Fung BSP Order number query Interface SOAP Request example in some interfaces are sometimes used in the design of a SOAP method, such as the interface of Shun Fung BSP. I'm trying different ways of post way request ...

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