In php have a class SoapClient I need a equivalente class in Java, anyone know a class or library?
example, in PHP i can make this:
$client = new SoapClient("http://xxx/yy/login.php?wsdl");
$ticket=$client->__soapCall('getXxx',array('login','senha'));
how to i Do this in java?
Maybe would be a good idea consider to apply Apache CXF. You can simple pass the WSDL to a class generator that will generate a Java API automatically for you.
The generated API will be a bunch of classes that has a kind of Façade. This Façade can be instantiated and used as other java class. The logic behind it is more or less like this: When some method is invoked the generated classes will create a SOAP request, request it to the webservice end-point, get the response, convert it into Java object and return it as a normal method invocation.
Apache CXF
Give a try, I’m pretty sure you will like it (I worked a long time with SOAPServer and SOAPClient too in PHP).
Some hints:
https://cwiki.apache.org/CXF20DOC/wsdl-to-java.html simple like
wsdl2java -client HelloWorld.wsdl