Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SOAP example
Message
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01663864
Message ID:
01663894
Views:
69
Hi,

You don't need SOAP client.

See to https://www.foxite.com/archives/checkvatservice-0000324873.htm

MartinaJ

>Hi all, I have a little problem, I have an application that connects to a rest webservice using post and it's working fine, but now I need to change this to soap due client request, and I don't know how to handle, I'm trying this code, there is no error until I try to use the UploadRequest that is the method. If there is a help or manual on how to work with soap in vfp?
>TIA.
>
>
>LOCAL o as MSSOAP.SoapClient30
>o = CREATEOBJECT("MSSOAP.SoapClient30")
>cXMLFile=FILETOSTR("file.xml")
>lcUrl = "http://10.10.17.44:50000/dir/wsdl?p=ic/9aaf555740af331f91df86e61322415c"
>
>TRY
>    o.MSSoapInit(lcUrl)
>    o.ConnectorProperty("AuthUser") = 'MyUser'
>    o.ConnectorProperty("AuthPassword") = "MyPass"
>    o.ConnectorProperty("ConnectTimeout")=5000
>    o.ConnectorProperty("Timeout")=10000
>
>    o.UploadRequest( cXMLFile)
>
>CATCH TO loException
>   MESSAGEBOX(loException.message,16,"Error")
>ENDTRY
>
>
>wsdl
>
>         <xsd:element name="UploadRequest">
>            <xsd:complexType>
>               <xsd:sequence>
>                  <xsd:element name="fileName" type="xsd:string"/>
>                  <xsd:element name="fileData" type="xsd:string"/>
>                  <xsd:element name="companyId" type="xsd:string"/>
>                  <xsd:element name="accountId" type="xsd:string"/>
>               </xsd:sequence>
>            </xsd:complexType>
>         </xsd:element>
>
>
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform