↧
From: | Jim M |
To: | Rick Strahl |
Shouldn't there be a 1 to 1 match?
What I'm saying is post your code so that those of us that want to look at this can just run the code without having to figure out what needs to be called.
I understand that you just want this to work, and believe me I want to help, but I don't want to spend a half an hour trying to figure out your Web service to call and what parameters to pass. So if you can post the code that you're using as a simple ready to run (even if it fails) sample, that makes life a lot easier for testing and getting me to check out the important parts that don't work with ambiguity of whether I'm passing the right data.
Any mehtod you call on the service proxy has to match parameter types EXACTLY! Meaning you can't just pass arbitrary parameters to these method you have to actually pass the right types.
The easiest ways to figure this out is to use Reflector to look at the generated .NET assembly to see all the parameters that are required and then matching those up with FoxPro values that need to be passed in. There are examples in the help file in the walk through and video that demonstrate how to call and pass complex parameters (like an invoice).
+++ Rick ---
I thought it was something wrong with the ups shipping wsdl.. so I tried it with your wsdl...
Doesn’t even work with.. http://store.west-wind.com/Service/webstoreconsumerservice.asmx?wsdl What am I missing? I read the Docs…
DO webstoreserviceproxy
*** Create Proxy Instance & specify .NET version
loProxy = CREATEOBJECT("WebStoreServiceProxy","V2")
* loProxy = CREATEOBJECT("WebStoreServiceProxy","V4")
*** Call your methods and retrieve result
lcResult = loProxy.UploadInvoice("fake param","fake param")
*** Check for error message if result is failing
? loProxy.cErrorMsg
Errors out before even going outside the router,,
says Method "WebStoreSerice,WebStoreService.UploadInvoice" not found
All generated DLL PRG CS files are in the folder that above code is in..