opentable / wiremock-body-transformer

Wiremock Body Transformer Extension
Apache License 2.0
65 stars 42 forks source link

How to get from the <body:Soap> tag? #10

Closed macscripter closed 8 years ago

macscripter commented 8 years ago

Hello,

First of all, congrats for this amazing software!

My question is, how can I get the value form a tag with ":" ?

For example,

`

PIPO ` My question is, how to get the C_USERID tag? I see that the $(soap.soap.CONVERS2_x002F_1Response.foo.C_USERID.value) is not working because of the ":" in the soap:Envelope and soap:Body.... Thank you!
macscripter commented 8 years ago

I will respond to my question....

In this case we should the xmlMapper will ignore the "soap:" .... So the true object to be reached is: $(Envelope.Body.CONVERS2_x002F_1Response.foo.C_USERID.value)

That's WITHOUT the "soap:"

Hope this helps anyone that need to perform tests from the real soap messages.

Best regards

tranhungt commented 8 years ago

Hi @macscripter, thanks a lot for the discovery! That would be very helpful for others who are also using soap messages. We can add this to the documentation. Would you like to make a pull request?

macscripter commented 8 years ago

Of course I will do it today! And I will create ( if you accept) the new functions to return dates/timestamp (not only random Integer) because they are really very useful for virtualization tasks.

Thank again, guys! Nice software! El 07/03/2016 01:52, "Hung Tran" notifications@github.com escribió:

Hi @macscripter https://github.com/macscripter, thanks a lot for the discovery! That would be very helpful for others who are also using soap messages. We can add this to the documentation. Would you like to make a pull request?

— Reply to this email directly or view it on GitHub https://github.com/opentable/wiremock-body-transformer/issues/10#issuecomment-193043491 .

tranhungt commented 8 years ago

Sounds great. :)