login about faq

Hello.

I have to call a function on a webservice with the following syntax:

Delivery(Username As String, Name As String, AccessID as string, XMLFile As String) As String

The webservice address is something like:

http://www.website.com/delivdev/delivery.asmx?wsdl

The XMLfile is in Utf-8 and contains several items to be exported, according to an XSD file that validates the XML file I create.

How can I do this using Chilkat activeX ( for example in FoxPro )?

Thanks,

Carlos

asked Apr 11 at 12:04

CarlosC70's gravatar image

CarlosC70
1

edited Apr 12 at 06:47


Hi Carlos,

You could start following a SOAP 1.1 example at "https://www.example-code.com/foxpro/soap_web_service.asp"

In the xml file in this example you should fill with variables and data following the rules dictacted by wsdl page. In general in these pages the developer has an example using SOAP, REST and xml accessing in your example "http://www.webiste.com/delivdev/delivery.asmx?delivery" where delivery is the name of the method used in your example. This page in general has examples that the developer expect to get correct results. If does not have this documentation you should contact developer/owner to send you an example.

Xml file has to follow construction rules accordingly to protocol SOAP, REST or Xml. In this example you should replace "GetUKLocationByPostCode" by a function and parameters like "PostCode" by your parameters something like:

<username>paul1</username> <name>Paul</name> <accessid>1</accessid> <xmlfile>path</xmlfile>

There's another example using xml webservice in "https://www.example-code.com/foxpro/http_postUrlEncoded.asp" where we're using xml. Use AddParam to set you data.

Your example seems to have some kind of login/authentication first using Username, Name and ID. Check to see if you have a method "login" for example or this is all integrated in one call.

Hope this help you as starting point.

Marcos

link

answered May 17 at 17:22

Sibuya's gravatar image

Sibuya
11

link

answered May 18 at 14:49

agoeddeke's gravatar image

agoeddeke
12

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6
×2

Asked: Apr 11 at 12:04

Seen: 380 times

Last updated: May 18 at 14:49

powered by OSQA