Hallo,
I would like to send a XML (subscribe.xml - see below) file to a WSDL using VBA in ACCESS 2007.
An username and password must be used
The WSDL replies with a XML file (see below)
Can you help me create this code?
Thanks, Marion
Username = "Username"
Password = "Password"
The url of the WSDL: "
http://www.kapazatest.com/soap/content04.cfc?wsdl"
subscribe.xml:
<?xml version = "1.0"?>
<env:Envelope xmlns:env="
http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<Subscribe>
<Username>Username</Userna
me>
<Password>Password</Passwo
rd>
<Email>info@domain.be</Ema
il>
<UserPassword>Password2</U
serPasswor
d>
<NewPassword></NewPassword
>
<ExternalID></ExternalID>
<Name>Mastercar</Name>
<Address>2313 Any St</Address>
<Zipcode>3500</Zipcode>
<City>Sometown</City>
<Country>be</Country>
<Language>nl</Language>
<Phone>011/xx.xx.xx</Phone
>
<Homepage>
http://www.someplace.be</H
omepage>
<RemoteAddress></RemoteAdd
ress>
<AgreeConditions>1</AgreeC
onditions>
</Subscribe>
</env:Body>
</env:Envelope>
The response I should get:
<?xml version="1.0" encoding="utf-8" ?>
- <soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <SubscribeResponse soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/">
- <SubscribeReturn xsi:type="ns1:Map" xmlns:ns1="
http://xml.apache.org/xml-soap">
- <item xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/">
<key xsi:type="soapenc:string">
Result</ke
y>
<value xsi:type="soapenc:string">
1</value>
</item>
- <item>
<key xsi:type="soapenc:string" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/">Customer
ID</key>
<value xsi:type="soapenc:int" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/">1587849<
/value>
</item>
- <item>
<key xsi:type="soapenc:string" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/">UserPass
word</key>
<value xsi:type="soapenc:string" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/">Password
2</value>
</item>
</SubscribeReturn>
</SubscribeResponse>
</soapenv:Body>
</soapenv:Envelope>
Start Free Trial