Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing webservice with certificate/vfp 9 sp2

Status
Not open for further replies.

EzLogic

Programmer
Aug 21, 2001
1,230
US
I use the wwhttp from West-Wind.

I am having issue knowing how to call the web service.
I have a URL
I have the certificate# installed on my machine from the vendor.

this is their document:

Code:
GetProvidersRequest WSDL Snippet
<xs:element name = "GetProvidersRequest">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:q1="urn:Qpay.POSII.DataContracts" minOccurs="0" name="Header"
nillable="true"
type="q1:POSRequestHeader"/>
</xs:sequence>
</xs:complexType>
</xs:element>

POSRequestHeader WSDL Snippet
<xs:complexType name="POSRequestHeader">
<xs:sequence>
<xs:element name="User" nillable="true" type="xs:string"/>
<xs:element name="CertPublicKey" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="UIID" nillable="true" type="xs:short:/>
</xs:sequence>
</xs:complexType>
<xs:element name="POSRequestHeader" nillable="true" type="tns:POSRequestHeader"/>
<xs:complexType name = "POSResponseHeader">



however, this is not the XML. I am confused between the wdsl and the xml that i need to post to get the result back.

any help?


Ez Logic
Michigan
 
bump... any help please?

Ez Logic
Michigan
 
wsdl: web service description language.

It's not a full description and it does not include all infos needed to use a web service.
The description is just partial and it's not the XML you send or receive from the service.

Read some basics about web services first, and ask the service provider for details, there should be a documentation for developers.

Bye, Olaf.
 
If you don't know how to structure a web service call from within VFP, consider using the "My XML Web Services" node in the Toolbox (accessible from the Tools menu). Use it to register the service, then drag the relevant item from the Toolbox into a code editing window. This will generate the code you need, including the parameters that you need to pass.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Hi EZ Logic:

I think, you have to use westwind 'WebService Proxy generator'. The way it works is you submit your link to the schema (as you shown above). The program will create necessary VFP code, classes and dlls that you include in your application. Make calls to webservice through this generated code. You have VFP examples included.

I have done this some 2-years ago and working fine. Keep in mind, you may need to add delays every 20 records or so and then again every 100 records of transmission.

here is the link:
[URL unfurl="true"]http://www.west-wind.com/wsdlgenerator/[/url]



Nasib
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top