Re: Reading a Java webservice with VB.NET
From: JL (jlaugesen_at_yahoo.com)
Date: 04/23/04
- Next message: Aras Kucinskas: "SSL and X509Certificate info"
- Previous message: harry: "problem with CredentialCache.DefaultCredentials"
- In reply to: Dino Chiesa [Microsoft]: "Re: Reading a Java webservice with VB.NET"
- Next in thread: Dino Chiesa [Microsoft]: "Re: Reading a Java webservice with VB.NET"
- Reply: Dino Chiesa [Microsoft]: "Re: Reading a Java webservice with VB.NET"
- Messages sorted by: [ date ] [ thread ]
Date: 23 Apr 2004 06:23:41 -0700
Hello Dino and Newsgroup.
I have solved this problem and thought I'd post a summary of what
happened in case it can help someone else.
My client created a very simple "Hello World" web service. Call a
method, get "Hello World" back as a string. Using VB.NET's web
reference I was unable to connect to the web service. Then I used
wsdl.exe on the URL for the wsld (web service's url + "?wsdl" and a
"/l:vb" flag) and it created a .vb file. I put it in the VB.NET
program and it worked.
Using the wsdl.exe program on the actual wsdl still did not work. It
returned an error that it was unable to bind with one of the methods.
So I downloaded a text copy of the wsdl, delete that one method, and
ran wsdl.exe on the text wsdl file again. It said it could not bind
with another method. Deleted it too. Kept going and deleted 7 of the
18 methods, and then it worked.
The one thing that was common with the 7 deleted ones that didn't
exist in all the others was a specific datatype. The web service was
rebuilt eliminating that datatype and it worked.
JL
"Dino Chiesa [Microsoft]" <dinoch@online.microsoft.com> wrote in message news:<ew1PDVKKEHA.644@tk2msftngp13.phx.gbl>...
> When you say "Java web services" - what Java stackdoes the system use?
> you mentioned an Apache server, but if you are referring to Apache HTTPD,
> that doesn't make a whole lot of difference here.
>
> There are at least 5 different Java-based webservices stacks. They all
> behave differently. Some of them are more interoperable with .NET than
> others. some of them are more compliant to the WS-I standards than others.
>
> The IBM webservices tookit (WSDK v5.1 I suppose) includes one of the web
> services runtimes. But, if you already have your webservices running, then
> I don't know what you'll use WSDK v5.1 for.
>
> A good place to start is to trace the HTTP traffic going to and from the
> server. do it with a Java client, then compare your results to what you get
> with a .NET client. Note the differences. There are a couple of tools that
> can do this. Apache AXIS includes an HTTP tracing tool (a redirector).
> Simon Fell has a proxytrace tool that is nice but not all Java stacks can
> use it.
>
>
> Also - can you post the WSDL you are using?
>
>
> -Dino
>
- Next message: Aras Kucinskas: "SSL and X509Certificate info"
- Previous message: harry: "problem with CredentialCache.DefaultCredentials"
- In reply to: Dino Chiesa [Microsoft]: "Re: Reading a Java webservice with VB.NET"
- Next in thread: Dino Chiesa [Microsoft]: "Re: Reading a Java webservice with VB.NET"
- Reply: Dino Chiesa [Microsoft]: "Re: Reading a Java webservice with VB.NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|