This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

WSDL and a error

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help!
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
What a show! What atmosphere! What fun! What a tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic