Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: I sent 3 email with code ..

$
0
0
Re: I sent 3 email with code ..
Web Service Proxy Generator
Re: I sent 3 email with code ..
Jul. 14, 2013
11:13 am
3TY0O29T2Show this entire thread in new window
Gratar Image based on email address
From:Jim M
To:Rick Strahl
looking at reflector.. the methods created in there do not match the ones generated on the class prg.. The reflector shows about 70 methods created... the class in the prg has 2.. that dont even match any of the ones in reflector...

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 ---


By the way... I don't want anyone to do the work for me... I could just as easily get this done with another tool or do it from scratch.. I bought this tool to get the job done.. and all I ask is why cant I even call a class after everything is generated..


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..





Viewing all articles
Browse latest Browse all 10393

Trending Articles