PHP calls Java WebService interface problem
Help how through WebService authentication, Java side provides a user name and password, every time I call WebService interface prompts me to be authenticated to operate, but they do not have a dedicated login method to my landing, this swollen do? Is it possible to do a login operation when instantiating an interface?
------Solution--------------------
Can you contact the supplier, they write Java can not give you PHP authentication method, should give Java authentication way? After you get the Java authentication method, look at what authentication method he is using, and then find the appropriate way to verify PHP. If you are using SoapHeader authentication method. Java PHP has a corresponding class/function
"I don't know how the Java side is verifying us, so I don't know how to pass the username and password to Java to verify the identity."
WebService authentication method should be more than one, this problem only the supplier can answer you, you can try it is not the head verification
$client = new SoapHeader (' Addouthandler ', ' checkUser ', ' xiebuqing ');
Parameters: 1 Namespace (this can be set by yourself) 2 account (in fact, his method) 3 Password/verification code
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