PHP uses WebService to send data to Java.

Source: Internet
Author: User
Send data to Java, error message part {Urn:bbs}myfunc is not recognized. (Does it exist in service WSDL?). There is a great God to help solve the next ah, what is the problem. Tokyu Tokyu Tokyu


Reply to discussion (solution)

Method MyFunc is not defined in the WSDL

But I defined ah and in $client = new SoapClient ("http://127.0.0.1/bbs/home_page/html/hello.wsdl");
try {
$demo = " ";
$result = $client->myfunc (" ");
Var_dump ($result);
echo "the answer Isresult";
}
catch (SoapFault $f) {
echo "Error Message: {$f->getmessage ()}";
}
?>
This case can be found but the new SoapClient ("http://198.162.1.111:8080/leanproc/ws/bbs?wsdl") to the address of this Java interface is an error.

How can I get the data into Java, or do I have to configure what the other side of the interface is linked to in the WSDL file?

If PHP is called, add WSDL, but the Java side does not need to add WSDL.

And when you pass the data, it's a SOAP packet. So when the PHP side of the echo what the time must be careful otherwise he will be echo or other output of the content also as the packet processing and then the error

I've done one similar to this just PHP and Android Interactive PHP provides webservice Android request data

I send data to the Java side, now can be connected with the other side, is an error: {Urn:bbs}myfunc was is not recognized. (Does it exist in service WSDL?). I am a rookie, there is no great God help pointing Ah! What else needs to be changed!

Look at your WSDL.

The error message clearly indicates:
MyFunc is not recognized method MyFunc not recognized
Does it exist in service WSDL? Does he exist in the WSDL?



































































This is my WSDL content, myfunc exist Ah!

Here's the problem.


You should be able to access it with HTTP://127.0.0.1:80/BBS/HOME_PAGE/HTML/SERVER.PHP?WSDL
And you can't use HTTP://198.162.1.111:8080/LEANPROC/WS/BBS?WSDL.
Is that right?

  • Related Article

    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.