Magento + SOAP + Visual Studio C# -


i'm getting started magento soap , i've run brick wall in 5 minutes... following guide http://www.magentocommerce.com/wiki/5_-_modules_and_development/web_services/using_soap_api_in_c_sharp

except when add reference ( http://myurlremoved/store/index.php/api/?wsdl - myurlremoved domain name) following error:

the html document not contain web service discovery information. metadata contains reference cannot resolved: 'http://myurlremoved/store/index.php/api/?wsdl'. content type text/xml; charset=utf-8 of response message not match content type of binding (application/soap+xml; charset=utf-8). if using custom encoder, sure iscontenttypesupported method implemented properly. first 1024 bytes of response were: '<?xml version="1.0" encoding="utf-8"?> <definitions xmlns:typens="urn:magento" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"     xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"     name="magento" targetnamespace="urn:magento">     <types>         <schema xmlns="http://www.w3.org/2001/xmlschema" targetnamespace="urn:magento"> <!--            <import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemalocation="http://schemas.xmlsoap.org/soap/encoding/" />-->             <complextype name="fixedarray">                 <complexcontent>                     <restriction base="soapenc:array">                         <attribute ref="soapenc:arraytype" wsdl:arraytype="xsd:anytype[]" />                     </restriction>                 </complexcontent>             </complextype>         </schema>     </types>     <message name="call">         <part name="sessionid'. if service defined in current solution, try building solution , adding service reference again. 

i created fresh magento site on same server , connects fine. configuration > magento core api settings same on both sites. store id isn't encoded in url on problematic site (noted issue in forums).

from understand, might because magento installation (which isn't working soap) originated on server without soap support. has since been migrated server have support (which confirmed creating blank site test with).

how can fix this?


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -