Skip to content

SOAP api usually returns SOAP 12 but sometimes SOAP11 #6740

@MaximKitsenko

Description

@MaximKitsenko

I add magento 2.1.0 SOAP api service reference to C# project. I use
POST https://www.xxx.com/soap/default?services=salesOrderRepositoryV1 trying to get orded by id. If orders exists respons is SOAP 12 but if there is no order response is SOAP11

Preconditions

  1. Magento 2.1.0.
  2. C#, WebService reference generated by Visual Studio

Steps to reproduce

  1. request:
POST https://www.mymagento.com/soap/default?services=salesOrderRepositoryV1 


<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><salesOrderRepositoryV1GetRequest xmlns="https://www.mymagento.com/soap/default?services=salesOrderRepositoryV1"><id xmlns="">432</id></salesOrderRepositoryV1GetRequest></s:Body></s:Envelope>

Expected result

  1. this is an example of response where magento order exists. Response is SOAP 12. Response body starts from
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://www.mymagento.com/soap/default?services=salesOrderRepositoryV1"><

Actual result

  1. Response is SOAP 11. Response body
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" >
   <env:Body>
      <env:Fault>
         <env:Code>
            <env:Value>env:Sender</env:Value>
         </env:Code>
         <env:Reason>
            <env:Text xml:lang="en">Requested entity doesn't exist</env:Text>
         </env:Reason>

      </env:Fault>
   </env:Body>
</env:Envelope>

UPDATE:

Another strange thing - is that really this order exists. I received this order 432 from GetList API function

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Framework/WebapiUSE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just CatalogIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions