Hi this is outside the scope of ofbiz mailing list.
if you can show a error that is return by ofbiz then we can help.
vivtops86 sent the following on 7/30/2010 2:27 AM:
My JAVA web service client is:
public static Map accessService(DispatchContext dctx, Map context) {
String endPoint =
"http://10.8.5.58:8080/webtools/control/SOAPService/";
String inputParam = "Vivek";
Map output=null;
Call call;
try {
call = (Call) new Service().createCall();
try {
call.setTargetEndpointAddress(new
URL(endPoint));
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
call.setOperationName(new
QName("http://ofbiz.apache.org/service/",
"learningFirstSoap"));
call.addParameter("inputParam",
org.apache.axis.Constants.SOAP_VECTOR,
javax.xml.rpc.ParameterMode.IN);
call.addParameter("outputParam",
org.apache.axis.Constants.SOAP_VECTOR,
javax.xml.rpc.ParameterMode.OUT);
call.setReturnType(org.apache.axis.Constants.SOAP_VECTOR);
try {
Object responseWS=call.invoke(new
Object[]{inputParam});
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
output = call.getOutputParams();
System.out.println("call invoked...");
} catch (ServiceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("*******call.add parameterl********");
return output;
}
I am getting "content not allowed in prolog" error at Object
responseWS=call.invoke(new Object[]{inputParam}); statement