-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Defining the "standalone" declaration using the PactXmlBuilder #1414
Comments
I've updated the builder, so you can now set it with either: PactXmlBuilder(
"TestRoot",
null,
emptyMap(),
"1.0",
Charsets.UTF_8.displayName(),
true
) or PactXmlBuilder("TestRoot")
.withStandalone(true)
.build { Just note that the JVM XML implementation does not always add the attribute. standalone == true -> |
4.1.25 released |
I tried out your updates in version 4.2.10 because I needed some other fixes as well. Thanks for the fix, but as you already mentioned, in my case the standalone attribute defined "yes" wasn't added to the XML. So the Unit Tests won't work without further adjustments. |
<SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/> |
@parvathinakka what have you tried? |
Hello,
while using the PactXmlBuilder I'm not able to define the XML declaration "standalone". The generated XML-Message always defines "standalone=no" which doesn't match my expected XML-Structure.
Example
I want to define this XML-Structure:
Using this Code:
Which results in:
Is there a way to define the "standalone" declaration?
Best regards
The text was updated successfully, but these errors were encountered: