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
-- 
View this message in context: 
http://www.nabble.com/pb-with-call-remoteFindReceipt-soap-service-tf4509799.html#a12861926
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to