-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to use attribute of the request object while creating response while mocking a soap service #618
Comments
Take a look at: In your case, I think you can use: //*[local-name()='TokenIdLijst'] |
I have tried this, it is not working; Response is null. |
The issue was related to A new version will be released shorty. |
Thank you so much for the reply. Please keep posted on the new version. |
It was released as version 1.4.18 |
Thank you. Its working now. |
I want to create a mock response for SOAP service which accepts XML request . I'm using XPathMatcher for request matching. Request is matching is done successfully. I need to read one attribute of request.body and create the response using that.
My XML request is like this. I need the token id to create the response body.
Request.txt
I am using the below matcher models while creating mapping for the request.
And response model in mapping
The above code returns response as blank. I get whole request in the response.body if i use the below code without xpath
I tried different examples of using xpath but nothing works. Where is the mistake, i could not find.
Please suggest..
The text was updated successfully, but these errors were encountered: