Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

C# application and Magento web service
 
Theshop3010
Jr. Member
 
Total Posts:  1
Joined:  2012-04-13
 

Hi,

I’m looking into doing some integration from an existing system into Magento for a client of ours who wants to go online.  The basic idea is that we give him an “export” button in his current system that creates & updates all the products on his online catalogue.  I’ve only made a very small start with the coding (just testing for proof-of-concept atm), but have immediately hit a snag.

When I receive a response from a call to “product_attribute_set.list”, the response “does not conform to WS-I Basic Profile v1.1.”, as per the response given by running wsdl.exe against the url.

It appears that the web service is unable to deserialize the response and gives the exception “[System.InvalidOperationException] = {"There is an error in XML document (2, 405)."}"

Here’s the inner exception: “The specified type was not recognized: name=’Map’, namespace=’http://xml.apache.org/xml-soap’, at <callReturn xmlns=’’>.”

Here’s the response XML (doctored for size, of course) with the offending line marked…

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <
SOAP-ENV:Body>
        <
ns1:callResponse>
            **** 
NEXT LINE CAUSES ERROR ****
            <
callReturn SOAP-ENC:arrayType="ns2:Map[16]" xsi:type="SOAP-ENC:Array">
            ** 
PREVIOUS LINE CAUSES ERROR **
                <
item xsi:type="ns2:Map">
                    <
item>
                        <
key xsi:type="xsd:string">set_id</key>
                        <
value xsi:type="xsd:string">44</value>
                        ...
                        ...
                        
etc
                        
...
                        ...
                    </
item>
                </
item>
            </
callReturn>
        </
ns1:callResponse>
    </
SOAP-ENV:Body>
</
SOAP-ENV:Envelope>

I’d really appreciate some hints on this.  I’ve searched a LOT and found nothing that helps with this particular issue.  This is a deal-breaker for us so it’s pretty important!

Thanks in advance.

Extra Info:
Windows 7
Visual Studio 2010
C# Windows Application
.Net 2.0

Demo code:

com.gostorego.theshop.MagentoService magento = new com.gostorego.theshop.MagentoService();
string sessionID magento.login("User""Password");

try
{
        object 
list = magento.call(sessionID"product_attribute_set.list""");    // ------ this line causes the error
        
string vars Common.var_dump(list);    //    one of my functions
}
catch (Exception ex)
{
        string msg 
ex.ToString();
}

magento
.endSession(sessionID);
magento.Dispose();
 
Magento Community Magento Community
Magento Community
Magento Community
 
MKI-Miro
Jr. Member
 
Total Posts:  24
Joined:  2008-02-10
 

did you solved this, i have exactly same problem

 
Magento Community Magento Community
Magento Community
Magento Community
 
pablo_ovando
Jr. Member
 
Total Posts:  1
Joined:  2012-11-07
 

I have de same problem did you solve it ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
tctkumar
Jr. Member
 
Total Posts:  2
Joined:  2013-07-01
 

Hi All,

I also facing the same problem, here i am getting this error for only when i try to retrieve the Orders,Products,Customer as List

by using the sales_order.list,etc

similarly it is Working when using another function like, sales_order.info argument passes the OrderNumber


I don\\\’t know why the List Method is not working and don\\\’t know what mistake is doing from my side

could you please anyone help me to get out from this problem

Thanks InAdvance

M.S.K.Saravana Kumar

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top