|
But
tell me Craig,
the
XML would have to be a file?
My
question is, if my client code is like that:
import
java.io.*;
import java.net.*; import java.util.*; import org.apache.soap.util.xml.*; import org.apache.soap.*; import org.apache.soap.rpc.*; import org.apache.soap.encoding.*; import org.apache.soap.encoding.soapenc.*; import org.w3c.dom.*; public
class Example2_client
{ public static void main (String[] args) throws Exception { System.out.println("\n\nCalling the SOAP server to say hello.\n\n"); URL url = new URL(args[0]); Call call = new Call();
call.setTargetObjectURI("urn:Example1"); call.setMethodName("sayHello"); call.setEncodingStyleURI("http://xml.apache.org/xml-soap/literalxml"); Vector params = new Vector();
params.addElement(new Parameter("sXML", Element.class, sXML, "http://xml.apache.org/xml-soap/literalxml") ); call.setParams(params); Response resp = call.invoke(url,
"");
if (resp.generatedFault())
{ Fault fault = resp.getFault(); System.out.println("Fault Code = " + fault.getFaultCode()); System.out.println("Fault String = " + fault.getFaultString()); } else { Parameter result = resp.getReturnValue(); System.out.println(result.getValue()); System.out.println(); } } } What
should sXML be? A file? a String? What?
Thanx!
Tiago Fernandes Thomaz
|
- Is it possible? Tiago Fernandes Thomaz
- RE: Is it possible? Wilkins, Craig
- Re: Is it possible? Tiago Fernandes Thomaz
- Re: Is it possible? Fred Meredith
