Home » Language IDEs » ServerTools (WTP) » Error parsing WSDL
Error parsing WSDL [message #196716] |
Thu, 19 July 2007 16:42 |
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 |
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.
|
|
|
Goto Forum:
Current Time: Thu Apr 25 03:57:24 GMT 2024
Powered by FUDForum. Page generated in 0.02461 seconds
|