Skip to content
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

Body did not match for XML request #1829

Open
Adamx2x opened this issue Jan 18, 2024 · 0 comments
Open

Body did not match for XML request #1829

Adamx2x opened this issue Jan 18, 2024 · 0 comments

Comments

@Adamx2x
Copy link

Adamx2x commented Jan 18, 2024

Hi, I am trying to create expectation regarding to XML :
url -v -X PUT "http://localhost:1080/expectation" -d '
{
"httpRequest":{
"method":"POST",
"path":"/mockuvcSoapBinding",
"body":"<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://authentication/server">
soapenv:Header/
soapenv:Body
ser:Authentication

ser:pam1 12345 </ser:pam1>
ser:pam2 4 </ser:pam2>
ser:pam3 8 </ser:pam3>
ser:pam4 16 </ser:pam4>

</ser:Authentication>
</soapenv:Body>
</soapenv:Envelope>",
"headers":{
"Content-Type":[
"text/xml; charset=utf-8"
]
}
},
"httpResponse":{
"statusCode":200,
"body":"<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://authentication/server">
soapenv:Header/
soapenv:Body
ser:Authentication

ser:pam1 12345 </ser:pam1>
ser:pam2 4 </ser:pam2>
ser:pam3 8 </ser:pam3>
ser:pam4 16 </ser:pam4>

</ser:Authentication>
</soapenv:Body>
</soapenv:Envelope>
",
"headers":{
"Content-Type":[
"text/xml; charset=utf-8"
]
}
}
}'

and when I try to send request with that body in the request I got "body did not" could you please help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant