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

How to remove xml declaration from request body #147

Open
lospejos opened this issue May 5, 2018 · 0 comments
Open

How to remove xml declaration from request body #147

lospejos opened this issue May 5, 2018 · 0 comments

Comments

@lospejos
Copy link

lospejos commented May 5, 2018

I need to build a request without xml declaration.
Using example code from main wslite page, I got SOAP request body:

POST /Holidays/US/Dates/USHolidayDates.asmx HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: http://www.27seconds.com/Holidays/US/Dates/GetMothersDay
Connection: Close
Accept-Encoding: gzip
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.8.0_172
Host: www.holidaywebservice.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Length: 314

<?xml version='1.0' encoding='UTF-8'?>
<soap-env:Envelope xmlns:soap-env='http://schemas.xmlsoap.org/soap/envelope/'>
  <soap-env:Header />
  <soap-env:Body>
    <GetMothersDay xmlns='http://www.27seconds.com/Holidays/US/Dates/'>
      <year>2011</year>
    </GetMothersDay>
  </soap-env:Body>
</soap-env:Envelope>

I need to build a request without xml declaration in its body. Is it real to do using DSL style (I know I can pass the raw string as request body but searching for more high level approach)? Could you give an example?
Thanks

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