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?