facebook

web service client authentication

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #311019 Reply

    Jeff Kish
    Member

    Hi.
    I posted a question elsewhere but then thought this might be a better place – is there documentation that shows how to do basic authentication with the web service client generated by my myeclipse ide? I don’t see anyway to set the username/password for basic authentication. I did this with plain eclipse 3.5 wizard generated client by casting the service to a stub and invoking setting username and password.

    I don’t see how to do that in my generated code.

    fyi I emailed my not-really-public WSDL to support this evening.
    thanks
    Jeff

    #311103 Reply

    Brian Fernandes
    Moderator

    Jeff,

    I’m afraid we don’t have a way in which that can automatically be generated in the client for you. However, you call get***Port() on your service object, which in turn you can cast to a BindingProvider and set the username and password required – probably similar to what you were doing with the Eclipse 3.5 client already.

    An example is here:
    http://forums.java.net/jive/message.jspa?messageID=35790

    Hope this helps.

    #311216 Reply

    Jeff Kish
    Member

    ended up with this:
    ((MyBindingStub) port).setUserName(“thename”);
    ((MyBindingStub) port).setPassword(“thepassword”);

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: web service client authentication

You must be logged in to post in the forum log in