Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » No Endpoint Error
No Endpoint Error [message #97425] Mon, 02 May 2005 17:32 Go to next message
Eclipse UserFriend
Originally posted by: jason.jones.med.va.gov

Hello,

I am using Eclipse M4 with WTPM4, and have successfully created a Web
Service from a WSDL. However, I have several classes, and am not sure how
to use them. I am currently creating an instance of
SessionServiceSoapStub, and using that to call a function called
'login()'. I am getting a "no endpoint" error each time. The main java
files from the Web Service, judging from other examples I've seen, are:

SessionService (this is the name of the WSDL)
SessionServiceSoap.java
SessionServiceSoapProxy
SessionServiceLocator.java
SessionServiceSoapStub.java

There are many other classes but since they are named after the functions
within the main wsdl, I'm guessing they aren't directly relevant to my
problem.

My question is, what does an error like that typically mean when using
classes like these (I'm new to Web Services in Java), and how do you go
about calling a web service through these type of classes (my method
obviously isn't working). I'm just looking to get pointed in the right
direction. I've looked for tutorials and am not finding the answers I'm
looking for.

Thanks,
Jason Jones
Re: No Endpoint Error [message #105234 is a reply to message #97425] Wed, 18 May 2005 17:22 Go to previous messageGo to next message
Eclipse UserFriend
Jason,
in short, the easiest class for your Java Web service client application to
use is "SessionServiceSoapProxy". Use its public default constructor to
create an instance, then start calling business methods. That should do the
trick.

Here's a slightly longer winded answer:

SessionService.java - This is a JAX-RPC [1] standard artifact. It is the
abstract "Service Interface" or "SI" that corresponds to the <service>
element in the WSDL, and is equipped with factory methods for getting
"Service Endpoint Interfaces" such as SessionServiceSoap (see next
paragraph).

SessionServiceSoap.java - This is a JAX-RPC [1] standard artifact. It is the
abstract "Service Endpoint Interface" or "SEI" that corresponds to a
<portType> element referenced by a <port> under the <service> element.

SessionServiceSoapProxy.java - This is not a JAX-RPC standard artifact. It's
a convenience class that the WST tools generate. It implements the SEI and
handles the construction and caching of the real SIs and SEIs in case you
don't want to be bothered writing that sort of code.

SessionServiceLocator.java - This is a container-specific (eg. Axis-specific)
class. It implements the SessionService SI. You can construct an instance of
this class, and then call the appropriate getter method to get an instance of
the SessionServiceSoap SEI for whatever WSDL <port> you're trying to play
with.

SessionServiceSoapStub.java - This is container-specific (eg. Axis-specific)
class. It implementats the SessionServiceSoap SEI. You should not try to
construct and use one of these directly. Instead, use the appropriate factory
method on the SI to get at the SEI (or use WTP's handy "Proxy" class which
does exactly this for you inside its implementation).

[1] http://www.jcp.org/en/jsr/detail?id=101

Jason Jones wrote:

> Hello,
>
> I am using Eclipse M4 with WTPM4, and have successfully created a Web
> Service from a WSDL. However, I have several classes, and am not sure how
> to use them. I am currently creating an instance of
> SessionServiceSoapStub, and using that to call a function called
> 'login()'. I am getting a "no endpoint" error each time. The main java
> files from the Web Service, judging from other examples I've seen, are:
>
> SessionService (this is the name of the WSDL)
> SessionServiceSoap.java
> SessionServiceSoapProxy
> SessionServiceLocator.java
> SessionServiceSoapStub.java
>
> There are many other classes but since they are named after the functions
> within the main wsdl, I'm guessing they aren't directly relevant to my
> problem.
>
> My question is, what does an error like that typically mean when using
> classes like these (I'm new to Web Services in Java), and how do you go
> about calling a web service through these type of classes (my method
> obviously isn't working). I'm just looking to get pointed in the right
> direction. I've looked for tutorials and am not finding the answers I'm
> looking for.
>
> Thanks,
> Jason Jones
Re: No Endpoint Error [message #105797 is a reply to message #105234] Thu, 19 May 2005 14:24 Go to previous message
Eclipse UserFriend
Originally posted by: jason.jones.med.va.gov

Thanks, Chris! I had figured out my error by now through trial and error,
but the explanation is still helpful, so thank you!

My big problem now is maintaining state between web service function
calls.
I have a "connect" function, that creates a connection and returns a
welcome message from the DB, then I must log in using the "login" funtion
which passes an access and verify code. I can connect, but when use the
login Web Service call, which requires the connection created in the
"connect" call, it fails.

The web service I am calling was created in ASP.NET, and is set to
maintain session state through cookies. I have scoured articles and books
looking for an answer on how to get my Web Service calls to maintain state
in my JSP, but to no avail. Any ideas?

Thanks so much for the help!

Jason Jones
Previous Topic:XML Catalog for validating v2.4 web.xml
Next Topic:XML Editor content assist with mixed namespace content
Goto Forum:
  


Current Time: Sun Jul 27 01:59:22 EDT 2025

Powered by FUDForum. Page generated in 0.26341 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top