Connect Web Service in Java with SOAP Client Objective C without WSDL2OBJC and Sudz C?
I have this web service in Java:
@WebService(serviceName = "Catalogo_V1")
public class Catalogo_V1 {
/** This is a sample web service operation */
@WebMethod(operationName = "hello")
public String hello(@WebParam(name = "name") String txt)
{
System.out.println("kkk"+txt);
if(txt != null)
{
txt= txt +"www";
}
开发者_如何学Python return "Hello " + txt + " !";
}
}
I have tryed with WSDL2OBJ and dont send my parameters, finally i have decided change and probe with other tecnology.
Can someone help me???
If you are looking for an alternative to something like SudzC, you can always work with simple SOAP interfaces by hand. It's really not that hard to do, but it does require you to generate the outgoing XML and parse the incoming XML yourself.
When I've done this, I've managed it by creating "template" versions of my requests and bundled them with my iOS app. When I need to make a request I pull in the template XML file and do some simple string/XML manipulation to insert the parameters into the request XML. Then I submit the XML request, get the XML response, and parse out the parts of the response I care about.
This is not something I would recommend if you are doing lots of different SOAP calls with complex XML inputs or outputs. But for simple SOAP requests, it works just fine.
精彩评论