JenniReyniss
Programmer
Hi everybody
I'm using WebService created in .NET and I'm calling it with VFP9.
There are two methods that I'm gonna use.
One to receive data and one to send data.
The one that I'm receive data works fine but when I try to send I got some problem.
When I look at the method in VFP (in the XML Web Services part) it says that the syntax for it is :
(Parameter names and such have been changed.)
The information I got from the company that I'm trying to send to is that the code for the XML should be something like this (presumably with .NET in mind) :
I have tried to find the solution for my problem and the closest thing I found is :
I create a form, put a button on it an in the click I drag the WebService in it from the toolbox.
In the code that comes automatically I put after the '* Call your XML Web service here.' this code here :
When I try this I get this error :
Error: 1429 - OLE IDispathc exception code 0 from Client: Client:Incorrect number of parameters supplied for SOAP request HRESULT=0x80070057: The parameter is incorrect.
- Clinet:Unspecified client error. HRESULT=0x80070057: The parameter is incorrect.
..
Client:Incorrect number of parameters supplied for SOAP request HRESULT=0x80070057: The parameter is incorrect.
- Clinet:Unspecified client error. HRESULT=0x80070057: The parameter is incorrect.
What am I missing or doing wrong?
After searching for solution and seeing some codes I consider if my problem is :
(despite of my lack off knowledge)
- should I use '< ?xml version = "1.0" ....' and then how?
- shouldn't I use 'TEXTMERGE' to send in XML (XMLDOMNodeList). And than what is the best / right way to do it?
- something about schema. Is it not identified or wrongly?
- something to do with 'diffgram'. Should I use it and than how?
- is there something missing or not identified?
- is the date making the error?
Please help me and if you need more information please let me know.
All help would be appraised.
With hope that this is just a missing '( )' problem or something simple as that.
With thanks in advance,
JensReyniss
I'm using WebService created in .NET and I'm calling it with VFP9.
There are two methods that I'm gonna use.
One to receive data and one to send data.
The one that I'm receive data works fine but when I try to send I got some problem.
When I look at the method in VFP (in the XML Web Services part) it says that the syntax for it is :
(Parameter names and such have been changed.)
Code:
SendXML(User AS string, UserPwd AS string, service AS string, receiver AS string, xml AS XMLDOMNodeList, UserMessage AS string) AS VOID
Code:
<coolio_words xmlns="[URL unfurl="true"]http://www.company.com/schemas/inc/coolie/1"[/URL] message="string_1" sender="sring_2" system="strng_3">
<customer_insert staff="string_4" ktl="string_5" reject="" batch="string_6" country="string_7">
<customer cost="string_8" date="2001-01-01T00:00:00" costSystem="string_9" costName="string_10" />
</customer_insert>
</coolio_words>
I create a form, put a button on it an in the click I drag the WebService in it from the toolbox.
In the code that comes automatically I put after the '* Call your XML Web service here.' this code here :
Code:
TEXT TO lcXML TEXTMERGE NOSHOW PRETEXT 7
<coolio_words xmlns="[URL unfurl="true"]http://www.company.com/schemas/inc/coolie/1"[/URL] message_id="string_1" senderId="sring_2" systemId="strng_3">
<customer_insert staffId="string_4" ktl="string_5" rejectReason="" batchID="string_6" countryCode="string_7">
<customer cost="string_8" date="2001-01-01T00:00:00" costSystem="string_9" costName="string_10" />
</customer_insert>
</coolio_words>
ENDTEXT
leSend = loWebSevice.SendXML("something_1","something_2","something_3","something_4",lcXML,"something_5")
Error: 1429 - OLE IDispathc exception code 0 from Client: Client:Incorrect number of parameters supplied for SOAP request HRESULT=0x80070057: The parameter is incorrect.
- Clinet:Unspecified client error. HRESULT=0x80070057: The parameter is incorrect.
..
Client:Incorrect number of parameters supplied for SOAP request HRESULT=0x80070057: The parameter is incorrect.
- Clinet:Unspecified client error. HRESULT=0x80070057: The parameter is incorrect.
What am I missing or doing wrong?
After searching for solution and seeing some codes I consider if my problem is :
(despite of my lack off knowledge)
- should I use '< ?xml version = "1.0" ....' and then how?
- shouldn't I use 'TEXTMERGE' to send in XML (XMLDOMNodeList). And than what is the best / right way to do it?
- something about schema. Is it not identified or wrongly?
- something to do with 'diffgram'. Should I use it and than how?
- is there something missing or not identified?
- is the date making the error?
Please help me and if you need more information please let me know.
All help would be appraised.
With hope that this is just a missing '( )' problem or something simple as that.
With thanks in advance,
JensReyniss