Hi Guys,
Does anyone have any experience in consuming SOAP webservices in their app? Specifically KashFlow?
Im getting this error when I try to request a service:
2018-11-03 14:44:48,075 ERROR Reply#47842#KashFlow#4ac286b7af96a80fc1cd3038a33a9bd1 -18 Resumed process GetCustomerByID has failed. Message is Service provider returned the following error: Error invoking operation:
javax.xml.rpc.JAXRPCException: Number of parameters passed in (4) doesn't match the number of IN/INOUT parameters (3) from the addParameter() calls Sending failure reply
Started sent unsent email thread 0
Anyone have any idea what might cause this? Any pointers?
Many Thanks
Andy
Help With SOAP Service
-
- Posts: 130
- Joined: Tue Dec 03, 2013 10:19 pm
Re: Help With SOAP Service
You need to pass only 3 parameters in the request, whereas as per logs you seem to be passing 4 parameters.
Following are the three parameters:
<UserName>string</UserName>
<Password>string</Password>
<CustomerID>int</CustomerID>
Link : https://securedwebapp.com/api/service.a ... stomerByID
Following are the three parameters:
<UserName>string</UserName>
<Password>string</Password>
<CustomerID>int</CustomerID>
Link : https://securedwebapp.com/api/service.a ... stomerByID
Re: Help With SOAP Service
Hi Bondicoffee,
Thanks for taking the time to look at this issue for me. I have taken another look at this now and have realised that KashFlow offer two API's, one is for their clients and one for their partners and it seems that I had been using the WSDL for the wrong API! Sorry to have wasted anyone's time with this one.
Now that I have gotten over that hurdle it seems I now have a new problem....
I’m experiencing a problem whilst discovering services. AwareIM seems to create all ‘parameter’ objects but doesn’t create the matching ‘Reply’ objects. Well that is except for two of the reply objects, for some reason AwareIM recognises these two (sageFile and sageFileImport) and creates them but none of the others.
I was trying to discover services first in AIM Version 6 and I got this problem and then I tried it in a trial version of the latest build and the issue is the same.
I have used the KashFlow WSDL in some other SOAP testing applications (SoapUI and WSDLBrowser.com etc) and they seem to recognise/discover and create all objects from the WSDL file and so it seems that there isn’t a problem with KashFlow’s API or WSDL but I am no expert in this technology.
I’m wondering if there is some bug in AwareIM or if there is another issue. If anyone can shed any light on this or try this in a test BSV I'd be really grateful.
KashFlows WSDL File is located here: http://securedwebapp.com/api/service.asmx?WSDL
Their API documentation is here: https://securedwebapp.com/api/service.asmx
And here: https://www.kashflow.com/developers/soap-api
Many Thanks
Thanks for taking the time to look at this issue for me. I have taken another look at this now and have realised that KashFlow offer two API's, one is for their clients and one for their partners and it seems that I had been using the WSDL for the wrong API! Sorry to have wasted anyone's time with this one.
Now that I have gotten over that hurdle it seems I now have a new problem....
I’m experiencing a problem whilst discovering services. AwareIM seems to create all ‘parameter’ objects but doesn’t create the matching ‘Reply’ objects. Well that is except for two of the reply objects, for some reason AwareIM recognises these two (sageFile and sageFileImport) and creates them but none of the others.
I was trying to discover services first in AIM Version 6 and I got this problem and then I tried it in a trial version of the latest build and the issue is the same.
I have used the KashFlow WSDL in some other SOAP testing applications (SoapUI and WSDLBrowser.com etc) and they seem to recognise/discover and create all objects from the WSDL file and so it seems that there isn’t a problem with KashFlow’s API or WSDL but I am no expert in this technology.
I’m wondering if there is some bug in AwareIM or if there is another issue. If anyone can shed any light on this or try this in a test BSV I'd be really grateful.
KashFlows WSDL File is located here: http://securedwebapp.com/api/service.asmx?WSDL
Their API documentation is here: https://securedwebapp.com/api/service.asmx
And here: https://www.kashflow.com/developers/soap-api
Many Thanks
-
- Posts: 7526
- Joined: Sun Apr 24, 2005 12:36 am
- Contact: