pb with call remoteFindReceipt soap service

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pb with call remoteFindReceipt soap service

sqlien
Hi,

I want to call soap service " remoteFindReceipt " defined in servicemgnt/servicedef/services.xml for test SOAP

here is my code client :

String endpointURL = "http://localhost:8080/webtools/control/SOAPService";
String inputParam = "Dupond";
Map output;
String description = null;
Service  service = new Service();
Call     call    = (Call) service.createCall();
                        call.setTargetEndpointAddress(new URL(endpointURL));
                        call.setOperationName(new QName("http://localhost:8080/" , "remoteFindReceipt"));
                        call.addParameter("idName", Constants.XSD_STRING, ParameterMode.IN);
                        call.setReturnType(Constants.XSD_STRING);
                        Object reponseWS = call.invoke(new Object[]{inputParam});
                        System.out.println("my response = "+ (String) reponseWS);
                        output = call.getOutputParams();
                        description = (String) output.get(new QName("" , "description"));
I get the following error:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXParseException: Content is not allowed in prolog.
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

I modified SOAPClientEngine.java such explained in http://www.opensourcestrategies.com/ofbiz/OFBIZ_SOAP_RMI_Tutorial.pdf 

I access Internet without proxy

       
NB : I succeeded to call the service " findReceiptWS " which type is java

Regards