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
-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Calling-remote-web-service-tp2307741p2307766.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to