XML : WireMock bodyPatterns XML Match regex

I am using WireMock to mock soa service, but i have an issue with the bodyPattern XML, can i use regex inside XML? My request header is changing based on the request time, i just want to match anything inside the header.

{ "request" : { "url" : "/service/v1/WebService", "method" : "POST", "bodyPatterns" : [ { "equalToXml" :"\Qhttp://schemas.xmlsoap.org/soap/envelope/\"> I want to match whatever inside header.

  } ]    

},

No comments:

Post a Comment