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. 15, 2013
12:36 am
3TZ01BI6JShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Jim M
From what I see the service has three methods, which are mapped by the proxy both in FoxPro and .NET.

Look for the ShipService class in the .NET Proxy (via Reflector).

+++ Rick ---



this is the wsdl link
http://telecom.shieldswired.us/wiredweb/ship.wsdl

after generating everything.. the reflector methods to not correspond to a method in the prg class-methods..

shouldn't there be a 1 to 1 match?


I purchased proxy gen about 5...6 years ago.. used it to call telecom services... It did the job... That was 6.. 7 years ago.. so now 6..7 years later.. I need to use proxy gen again.. I could find what I did with the software.. So I just purchased it again.
This time around.. not so smooth.. 5 days later and I'm still at square one..

I think the proxy gen is parsing the wsdl wrong.. or the ups ship wsdl file is wrong..

Thanks
Jim


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







Rick Strahl
West Wind Technologies


from Geneva


Viewing all articles
Browse latest Browse all 10393

Trending Articles