<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>
      invoking SOAP API on remote machine definitely works. I do this
      quite often.<br>
      <br>
      For the time being, I have no idea why it does not work in your
      case. If I get some idea, I'll write you back.<br>
      <br>
      Best regards,<br>
      Pavol<br>
      <br>
    </div>
    <blockquote
cite="mid:CAKvVWqypcR28LH4ne-ePAjmJA79FGHgvrKUuyTWCJRA4Ea99=w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi
        <div><br>
        </div>
        <div>I tried installing the midpoint on my machine and it
          worked, similarly i executed model client from my server and
          it worked there as well.</div>
        <div><br>
        </div>
        <div>I am still not able to execute the client for my remote
          server, what can be the issue?</div>
        <div>Is it not possible to execute the client from remote
          machine?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Regards</div>
        <div>Dharmendra</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Nov 25, 2014 at 7:12 PM,
          dharmendra parakh <span dir="ltr"><<a
              moz-do-not-send="true"
              href="mailto:dharm.parakh@gmail.com" target="_blank">dharm.parakh@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Hi
              <div><br>
              </div>
              <div>The time was not same but i tried synchronizing it
                and no luck.</div>
              <div><br>
              </div>
              <div>I will try installing on my local machine or running
                it on the same server.</div>
              <div><br>
              </div>
              <div>It will be helpful if you can think of any other
                pointer...</div>
              <div><br>
              </div>
              <div>Thanks</div>
              <div><br>
              </div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On Tue, Nov 25, 2014 at 6:46
                    PM, Pavol Mederly <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:mederly@evolveum.com"
                        target="_blank">mederly@evolveum.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000">
                        <div>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"<span><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>
                          </span> Endpoint URL: <a
                            moz-do-not-send="true"
                            href="http://localhost.:8080/midpoint/model/model-3"
                            target="_blank">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 type="cite">
                          <div>
                            <div>
                              <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"
                                    target="_blank">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
                                      moz-do-not-send="true">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></fieldset>
                              <br>
                            </div>
                          </div>
                          <pre>_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
                        </blockquote>
                        <br>
                      </div>
                      <br>
                      _______________________________________________<br>
                      midPoint mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:midPoint@lists.evolveum.com"
                        target="_blank">midPoint@lists.evolveum.com</a><br>
                      <a moz-do-not-send="true"
                        href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                        target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </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>