Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SOAP example
Message
From
29/11/2018 03:54:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
SOAP example
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:
01663864
Views:
87
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>
John Harold Belalcázar Lozano
Associate Director Of Development
http://www.belvicto.co/
jhbelalc@gmail.com
Next
Reply
Map
View

Click here to load this message in the networking platform