Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: web service client

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default web service client

    Hi,
    I have problem with web service client.

    I have generated client stub from WSDL:
    http://webservicepilot.tecdoc.net/pe.../TecdocToCatWL

    and i'm using it this way:
    TecdocToCatService service = new TecdocToCatService();
     
    TecdocToCat port = service.getTecdocToCat();
     
    VersionInfoRequest vir = new VersionInfoRequest();
    VersionInfoResponse viresp = port.getPegasusVersionInfo(vir);
    I don't know why, but
    port.getPegasusVersionInfo(vir);
    returns me NULL.

    What's wrong?
    Thanks for help.


  2. #2
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    660
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: web service client

    Personally I'm baffled by what you're doing, but by instinct, not by syntax, getter methods don't usually take in parameters so that may be an issue?

    Just a guess, you understand more to make a decision.

  3. #3
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: web service client

    As you instantiate the TecdocToCatService object you might need to pass in the actual service URL as well.

    // Json

Similar Threads

  1. Replies: 0
    Last Post: October 31st, 2010, 08:04 AM
  2. Web Service - Client - WORK OVER INTERNET
    By nikos in forum Java Networking
    Replies: 7
    Last Post: October 19th, 2010, 10:44 AM
  3. Java web client - > .NET web service
    By codeJ in forum Web Frameworks
    Replies: 0
    Last Post: July 8th, 2010, 04:34 AM
  4. [SOLVED] Web Service from WSDL
    By wilky in forum Java Theory & Questions
    Replies: 3
    Last Post: January 25th, 2010, 09:45 AM
  5. Replies: 2
    Last Post: November 19th, 2009, 10:55 PM