Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Error parsing WSDL
Error parsing WSDL [message #196716] Thu, 19 July 2007 16:42 Go to next message
Lucio Crusca is currently offline Lucio Crusca
Messages: 5
Registered: July 2009
Junior Member
Hello all,

I'm new here, I'm new to eclipse, I'm new to webservices and I'm not even an
Eclipse developer, but I couldn't manage to find a users newsgroup (please
point me there if there is one).

I'm trying to make Eclipse generate java code (and anything else is needed
for that matter) for a webservice consumer.
ProjectName, right click, New, Other, Web Services, Web Service Client,
Next.
Then I enter http://www.impresaxp.it/wstest/wsuserslist.asmx?WSDL , Next,
Finish and I get:

IWAB0014E Unexpected exception occurred.
invalid segment: it/WebServices/wsUsersList.goaling
java.lang.IllegalArgumentException: invalid segment:
it/WebServices/wsUsersList.goaling

Now I suspect this is an Eclipse bug for two reasons:
1. NetBeans understands well the same wsdl
2. The wsdl doesn't contain the string "it/WebServices/wsUsersList.goaling"
anywhere, but it does contain the
string "goaling.it/WebServices/wsUsersList"

However I could be wrong 'cause I'm so new to webservices that I cannot
distinguish a valid wsdl from crap. Could anyone please check if it's
problem of the wsdl, or a Eclipse bug, or my mistake?

Thanks in advace.

Lucio.
Re: Error parsing WSDL [message #196750 is a reply to message #196716] Thu, 19 July 2007 19:53 Go to previous message
Seng Phung Lu is currently offline Seng Phung Lu
Messages: 62
Registered: July 2009
Member
Hi Lucio,
I was able to reproduce the problem with the WSDL location you provided
while running on Tomcat5.0 and Axis runtimes.

You are right, it is the WSDL targetnamespace
targetNamespace="goaling.it/WebServices/wsUsersList" that seems to be
the culprit. Most WSDL target namespaces use a URI. So when I checked
the WSDL spec, it states that namespaces must be IRIs (Internationalized
Resource Identifiers).

http://www.w3.org/TR/wsdl20/#Description_targetnamespace_att ribute

If you add "http:" in front of the namespace (http://goaling.it---),
then it works.

I'm no IRI expert, so I've opened a bug to track this problem. If the
namespace is valid, it needs to be fixed. If it isn't valid, it should
fail more elegantly with a meaningful message.

I downloaded and attached the WSDL to it (if you have any objections to
that, I can remove it).

On another note, I found that using the (WSE)Web service Explorer to
test the Web service given the WSDL was much easier. Simply right click
on the WSDL (or launch the WSE first), and choose the SOAP binding and
then the method. I was able to successfully invoke the usersList method.

Hope that helps,
Seng

Lucio Crusca wrote:
> Hello all,
>
> I'm new here, I'm new to eclipse, I'm new to webservices and I'm not even an
> Eclipse developer, but I couldn't manage to find a users newsgroup (please
> point me there if there is one).
>
> I'm trying to make Eclipse generate java code (and anything else is needed
> for that matter) for a webservice consumer.
> ProjectName, right click, New, Other, Web Services, Web Service Client,
> Next.
> Then I enter http://www.impresaxp.it/wstest/wsuserslist.asmx?WSDL , Next,
> Finish and I get:
>
> IWAB0014E Unexpected exception occurred.
> invalid segment: it/WebServices/wsUsersList.goaling
> java.lang.IllegalArgumentException: invalid segment:
> it/WebServices/wsUsersList.goaling
>
> Now I suspect this is an Eclipse bug for two reasons:
> 1. NetBeans understands well the same wsdl
> 2. The wsdl doesn't contain the string "it/WebServices/wsUsersList.goaling"
> anywhere, but it does contain the
> string "goaling.it/WebServices/wsUsersList"
>
> However I could be wrong 'cause I'm so new to webservices that I cannot
> distinguish a valid wsdl from crap. Could anyone please check if it's
> problem of the wsdl, or a Eclipse bug, or my mistake?
>
> Thanks in advace.
>
> Lucio.
Previous Topic:WTP 3.0 Release Themes DRAFT document published...
Next Topic:Creating a web service by WTP
Goto Forum:
  


Current Time: Tue Sep 23 18:32:43 GMT 2014

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

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