aspose file tools*
The moose likes Web Services and the fly likes WSDL and a error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL and a error" Watch "WSDL and a error" New topic
Author

WSDL and a error

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hello All,
I have a wsdl document, which I got from one of my co-workers. He coded a MS Web Service which I want to connect too, but I am getting the following error.


I am guessing that this is because of there is a error in the WSDL document, specially at the beginning of the document. The WSDL document is kindda big so I will just give the starting part of the wsdl document.


I will appreciate any suggestions.
Thanks for your help.
-Amish
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
Did you leave out a few steps? It looks like you are trying to use the WSDL document directly with the SOAP server. WSDL gives enough information to create a SOAP client, but it is up to you to create the client.
You might look into the GLUE SOAP application environment -
http://www.themindelectric.com/
or Sun's XML Pack for utilities that can automatically read a WSDL and create a Java client.
Bill
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi William,
Actually I am using WSAD( WebSphere Application Developer) IBM's IDE to actually create a Client with the information contained in the WSDL. The thing I do not understand is why am I getting the following error when I try to connect to the web service through my client


Thanks for replying!
Amish
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Please help!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
Are you saying that the client code got created and compiled without an error? If so than the WSDL is probably a valid file and you need to look at the client source code or the actual data transmitted by the client to see what is wrong with the namespace at line 4, position 36.
I wrote a utility for trapping SOAP HTTP messages between client and server. You can download it from the page at:
http://www.lanw.com/books/javasoap/
Bill
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Actually WSAD contains a utility within it for monitoring the SOAP requests. I would suggest that you take a look at the help files provided with WSAD and then try using that utility to see what SOAP you are sending and compare it to what he is expecting.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
raj madhuram
Ranch Hand

Joined: Oct 10, 2001
Posts: 71
Hi,
Looks like the problem is because you are connecting to a M$ SOAP service.
Following is an excerpt from http://xml.apache.org/soap/faq/
Does Apache SOAP work with Microsoft SOAP?
Yes, but you need to install a patch to the MS SOAP package. One of the well-known interoperability problems between Apache 2.0 and MS Soap is that MS clients do not send type information with each parameter, and the Apache soap server will reject such requests.
Hope that helps,
Raj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL and a error