<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello Dharmendra,<br>
      <br>
      I don't know. In my case, everything works (see below).<br>
      <br>
      One hint for the moment: are clocks on your local machine and the
      server synchronized?<br>
      <br>
      Also, you could try to install and run midPoint locally and see if
      that would yield any difference.<br>
      <br>
      Best regards,<br>
      Pavol<br>
      <br>
      D:\midpoint\tgit\midpoint\samples\model-client-sample>mvn
      exec:java
-Dexec.mainClass="com.evolveum.midpoint.testing.model.client.sample.Main"<br>
      [INFO] Scanning for projects...<br>
      [INFO]<br>
      [INFO]
      ------------------------------------------------------------------------<br>
      [INFO] Building midPoint Samples - Model client sample
      3.1-SNAPSHOT<br>
      [INFO]
      ------------------------------------------------------------------------<br>
      [INFO]<br>
      [INFO] --- exec-maven-plugin:1.3.2:java (default-cli) @
      model-client-sample ---<br>
      [WARNING] Warning: killAfter is now deprecated. Do you need it ?
      Please comment on MEXEC-6.<br>
      Endpoint URL: <a class="moz-txt-link-freetext" href="http://localhost.:8080/midpoint/model/model-3">http://localhost.:8080/midpoint/model/model-3</a><br>
      Got system configuration<br>
      Got administrator user: 00000000-0000-0000-0000-000000000002<br>
      Got Sailor role<br>
      Resources (2)<br>
      Users (3)<br>
      Tasks (3)<br>
      Created user guybrush, OID: 4fe991fb-f3ba-46d2-9c2c-809f84b78308<br>
      Fetched user guybrush:<br>
      Users fullName: Guybrush Threepwood<br>
      Created user lechuck, OID: c0c010c0-d34d-b33f-f00d-11111111ec1e<br>
      Changed user password<br>
      Changed user given name<br>
      Assigned roles<br>
      Unassigned roles<br>
      Found 0 requestable roles<br>
      Deleted user(s)<br>
      [INFO]
      ------------------------------------------------------------------------<br>
      [INFO] BUILD SUCCESS<br>
      [INFO]
      ------------------------------------------------------------------------<br>
      [INFO] Total time: 9.195s<br>
      [INFO] Finished at: Tue Nov 25 14:12:56 CET 2014<br>
      [INFO] Final Memory: 40M/361M<br>
      [INFO]
      ------------------------------------------------------------------------<br>
      <br>
      <br>
      <br>
    </div>
    <blockquote
cite="mid:CAKvVWqxs9U9a3qM7nmgCTnSZUUHY2sDXsRar5Y05jDeE2jbqRw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi
        <div><br>
        </div>
        <div>I was trying to execute
          com.evolveum.midpoint.testing.model.client.sample.Main.java</div>
        <div><br>
        </div>
        <div>as specified here: <a moz-do-not-send="true"
href="https://wiki.evolveum.com/display/midPoint/Model+Web+Service+Client+Sample">https://wiki.evolveum.com/display/midPoint/Model+Web+Service+Client+Sample</a></div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>- I was able to clean, install and package it correctly,
          when i try to execute it from command line i get an error: </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div>C:\Users\Dharmendra\git\midpoint\samples\model-client-sample>mvn
            exec:java
-Dexec.mainClass="com.evolveum.midpoint.testing.model.client.sample.Main"</div>
          <div>[INFO] Scanning for projects...</div>
          <div>[INFO]</div>
          <div>[INFO]
            ------------------------------------------------------------------------</div>
          <div>[INFO] Building midPoint Samples - Model client sample
            3.1-SNAPSHOT</div>
          <div>[INFO]
            ------------------------------------------------------------------------</div>
          <div>[INFO]</div>
          <div>[INFO] --- exec-maven-plugin:1.3.2:java (default-cli) @
            model-client-sample ---</div>
          <div>[WARNING] Warning: killAfter is now deprecated. Do you
            need it ? Please comment on MEXEC-6.</div>
          <div>Endpoint URL: <a class="moz-txt-link-freetext" href="http://">http://</a><b><server_ip></b>:8080/midpoint/model/model-3</div>
        </div>
        <div>
          <div>javax.xml.ws.soap.SOAPFaultException: The message has
            expired</div>
          <div>        at
            org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:159)</div>
          <div>        at com.sun.proxy.$Proxy70.getObject(Unknown
            Source)</div>
          <div>        at
com.evolveum.midpoint.testing.model.client.sample.Main.getConfiguration(Main.java:189)</div>
          <div>        at
com.evolveum.midpoint.testing.model.client.sample.Main.main(Main.java:106)</div>
          <div>        at
            sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div>
          <div>        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</div>
          <div>        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</div>
          <div>        at
            java.lang.reflect.Method.invoke(Method.java:606)</div>
          <div>        at
            org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)</div>
          <div>        at java.lang.Thread.run(Thread.java:745)</div>
          <div>Caused by: org.apache.cxf.binding.soap.SoapFault: The
            message has expired</div>
        </div>
        <div><br>
        </div>
        <div>Can anybody assist me with this. I am executing the code
          from my local machine and midpoint is installed on my server
          which is accessible from my machine.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Regards</div>
        <div>Dharmendra</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>