Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 8 of 8

Thread: Can the web service ONLY be called using .NET?

  1. #1
    erich93063 is offline Member
    Join Date
    Aug 2007
    Posts
    49

    Default Can the web service ONLY be called using .NET?

    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?

  2. #2
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    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

  3. #3
    ASPDNSF Staff - Buddy is offline Banned
    Join Date
    Jul 2005
    Posts
    378

    Default

    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.

  4. #4
    erich93063 is offline Member
    Join Date
    Aug 2007
    Posts
    49

    Default

    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?

  5. #5
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

  6. #6
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    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>

  7. #7
    tytyguy is offline Senior Member
    Join Date
    Nov 2007
    Posts
    307

    Default

    what would it look like in C#?

  8. #8
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    Just download the sample WSI asp.net client (It's linked in the manual). Thx.
    AspDotNetStorefront
    Shopping Cart