GithubHelp home page GithubHelp logo

Comments (6)

ElRochito avatar ElRochito commented on July 18, 2024

I'm on SOAP 1_2

from laravel-soap.

CodeDredd avatar CodeDredd commented on July 18, 2024

@ElRochito Thanks for the report. I try to look into it. So do i see it right when you use SOAP 1_2 you dont get the action returened any more in the header ?
Well i think this right behavior. I explain it to you:
Header in SOAP 1_1 always look like this:

        $headers = [];
        $headers['Content-Length'] = (string) $this->soapMessage->getSize();
        $headers['SOAPAction'] = $this->soapAction;
        $headers['Content-Type'] = 'text/xml; charset="utf-8"';

and SOAP 1_2

        $headers = [];
        if ($this->httpMethod !== 'POST') {
            $headers['Accept'] = 'application/soap+xml';

            return $headers;
        }

        $headers['Content-Length'] = (string) $this->soapMessage->getSize();
        $headers['Content-Type'] = 'application/soap+xml; charset="utf-8"'.'; action="'.$this->soapAction.'"';

so in SOAP 1_2 the soap action is under Content-Type.

Question do you get problems with testing or where do you use the "SOAPAcction" ?

from laravel-soap.

ElRochito avatar ElRochito commented on July 18, 2024

Thanks for your answer.

I use SOAPAction for my unit test indeed.

But, when i'm on SOAP 1_2 with v2.0.0-beta.7, it's works. I see SOAPAction on the header

from laravel-soap.

CodeDredd avatar CodeDredd commented on July 18, 2024

Ah ok....yeah i fixed the header because they were wrong for 1_2 .... i will make the unit testing work again with SOAP1_2. Because in beta.7 the fake library was using SOAP1_1 even for SOAP1_2 ;-) ... keeping you update.
Thanks for the report!

from laravel-soap.

ElRochito avatar ElRochito commented on July 18, 2024

Ok thanks

from laravel-soap.

CodeDredd avatar CodeDredd commented on July 18, 2024

@ElRochito closed with #136

from laravel-soap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.