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.
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.
Lots of examples here:
http://manual.aspdotnetstorefront.co...wsi-nodes.aspx
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.
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:
" "
' '
< <
> >
& &
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
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> <AspDotNetStorefrontImport Version="7.1"> <GetCustomer ID="12345" /> </AspDotNetStorefrontImport> </XmlInputRequestString> </DoItUsernamePwd> </soap:Body> </soap:Envelope>