Hello all,
I'm having a problem calling web-service via SOAP. The service definition is following:
<service engine="soap" invoke="getRate" location="
http://64.124.140.30:80/soap" name="getRate">
<description>Currency Rate</description>
<namespace>urn:xmethods-CurrencyExchange</namespace>
<attribute type="String" mode="IN" name="country1" optional="false" />
<attribute type="String" mode="IN" name="country2" optional="false" />
<attribute type="Float" mode="OUT" name="Result" optional="false" />
</service>
I get an exception:
---- exception report ----------------------------------------------------------
Service [getRate] threw an unexpected exception/error
Exception: org.ofbiz.service.GenericServiceException
Message: RPC error (String index out of range: -1)
---- stack trace ---------------------------------------------------------------
org.ofbiz.service.GenericServiceException: RPC error (String index out of range: -1)
org.ofbiz.service.engine.SOAPClientEngine.serviceInvoker(SOAPClientEngine.java:165)
org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:82)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
Also the send TCP package is wrong:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv= "
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XM LSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSc hema-instance">
<soapenv:Body>
<getRate xmlns="">
<country1 xsi:type="xsd:string">USA</country1>
<country2 xsi:type= "xsd:string">USA</country2>
</getRate>
</soapenv:Body>
</soapenv:Envelope>
'xmlns' attribute in 'getRate' tag should be 'urn:xmethods-CurrencyExchange'
Is this a problem of SOAP in OFBiz or of mine? :)
Thanks for your time.
Oleg
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev