This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 105256 - Enable web service client to connect to various hosts
Summary: Enable web service client to connect to various hosts
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-31 13:06 UTC by mirza
Modified: 2008-04-14 17:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mirza 2007-05-31 13:06:32 UTC
I am usinf JAX-WS 2.1 web services. When I want to create client code to access
web service (from client) it inserts something like:

mytest.foo.ws_generated_binding.FoogService service = new
mytest.foo.ws_generated_binding.FooService();
jSoapPort = service.getFooServicePort();

Now, that works great (important to say), but connects to my localhost:8080 (as
that is machine I am using and have Tomcat running). I would like to connect to
other hosts running this service. So, generated code should be instead:

mytest.foo.ws_generated_binding.FoogService service = new
mytest.foo.ws_generated_binding.FooService("localhost:8080");

This way I can change string for other host/port easily.
Comment 1 Milan Kuchtiak 2007-06-25 11:36:48 UTC
That's reasonable.
Anyway, there is a different constuctor :
public FooService(URL wsdlLocation, QName serviceName);
Comment 2 mirza 2007-06-25 12:23:32 UTC
Yes, I know about this constructor, but looks too complicated. Setting host alone would be better (3rd constructor) from
usability perspective. For example, I want to have combo-box with many hosts to choose from and then connect to that
specific host (for testing).
Comment 3 Lukas Jungmann 2008-04-14 17:14:51 UTC
moving opened issues where TM != dev to TM=TBD