×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    1

    error while connecting server by jsr 172

    hi all i am trying to connect server by jsr 172 methods.I made wsdl file and created stub.When i compile i am getting connection not found error and TCP open.error ininvokejavax.xml.rpc.JAXRPCException: javax.microedition.io.ConnectionNotFoundException: TCP open

    The url to whicl i am going to connect is having username and and password.Should i send that data also.If so how can i send it.

    Waiting for the reply

  2. #2
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: error while connecting server by jsr 172

    hi,

    shouldn't be ws authorization done that way? (taking Nokia code as concept):
    Code:
        /** Creates a new instance of CapitalPortType_StubMIDlet */
        public CapitalPortType_StubMIDlet() {
            initialize();
            client = new CapitalPortType_Stub();
            client._setProperty(CapitalPortType_Stub.PASSWORD_PROPERTY, "password");
            client._setProperty(CapitalPortType_Stub.USERNAME_PROPERTY, "username");
            client._setProperty(CapitalPortType_Stub.SESSION_MAINTAIN_PROPERTY, new Boolean(true));
        }
    I'm not experienced yet in java but authorization is to be done that way probably in web-services,

    regards,
    Peter

Similar Threads

  1. Replies: 3
    Last Post: 2009-10-30, 15:15
  2. connecting problem with a server
    By mbicer00 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-06-11, 17:54
  3. s40 real device problem connecting to server
    By melas21 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2004-06-09, 23:23
  4. IOException when connecting to the server many times
    By crazyII in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2004-01-15, 20:14
  5. IOException when connecting to the server many times
    By crazyII in forum Mobile Java General
    Replies: 0
    Last Post: 2004-01-06, 04:50

Posting Permissions

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