Git Product home page Git Product logo

Comments (11)

karldahlgren avatar karldahlgren commented on May 30, 2024

Hi @ivanzito!
Great to hear that you are using Castle Mock.
In order to use soap+xml, the port defined in the WSDL needs to be use a SOAP 1.2 binding. Which SOAP version does it say on one of the operations? SOAP 1.1 or SOAP 1.2? SOAP 1.1 uses application/soap, while SOAP 1.2 is using application/soap+xml.

There is an example of this setup on our demo server: http://demo.castlemock.com/web/soap/project/1vIOrW

Best regards,
Karl Dahlgren

from castlemock.

ivanzito avatar ivanzito commented on May 30, 2024

Great, using another port with SOAP 1.2 I conquest consume the WS by a HTTP tool, thanks by the explanation above. But, when I call the WS through my app the same problem occurs. The CastleMock response

---[HTTP response - http://localhost:9000/castlemock/mock/soap/project/dbbaVA/WSReservawebSoap12 - 200]---
null: HTTP/1.1 200
Content-Language: en
Content-Length: 4248
Content-Type: text/html;charset=UTF-8
Date: Fri, 01 Dec 2017 22:07:22 GMT
Set-Cookie: JSESSIONID=89B63A4A6CEEBF5584447AA04CB0D891; Path=/castlemock; HttpOnly
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block

with a html from Castle Mock.

Thanks in advance and thank you @karldahlgren

from castlemock.

karldahlgren avatar karldahlgren commented on May 30, 2024

Does your port for SOAP 1.2 have any operations? Has these operations been mocked? Keep in mind that the operations for SOAP 1.1 and SOAP 1.2 are not the same. They are treated as completely different operations.

Would it also be possible to see your request as well?

So to summeries it:

Best regards,
Karl Dahlgren

from castlemock.

ivanzito avatar ivanzito commented on May 30, 2024

Yeap, in reality I removed the SOAP 1.1(project). I mocked this operation too.
Below my request:

---[HTTP request - http://localhost:9000/castlemock/mock/soap/project/dbbaVA/WSReservawebSoap]--- Accept: application/soap+xml, multipart/related Content-Type: application/soap+xml; charset=utf-8;action="http://com.br/EfetuarLogin" User-Agent: JAX-WS RI 2.2.9-b130926.1035 svn-revision#5f6196f2b90e9460065a4c2f4e30e065b245e51e

from castlemock.

karldahlgren avatar karldahlgren commented on May 30, 2024

The URL seems to go to http://localhost:9000/castlemock/mock/soap/project/dbbaVA/WSReservawebSoap, which was the address to the SOAP 1.1 port. Is that correct? I would expect the URL to be http://localhost:9000/castlemock/mock/soap/project/dbbaVA/WSReservawebSoap12.

SOAP 1.1 is expecting application/soap, while SOAP 1.2 is expecting application/soap+xml. It won't find a match unless the URL and content-type is matching.

from castlemock.

karldahlgren avatar karldahlgren commented on May 30, 2024

Hi @ivanzito.
Did you manage to resolve your problem? If so, could I close this issue?

from castlemock.

ivanzito avatar ivanzito commented on May 30, 2024

No BTW I pasted the wrong path. When I call the WS using WSReservawebSoap12 I receive the same response from the server and I removed the last version 1.1, so the unique project in CastleMock that I've is WSReservawebSoap12

from castlemock.

karldahlgren avatar karldahlgren commented on May 30, 2024

Could it be that your application is switching between SOAP 1.1 and SOAP 1.2? What happens if you are using both at the same time? Do you still experience the same problems?

from castlemock.

karldahlgren avatar karldahlgren commented on May 30, 2024

Hi @ivanzito.
Did you manage to resolve your issue? Can I close this issue?

Best regards,
Karl Dahlgren

from castlemock.

ivanzito avatar ivanzito commented on May 30, 2024

@karldahlgren sorry for delay in my respone. You can close the issue. Unfortunelly I can't spend much time testing now.

Tks so much for the support

Cheers

from castlemock.

karldahlgren avatar karldahlgren commented on May 30, 2024

Thank you for your response!
Feel free to contact me anytime if you have any further questions or issues.

Best regards,
Karl Dahlgren

from castlemock.

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.