I'm trying to get an Apache SOAP 2.2 client to talk to an Axis Web
Service, Here is the code for the client, I seem to be getting a
SoapException though.I'm using the userguide.example3 and I've changed
it so that it will return an  Element

// Build the call.
Call call = new Call();
call.setTargetObjectURI("MyService");
call.setMethodName("serviceMethod");
call.setEncodingStyleURI(Constants.NS_URI_LITERAL_XML);

        
Vector params = new Vector();
params.addElement(new Parameter("newRequest", Element.class,
                   root, Constants.NS_URI_LITERAL_XML));
call.setParams(params);
        
// Invoke the call.
Response resp;
try {
  resp = call.invoke(url, "");                
}catch (SOAPException e){
  System.err.println(e.getFaultCode()+" : " + e.getMessage());
  return;
}

-- 
Gus Delgado
Consultant
NetQuotient Consulting Group
e-mail: [EMAIL PROTECTED]
cell:   512-587-6986

Reply via email to