Looking for old forum posts and information? View the old forum archive here ยป
Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

A static copy of our previous forums website is available online for reference. Click here to access the forum archive.

Learn more about...

AspDotNetStorefront
DotFeed

Version 10 WSI request formatting

So Ive tried to figure this out and I can't find any real documentation on this. I've got a few questions about using WSI in version 10.

In version 9 this would work posting to mysite.com//ipx.asmx

<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>admin@mysite.com</AuthenticationEMail>
      <AuthenticationPassword>password</AuthenticationPassword>
      <XmlInputRequestString>
	  &lt;AspDotNetStorefrontImport Version="7.1"&gt;
		 
			 &lt;InventoryUpdate>
				 &lt;Inv Quantity="20" VariantID="8377778" /&gt;
			 &lt;/InventoryUpdate&gt;
						
		 &lt;/AspDotNetStorefrontImport&gt;
      </XmlInputRequestString>
    </DoItUsernamePwd>
  </soap:Body>
</soap:Envelope>

I can't seem to figure out how to do this in version 10? I'm trying the same thing posting to mysite.com/ipx.svc. intially i was getting a 400 bad request error. today i seem to be getting 500 error so I don't know if it it something with the formatting of the request or an issue with the server configuration or somthing. I'm hoping someone can point me in the right direction.

here is the raw request (with site names and password changed)

POST https://mysite.com/ipx.svc
Content-Type: text/xml; charset=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>admin@mysite.com</AuthenticationEMail>
      <AuthenticationPassword>password</AuthenticationPassword>
      <XmlInputRequestString>
	  &lt;AspDotNetStorefrontImport Version="7.1"&gt;
		 
			 &lt;InventoryUpdate>
				 &lt;Inv Quantity="20" VariantID="8377778" /&gt;
			 &lt;/InventoryUpdate&gt;
						
		 &lt;/AspDotNetStorefrontImport&gt;
      </XmlInputRequestString>
    </DoItUsernamePwd>
  </soap:Body>
</soap:Envelope>
 -- response --
500 Internal Server Error
Cache-Control:  private
Content-Type:  text/html; charset=utf-8
Server:  Microsoft-IIS/8.5
X-AspNetMvc-Version:  5.2
X-Frame-Options:  SAMEORIGIN
Content-Security-Policy:  frame-ancestors 'self'
X-Content-Security-Policy:  frame-ancestors 'self'
X-AspNet-Version:  4.0.30319
Set-Cookie:  adnsf.notices=7qAAa9Hk9U%2fmUKp3CMrPFA%3d%3d; path=/
X-Powered-By:  ASP.NET
Date:  Thu, 17 Aug 2017 14:55:05 GMT
Content-Length:  29610

I tried without '&lt;' too. I'm actaully not sure why i had to do that in version 9 but I know it worked.

POST https://mysite.com/ipx.svc
Content-Type: text/xml; charset=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>admin@mysite.com</AuthenticationEMail>
      <AuthenticationPassword>password</AuthenticationPassword>
      <XmlInputRequestString>
	  &lt;AspDotNetStorefrontImport Version="7.1"&gt;
		 
			 &lt;InventoryUpdate>
				 &lt;Inv Quantity="20" VariantID="8377778" /&gt;
			 &lt;/InventoryUpdate&gt;
						
		 &lt;/AspDotNetStorefrontImport&gt;
      </XmlInputRequestString>
    </DoItUsernamePwd>
  </soap:Body>
</soap:Envelope>
 -- response --
500 Internal Server Error
Cache-Control:  private
Content-Type:  text/html; charset=utf-8
Server:  Microsoft-IIS/8.5
X-AspNetMvc-Version:  5.2
X-Frame-Options:  SAMEORIGIN
Content-Security-Policy:  frame-ancestors 'self'
X-Content-Security-Policy:  frame-ancestors 'self'
X-AspNet-Version:  4.0.30319
Set-Cookie:  adnsf.notices=Z5ovS1RFp4Nf30WobVxKIQ%3d%3d; path=/
X-Powered-By:  ASP.NET
Date:  Thu, 17 Aug 2017 14:53:54 GMT
Content-Length:  29612

 

asked Aug 17 in MultiStore by Mden (300 points)

Please log in or register to answer this question.

...