title: How to handle ws-addressing in mock asynchronous service
body: <p>I am trying to mock an asynchronous service in soapui. I have referred <a href="https://stackoverflow.com/questions/7901685/soapui-mocking-asynchronous-services">SoapUI mocking asynchronous services</a> for the same. However the callback request is not received by the service client as it is not being sent to required address specified in WS-Addressing properties. </p>
  
  <p>Enabling the WS-Addressing on the mock service and and mock request results in following  error.</p>
  
  <pre><code>ERROR:com.eviware.soapui.impl.wsdl.mock.DispatchException: java.lang.NullPointerException
  com.eviware.soapui.impl.wsdl.mock.DispatchException: java.lang.NullPointerException
  at com.eviware.soapui.impl.wsdl.mock.WsdlMockResponse.execute(WsdlMockResponse.java:323)
  at com.eviware.soapui.impl.wsdl.mock.WsdlMockOperation.dispatchRequest(WsdlMockOperation.java:259)
  at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchPostRequest(WsdlMockRunner.java:290)
  at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:375)
  at com.eviware.soapui.monitor.JettyMockEngine$ServerHandler.handle(JettyMockEngine.java:715)
  at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  at org.mortbay.jetty.Server.handle(Server.java:326)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
  at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  Caused by: java.lang.NullPointerException
  at com.eviware.soapui.impl.wsdl.support.soap.SoapUtils.getHeaderElement(SoapUtils.java:146)
  at com.eviware.soapui.impl.wsdl.support.wsa.WsaUtils.getHeader(WsaUtils.java:138)
  at com.eviware.soapui.impl.wsdl.support.wsa.WsaUtils.createWSAddressingMockResponse(WsaUtils.java:488)
  at com.eviware.soapui.impl.wsdl.support.wsa.WsaUtils.addWSAddressingMockResponse(WsaUtils.java:480)
  at com.eviware.soapui.impl.wsdl.mock.WsdlMockResponse.execute(WsdlMockResponse.java:287)
  ... 16 more
  </code></pre>
  
  <p>Please suggest how can I resole these issues :</p>
  
  <ul>
  <li>How to get the addressing information from soap request and use it in dummy callback request ?</li>
  <li>How to set the endpoint address for the callback request in the test case ?</li>
  </ul>
  
  <p>Thanks in advance</p>