Comments (11)
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.
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.
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:
- http://localhost:9000/castlemock/mock/soap/project/dbbaVA/WSReservawebSoap: application/soap
- http://localhost:9000/castlemock/mock/soap/project/dbbaVA/WSReservawebSoap12: application/soap+xml
Best regards,
Karl Dahlgren
from castlemock.
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.
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.
Hi @ivanzito.
Did you manage to resolve your problem? If so, could I close this issue?
from castlemock.
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.
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.
Hi @ivanzito.
Did you manage to resolve your issue? Can I close this issue?
Best regards,
Karl Dahlgren
from castlemock.
@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.
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)
- File in response
- Feature Request: Configurable Endpoint Patterns
- Request for Docker Image of Project Version 1.64 HOT 1
- Xpath validation on Requests is not working HOT 1
- Response strategy : Xpath giving 500 Error HOT 1
- RestException when trying to trigger a mocked rest service HOT 1
- Error while importing YAML & Json Swagger files: Unable to parse the Swagger content HOT 1
- Unable to import Swagger link: Unable to parse the Swagger content. HOT 3
- castlemock cannot auto import projects from swagger yaml files defined in dockerfile HOT 1
- Unable to import a rest project HOT 1
- `StrictHttpFirewall#setAllowedHeaderNames` should augment with existing `Predicate`
- Issues with JSON Path HOT 2
- Copy a particular Json object into the response HOT 1
- Pushing request json payload into the response body is failing
- Auto remove of the files HOT 1
- Building and running from maven without installed tomcat HOT 2
- Send multiple responses, with delays, to one request (Asynchronous Responses)
- Switching between different methods with a same type is broken
- tomcat jar file cannot find main method because of typo issue HOT 1
- Expression Validation popup can't pickup response body
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from castlemock.