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 5 of 5

Thread: Base RAW XML for DoItUsernamePwd

  1. #1
    beaudamore is offline Junior Member
    Join Date
    Sep 2012
    Posts
    3

    Default Base RAW XML for DoItUsernamePwd

    I need the ram xml used to an actual call to WSI. ANY call will do. This is for an iOS app so I need the full monty of raw XML here.
    Thanks all.

  2. #2
    vedran is offline Member
    Join Date
    Jun 2012
    Posts
    98

  3. #3
    beaudamore is offline Junior Member
    Join Date
    Sep 2012
    Posts
    3

    Default

    actually, I meant what wraps those calls... in otherwords, how do authenticate with WSI.
    I've worked with WSI a lot in the past using their demo console app as the primer. However, I need to get to it via iOS (iPhone/iPad).
    I already have an iOS app talking SOAP to a service I created on a local windows box here. But I need it to talk to WSI, preferably via the DoITUsernamePwd method as most clients with have SSL. No need for the tokens thing.

  4. #4
    beaudamore is offline Junior Member
    Join Date
    Sep 2012
    Posts
    3

    Default

    I actually need the wraper that goes around that. I think I found it though bu going to ipx.asmx in a browser:
    --------
    POST /ipx.asmx HTTP/1.1
    Host: 192.168.1.88
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://www.aspdotnetstorefront.com/DoItUsernamePwd"

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <DoItUsernamePwd xmlns="http://www.aspdotnetstorefront.com/">
    <AuthenticationEMail>string</AuthenticationEMail>
    <AuthenticationPassword>string</AuthenticationPassword>
    <XmlInputRequestString>string</XmlInputRequestString>
    </DoItUsernamePwd>
    </soap:Body>
    </soap:Envelope>
    --------

    My problem is now the 'InputRequestString'... I've tried sending xml like:
    ----
    <AspDotNetStorefrontImport Version="7.1">
    <GetCustomer Email="admin@aspdotnetstorefront.com"/> </AspDotNetStorefrontImport>
    ----
    it only goes if I escape out the XML characters:
    " &quot;
    ' &apos;
    < &lt;
    > &gt;
    & &amp;

    and it accepts it as valid into WSI, but then bombs saying the 'inputrequeststring' isn't valid... there's some trick to getting it to work here I'm not getting.

    Spent a lot of time with WSI for the past year but via console apps using their canned started project. Not from scratch in iOS

  5. #5
    jmcconahie is offline Junior Member
    Join Date
    Nov 2011
    Posts
    13

    Default

    I had the same issue, and you were on the right track. The key is to just escape the '>' and '<' characters. Something Like:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <DoItUsernamePwd xmlns="http://www.aspdotnetstorefront.com/">
          <AuthenticationEMail>user@email.com</AuthenticationEMail>
          <AuthenticationPassword>somepassword</AuthenticationPassword>
          <XmlInputRequestString>
    	   &lt;AspDotNetStorefrontImport Version="7.1"&gt;
                    &lt;GetCustomer ID="12345" /&gt;
               &lt;/AspDotNetStorefrontImport&gt;
          </XmlInputRequestString>
        </DoItUsernamePwd>
      </soap:Body>
    </soap:Envelope>