Request PHP to invoke Java SOAP instance

Source: Internet
Author: User
A recent call to Java SOAP interface with PHP is always an error
Below


Reply to discussion (solution)

Check out the code specifically.

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 ' and ' soap_1_2 ');
$client->soap_defencoding = ' utf-8 ';
$client->decode_utf8 = false;
$client->xml_encoding = ' utf-8 ';
$param = Array (
' Srtypeid ' = ' 070001003002002001 ',
' Subsname ' = ' Yangyu silver ',
' Subsnumber ' = ' 13720193280 ',
' Callerno ' = ' 13720193280 ',
' ContactPerson ' = ' Yangyu silver ',
' Contactmode ' = ' 0 ',
' ContactPhone1 ' = ' 13720193280 ',
' ContactPhone2 ' = ' 13720193280 ',
' Email ' = ' wangqiwen1994@163.com ',
' Address ' = ' Hubei Wuhan ',
' Subslevel ' = ' 1 ',
' Subsbrand ' = ' 7 ',
' Acceptmode ' = ' 0 ',
' Acceptstaffno ' = ' 7316 ',
' Servicetitle ' = ' pre-processing work order ',
' ServiceContent ' + ' Category: SMS Class processing ',
' acceptcity ' = ' 101000 ',
' subscity ' = ' 101011 ',
' servicecity ' = ' 101011 ',
' Urgentid ' = ' 00006003 ',
' Contactchannel ' = ' 62 ',
' Flowid ' = ' 211 ',
' ContactId ' = ' 233322 ',
' ProdId ' = ' 1232343243 ',
' Servid ' = ' 2342343 ',
' Remark01 ' = ' 1 ',
' Remark02 ' = ' 2 ',
' Remark03 ' = ' 3 ',
' Remark04 ' = ' 4 ',
' Remark05 ' = ' 5 ',
' remark06 ' = ' 6 ',
' Remark07 ' = ' 7 ',
' Remark08 ' = ' 8 ',
' remark09 ' = ' 9 ',
' Remark10 ' = ' 10 '
);
$result = $client->__call (' createproblemprocess ', $param);


?>
The above is my code, please God help me to see the problem there, has been reported on my post error.

Check out the code specifically.



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 ' and ' soap_1_2 ');
$client->soap_defencoding = ' utf-8 ';
$client->decode_utf8 = false;
$client->xml_encoding = ' utf-8 ';
$param = Array (
' Srtypeid ' = ' 070001003002002001 ',
' Subsname ' = ' Yangyu silver ',
' Subsnumber ' = ' 13720193280 ',
' Callerno ' = ' 13720193280 ',
' ContactPerson ' = ' Yangyu silver ',
' Contactmode ' = ' 0 ',
' ContactPhone1 ' = ' 13720193280 ',
' ContactPhone2 ' = ' 13720193280 ',
' Email ' = ' wangqiwen1994@163.com ',
' Address ' = ' Hubei Wuhan ',
' Subslevel ' = ' 1 ',
' Subsbrand ' = ' 7 ',
' Acceptmode ' = ' 0 ',
' Acceptstaffno ' = ' 7316 ',
' Servicetitle ' = ' pre-processing work order ',
' ServiceContent ' + ' Category: SMS Class processing ',
' acceptcity ' = ' 101000 ',
' subscity ' = ' 101011 ',
' servicecity ' = ' 101011 ',
' Urgentid ' = ' 00006003 ',
' Contactchannel ' = ' 62 ',
' Flowid ' = ' 211 ',
' ContactId ' = ' 233322 ',
' ProdId ' = ' 1232343243 ',
' Servid ' = ' 2342343 ',
' Remark01 ' = ' 1 ',
' Remark02 ' = ' 2 ',
' Remark03 ' = ' 3 ',
' Remark04 ' = ' 4 ',
' Remark05 ' = ' 5 ',
' remark06 ' = ' 6 ',
' Remark07 ' = ' 7 ',
' Remark08 ' = ' 8 ',
' remark09 ' = ' 9 ',
' Remark10 ' = ' 10 '
);
$result = $client->__call (' createproblemprocess ', $param);


?>
The above is my code, please God help me to see the problem there, has been reported on my post error.

Your URL is inaccessible, post the WSDL to see

Your URL is inaccessible, post the WSDL to see


Eldest brother 133 is my intranet address how can access it?

Yes! URL is inaccessible, WSDL you have not given
Who else would know how to access it, except you?

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