I have read through the WSI manual and I saw the .NET code examples. I was wondering if anyone else has used another programming language to interact with the web service? Namely Cold Fusion. Is this even possible?
I have read through the WSI manual and I saw the .NET code examples. I was wondering if anyone else has used another programming language to interact with the web service? Namely Cold Fusion. Is this even possible?
it's a SOAP call, with Xml input and output docs. You should be able to call it from any platform. We do use WSE3 authentication (recommended) so that may be a consideration but should also be SOAP compliant
Last edited by Rob; 04-01-2008 at 09:42 PM.
AspDotNetStorefront
Shopping Cart
Our use of WSE3 is still SOAP standards compliant. We are only using WSE to implement the UserNameToken in a SOAP packet. UserNameTokens are standard SOAP elements.
OK, so if I figure out Cold Fusions way of sending a SOAP call, what all do I need to send? I assume I am basically posting some XML to the web URL correct? So I pass the XML, but what else? I know I need to send the username and password also right? Is that sent within the XML doc or is that sent separately?
Here's an example of making a call to WSI in php. You can also pass over commands just to "do something" if you don't care about retrieving results.
C#/VB.NET Code:
$AuthenticationEMail = 'emailaddress';
$AuthenticationPassword = 'password';
$WebServiceURL = 'https://yoursite/webservicepage.asmx?WSDL';
$client = new SoapClient($WebServiceURL);
$params->AuthenticationEMail = $AuthenticationEMail;
$params->AuthenticationPassword = $AuthenticationPassword;
$params->XmlInputRequestString = '<AspDotNetStorefrontImport><GetProduct GetAll="true"/></AspDotNetStorefrontImport>';
$objectresult = $client->DoItUsernamePwd($params);
$simpleresult = $objectresult->DoItUsernamePwdResult;
$doc = new DOMDocument('1.0');
$doc->formatOutput = true;
$doc->loadXML($simpleresult);
$dataset = $doc->getElementsByTagName( "Product" );
foreach( $dataset as $row )
{
// retrieve the xml data from each $row
// and complete your logic
}
<a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>
what would it look like in C#?
Just download the sample WSI asp.net client (It's linked in the manual). Thx.
AspDotNetStorefront
Shopping Cart