Ask php to call the javasoap instance-php Tutorial

Source: Internet
Author: User
Php always reports an error when calling the java soap interface using php to call the OAP instance.
Below


Reply to discussion (solution)

Paste the code for details.

Ini_set ("soap. wsdl_cache_enabled", "0 ");
Set_time_limit (60 );
Header ("Content-type: text/html; charset = utf-8 ");
$ Client = new SoapClient ('http: // 133.0.128.141: 8081/csp/services/sr/c_hbdx_ci_serRequest? Wsdl ', array ('authentication' => SOAP_AUTHENTICATION_BASIC, 'soap _ version' => SOAP_1_2 ));
$ Client-> soap_defencoding = 'utf-8 ';
$ Client-> decode_utf8 = false;
$ Client-> xml_encoding = 'utf-8 ';
$ Param = array (
'Srtypeid' => '123 ',
'Subsname' => 'Yang Yuyin ',
'Subsnumber' => '123 ',
'Callerno' => '123 ',
'Contactperson' => 'Yang Yuyin ',
'Contactmode' => '0 ',
'Contactphone1 '=> '123 ',
'Contactphone2' => '123 ',
'Email '=> 'wangqiwen1994 @ 163.com ',
'Address' => 'hubei Wuhan ',
'Subslevel' => '1 ',
'Subsbrand' => '7 ',
'Acceptmode' => '0 ',
'Acceptstaffno' => '123 ',
'Servicetitle' => 'pre-processing ticket ',
'Servicecontent' => 'Category: SMS class processing ',
'Acceptcity '=> '123 ',
'Subscity '=> '123 ',
'Servicecity '=> '123 ',
'Urgentid' => '123 ',
'Contactchannel' => '62 ',
'Flowid' => '123 ',
'Contactid' => '20140901 ',
'Prodid' => '123 ',
'Servid' => '123 ',
'Remark01' => '1 ',
'Remark02' => '2 ',
'Remark03' => '3 ',
'Mark04 '=> '4 ',
'Remark05 '=> '5 ',
'Mark06' => '6 ',
'Remark07' => '7 ',
'Mark08' => '8 ',
'Remark09' => '9 ',
'Remark10' => '10'
);
$ Result = $ client->__ call ('createproblemprocess ', $ param );


?>
The above is my code. please take a look at the problem and keep reporting the error in my post.

Paste the code for details.



Ini_set ("soap. wsdl_cache_enabled", "0 ");
Set_time_limit (60 );
Header ("Content-type: text/html; charset = utf-8 ");
$ Client = new SoapClient ('http: // 133.0.128.141: 8081/csp/services/sr/c_hbdx_ci_serRequest? Wsdl ', array ('authentication' => SOAP_AUTHENTICATION_BASIC, 'soap _ version' => SOAP_1_2 ));
$ Client-> soap_defencoding = 'utf-8 ';
$ Client-> decode_utf8 = false;
$ Client-> xml_encoding = 'utf-8 ';
$ Param = array (
'Srtypeid' => '123 ',
'Subsname' => 'Yang Yuyin ',
'Subsnumber' => '123 ',
'Callerno' => '123 ',
'Contactperson' => 'Yang Yuyin ',
'Contactmode' => '0 ',
'Contactphone1 '=> '123 ',
'Contactphone2' => '123 ',
'Email '=> 'wangqiwen1994 @ 163.com ',
'Address' => 'hubei Wuhan ',
'Subslevel' => '1 ',
'Subsbrand' => '7 ',
'Acceptmode' => '0 ',
'Acceptstaffno' => '123 ',
'Servicetitle' => 'pre-processing ticket ',
'Servicecontent' => 'Category: SMS class processing ',
'Acceptcity '=> '123 ',
'Subscity '=> '123 ',
'Servicecity '=> '123 ',
'Urgentid' => '123 ',
'Contactchannel' => '62 ',
'Flowid' => '123 ',
'Contactid' => '20140901 ',
'Prodid' => '123 ',
'Servid' => '123 ',
'Remark01' => '1 ',
'Remark02' => '2 ',
'Remark03' => '3 ',
'Mark04 '=> '4 ',
'Remark05 '=> '5 ',
'Mark06' => '6 ',
'Remark07' => '7 ',
'Mark08' => '8 ',
'Remark09' => '9 ',
'Remark10' => '10'
);
$ Result = $ client->__ call ('createproblemprocess ', $ param );


?>
The above is my code. please take a look at the problem and keep reporting the error in my post.

Your url is not accessible. paste the wsdl to see it.

Your url is not accessible. paste the wsdl to see it.


My eldest brother 133 is my intranet address. how can I access this?

Yes! The url is not accessible. if you do not provide the WSDL
In addition to you, who else will know how to access it?

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.