Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 4 of 4

Thread: SC6.22 Proxy Class Java

  1. #1

    Default SC6.22 Proxy Class Java

    Hello,
    I want to use the generated Proxy class, but I dont know how to tell the instance wich user and Password should be used!

    Any Idea or hint?

    Thanks in advance...

  2. #2
    Senior Member mateuszk's Avatar
    Join Date
    Nov 2006
    Posts
    302

    Default

    Hi,

    well, there's an authentication class in the examples supplied with SC Server.
    Basically, it all boils down to this part:

    Code:
    ChangeManagementProxy chmp = new ChangeManagementProxy();
    ChangeManagement_PortType port = chmp.getChangeManagement_PortType();
    
    (org.apache.axis.client.Stub) port._setProperty(Call.USERNAME_PROPERTY, username);
    (org.apache.axis.client.Stub) port._setProperty(Call.PASSWORD_PROPERTY, password);
    ... and then you're all set up to go.

  3. #3

    Default

    Thanks for your Help!

    Now I know my mistake! I forgot to Cast....

  4. #4
    Senior Member mateuszk's Avatar
    Join Date
    Nov 2006
    Posts
    302

    Default

    Glad to be of service.

    Regards.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts