473,232 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,232 software developers and data experts.

Problems accessing dot net web service from java client

I've also posted this issue to a Sun/java formum, but since it appears to be
an integration issue, this may be the better place to posr:

I have written a dot net/c# Web Services doesn't fully work with J2ME client

a) c# web service works with c# WIndows Client (local & remote web service)
b) c# web service works with J2ME client - when the Web Service is local
c) c# web service fails with J2ME client - when the Web Service is remote

error/exception:

"Missing SOAP Body or Envelope" -- This occurs at the point of invoking the
remote Web Service

Similar/Identical problem documented in Sun Forum: (but no resolution for
over two months!)

http://forums.java.sun.com/thread.js...204&tstart=240

Speculation:

a) dot net Web Services are "different" from Java Web services - yet it
works fine in local mode
b) error is a misnomer & there is some other problem, perhaps fixable thru
Web.config changes remotely??
- changed Web.Config authentication (from Windows to none), but this made
no difference
- changed back to default web service namespace of tempuri.org, but this
made no difference
Nov 23 '05 #1
7 7066
Assuming that you got the permission and authetication are correctly
configured including the IIS,

The best posible way to diagnose this is , try to use some kind of
diagnostic tool, like tcptrace, or SOAPScope to view the message on the
wire. then the asp.net web services will normally return and HTML pages
when there's and error.

regards
erymuzuan

David Laub wrote:
I've also posted this issue to a Sun/java formum, but since it appears to be
an integration issue, this may be the better place to posr:

I have written a dot net/c# Web Services doesn't fully work with J2ME client

a) c# web service works with c# WIndows Client (local & remote web service)
b) c# web service works with J2ME client - when the Web Service is local
c) c# web service fails with J2ME client - when the Web Service is remote

error/exception:

"Missing SOAP Body or Envelope" -- This occurs at the point of invoking the
remote Web Service

Similar/Identical problem documented in Sun Forum: (but no resolution for
over two months!)

http://forums.java.sun.com/thread.js...204&tstart=240

Speculation:

a) dot net Web Services are "different" from Java Web services - yet it
works fine in local mode
b) error is a misnomer & there is some other problem, perhaps fixable thru
Web.config changes remotely??
- changed Web.Config authentication (from Windows to none), but this made
no difference
- changed back to default web service namespace of tempuri.org, but this
made no difference


Nov 23 '05 #2
Hello David,
Have you seen what the soap encoding style is? There could be some interop
problems if the j2me sends rpc encoded soap

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I've also posted this issue to a Sun/java formum, but since it appears
to be an integration issue, this may be the better place to posr:

I have written a dot net/c# Web Services doesn't fully work with J2ME
client

a) c# web service works with c# WIndows Client (local & remote web
service)
b) c# web service works with J2ME client - when the Web Service is
local
c) c# web service fails with J2ME client - when the Web Service is
remote
error/exception:

"Missing SOAP Body or Envelope" -- This occurs at the point of
invoking the remote Web Service

Similar/Identical problem documented in Sun Forum: (but no resolution
for over two months!)

http://forums.java.sun.com/thread.js...204&tstart=240

Speculation:

a) dot net Web Services are "different" from Java Web services - yet
it
works fine in local mode
b) error is a misnomer & there is some other problem, perhaps fixable
thru
Web.config changes remotely??
- changed Web.Config authentication (from Windows to none), but
this made
no difference
- changed back to default web service namespace of tempuri.org, but
this
made no difference

Nov 23 '05 #3
Thru SOAPScope, I can see is that the java client sends a message with no
body! So I'm not sure I can answer your question on "rpc encoded soap"
What, if anything can I do to find this out?

Thanks

David Laub
"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:11**********************@msnews.microsoft.com ...
Hello David,
Have you seen what the soap encoding style is? There could be some interop problems if the j2me sends rpc encoded soap

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I've also posted this issue to a Sun/java formum, but since it appears
to be an integration issue, this may be the better place to posr:

I have written a dot net/c# Web Services doesn't fully work with J2ME
client

a) c# web service works with c# WIndows Client (local & remote web
service)
b) c# web service works with J2ME client - when the Web Service is
local
c) c# web service fails with J2ME client - when the Web Service is
remote
error/exception:

"Missing SOAP Body or Envelope" -- This occurs at the point of
invoking the remote Web Service

Similar/Identical problem documented in Sun Forum: (but no resolution
for over two months!)

http://forums.java.sun.com/thread.js...204&tstart=240

Speculation:

a) dot net Web Services are "different" from Java Web services - yet
it
works fine in local mode
b) error is a misnomer & there is some other problem, perhaps fixable
thru
Web.config changes remotely??
- changed Web.Config authentication (from Windows to none), but
this made
no difference
- changed back to default web service namespace of tempuri.org, but
this
made no difference


Nov 23 '05 #4
I've see the java proxy/stub generator takes its encoding style from the
wsdl file thet dot net generates - so, the java code IS generated with doc
(versus rpc) style method calls

I can change the dot net service to generate rpc style methods, and then the
java stub generator takes that into account, and then complains that it
can't even generate code for rpc!! (versus doc)

So, I'm still stuck, but thanks for your help anyhow

Any other good ideas?

Is the world of mixed vendor Web Services really that new?

David Laub
"David Laub" <dl***@wheels.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
Thru SOAPScope, I can see is that the java client sends a message with no
body! So I'm not sure I can answer your question on "rpc encoded soap"
What, if anything can I do to find this out?

Thanks

David Laub
"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:11**********************@msnews.microsoft.com ...
Hello David,
Have you seen what the soap encoding style is? There could be some

interop
problems if the j2me sends rpc encoded soap

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I've also posted this issue to a Sun/java formum, but since it appears
to be an integration issue, this may be the better place to posr:

I have written a dot net/c# Web Services doesn't fully work with J2ME
client

a) c# web service works with c# WIndows Client (local & remote web
service)
b) c# web service works with J2ME client - when the Web Service is
local
c) c# web service fails with J2ME client - when the Web Service is
remote
error/exception:

"Missing SOAP Body or Envelope" -- This occurs at the point of
invoking the remote Web Service

Similar/Identical problem documented in Sun Forum: (but no resolution
for over two months!)

http://forums.java.sun.com/thread.js...204&tstart=240

Speculation:

a) dot net Web Services are "different" from Java Web services - yet
it
works fine in local mode
b) error is a misnomer & there is some other problem, perhaps fixable
thru
Web.config changes remotely??
- changed Web.Config authentication (from Windows to none), but
this made
no difference
- changed back to default web service namespace of tempuri.org, but
this
made no difference



Nov 23 '05 #5
I see many subtle differences in the wdsl files between a Sun site and a dot
net site

http://sunwireless.quimbik.com/serve...verscript?WSDL

http://www.dmlsoftware.com/Calculato...ice1.asmx?WSDL

Maybe this differences are irrelevant, but I have a feeling some of them are
the key to solving the problem - if any kind soul who has cross java/dot net
web Service experience feels like taking this on, I'd be VERY grateful.

to repeat, the SOAP coming out of the java client has NO body - when
accessing the dmlsoftware site - but it WORKS, when accessing the identical
web service run on localhost

As an aside, if I point the java client to a NON web service, it gives the
same error (missing SOAP body), so it appears as if the java cleint does not
recognize a dot net web service as a Web Service

David Laub
"David Laub" <dl***@wheels.com> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
I've see the java proxy/stub generator takes its encoding style from the
wsdl file thet dot net generates - so, the java code IS generated with doc
(versus rpc) style method calls

I can change the dot net service to generate rpc style methods, and then the java stub generator takes that into account, and then complains that it
can't even generate code for rpc!! (versus doc)

So, I'm still stuck, but thanks for your help anyhow

Any other good ideas?

Is the world of mixed vendor Web Services really that new?

David Laub
"David Laub" <dl***@wheels.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
Thru SOAPScope, I can see is that the java client sends a message with no body! So I'm not sure I can answer your question on "rpc encoded soap"
What, if anything can I do to find this out?

Thanks

David Laub
"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:11**********************@msnews.microsoft.com ...
Hello David,
Have you seen what the soap encoding style is? There could be some

interop
problems if the j2me sends rpc encoded soap

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

> I've also posted this issue to a Sun/java formum, but since it appears > to be an integration issue, this may be the better place to posr:
>
> I have written a dot net/c# Web Services doesn't fully work with J2ME > client
>
> a) c# web service works with c# WIndows Client (local & remote web
> service)
> b) c# web service works with J2ME client - when the Web Service is
> local
> c) c# web service fails with J2ME client - when the Web Service is
> remote
> error/exception:
>
> "Missing SOAP Body or Envelope" -- This occurs at the point of
> invoking the remote Web Service
>
> Similar/Identical problem documented in Sun Forum: (but no resolution > for over two months!)
>
> http://forums.java.sun.com/thread.js...204&tstart=240
>
> Speculation:
>
> a) dot net Web Services are "different" from Java Web services - yet
> it
> works fine in local mode
> b) error is a misnomer & there is some other problem, perhaps fixable > thru
> Web.config changes remotely??
> - changed Web.Config authentication (from Windows to none), but
> this made
> no difference
> - changed back to default web service namespace of tempuri.org, but
> this
> made no difference



Nov 23 '05 #6
A different angle: must I register my (dot net) Web Service with UDDI for it
to be callable form a java app? - the java doc I'm now reading implying this
UDDI registration is a MANDATORY step!
"David Laub" <dl***@wheels.com> wrote in message
news:ea**************@tk2msftngp13.phx.gbl...
I see many subtle differences in the wdsl files between a Sun site and a dot net site

http://sunwireless.quimbik.com/serve...verscript?WSDL

http://www.dmlsoftware.com/Calculato...ice1.asmx?WSDL

Maybe this differences are irrelevant, but I have a feeling some of them are the key to solving the problem - if any kind soul who has cross java/dot net web Service experience feels like taking this on, I'd be VERY grateful.

to repeat, the SOAP coming out of the java client has NO body - when
accessing the dmlsoftware site - but it WORKS, when accessing the identical web service run on localhost

As an aside, if I point the java client to a NON web service, it gives the
same error (missing SOAP body), so it appears as if the java cleint does not recognize a dot net web service as a Web Service

David Laub
"David Laub" <dl***@wheels.com> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
I've see the java proxy/stub generator takes its encoding style from the
wsdl file thet dot net generates - so, the java code IS generated with doc
(versus rpc) style method calls

I can change the dot net service to generate rpc style methods, and then

the
java stub generator takes that into account, and then complains that it
can't even generate code for rpc!! (versus doc)

So, I'm still stuck, but thanks for your help anyhow

Any other good ideas?

Is the world of mixed vendor Web Services really that new?

David Laub
"David Laub" <dl***@wheels.com> wrote in message
news:e9**************@TK2MSFTNGP10.phx.gbl...
Thru SOAPScope, I can see is that the java client sends a message with

no body! So I'm not sure I can answer your question on "rpc encoded soap" What, if anything can I do to find this out?

Thanks

David Laub
"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:11**********************@msnews.microsoft.com ...
> Hello David,
> Have you seen what the soap encoding style is? There could be some interop
> problems if the j2me sends rpc encoded soap
>
> HTH
> Regards,
> Dilip Krishnan
> MCAD, MCSD.net
> dkrishnan at geniant dot com
> http://www.geniant.com
>
> > I've also posted this issue to a Sun/java formum, but since it appears > > to be an integration issue, this may be the better place to posr:
> >
> > I have written a dot net/c# Web Services doesn't fully work with J2ME > > client
> >
> > a) c# web service works with c# WIndows Client (local & remote web
> > service)
> > b) c# web service works with J2ME client - when the Web Service is
> > local
> > c) c# web service fails with J2ME client - when the Web Service is
> > remote
> > error/exception:
> >
> > "Missing SOAP Body or Envelope" -- This occurs at the point of
> > invoking the remote Web Service
> >
> > Similar/Identical problem documented in Sun Forum: (but no resolution > > for over two months!)
> >
> > http://forums.java.sun.com/thread.js...204&tstart=240
> >
> > Speculation:
> >
> > a) dot net Web Services are "different" from Java Web services - yet > > it
> > works fine in local mode
> > b) error is a misnomer & there is some other problem, perhaps fixable > > thru
> > Web.config changes remotely??
> > - changed Web.Config authentication (from Windows to none), but
> > this made
> > no difference
> > - changed back to default web service namespace of tempuri.org, but > > this
> > made no difference
>
>



Nov 23 '05 #7
Hello

It seems to me that you found your problem there. In SOAP specifications
the body is a MANDATORY tag. If your client isn't sending it then the
client has something bad.

UDDI is not mandatory.

As far as i tested, i have java clients working fine with .NET web services.

And yes, there are diferences between WSDL generated from JAVA and WSDL
generated from .NET, but they only seem to be namespace differences.
David Laub wrote:
Thru SOAPScope, I can see is that the java client sends a message with no
body! So I'm not sure I can answer your question on "rpc encoded soap"
What, if anything can I do to find this out?

Thanks

David Laub
"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:11**********************@msnews.microsoft.com ...
Hello David,
Have you seen what the soap encoding style is? There could be some


interop
problems if the j2me sends rpc encoded soap

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

I've also posted this issue to a Sun/java formum, but since it appears
to be an integration issue, this may be the better place to posr:

I have written a dot net/c# Web Services doesn't fully work with J2ME
client

a) c# web service works with c# WIndows Client (local & remote web
service)
b) c# web service works with J2ME client - when the Web Service is
local
c) c# web service fails with J2ME client - when the Web Service is
remote
error/exception:

"Missing SOAP Body or Envelope" -- This occurs at the point of
invoking the remote Web Service

Similar/Identical problem documented in Sun Forum: (but no resolution
for over two months!)

http://forums.java.sun.com/thread.js...204&tstart=240

Speculation:

a) dot net Web Services are "different" from Java Web services - yet
it
works fine in local mode
b) error is a misnomer & there is some other problem, perhaps fixable
thru
Web.config changes remotely??
- changed Web.Config authentication (from Windows to none), but
this made
no difference
- changed back to default web service namespace of tempuri.org, but
this
made no difference



Nov 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jon Dellaria | last post by:
I have been using MySql as the database using JSP's and JavaBeans but recently I have wanted to start using the database connection pooling mechanism built into TomCat. I think I am having a...
0
by: Paul Hutchinson | last post by:
All, I wonder if anyone can help/advise with the following interoperability issue we are encountering? We have a .NET web service that takes an abstract type as parameter. Using it from a...
3
by: Alan Krueger | last post by:
Greetings, I've been able to cache Transformer objects in a Tomcat-based servlet application to avoid unnecessary Transformer rebuilding, except for certain ones on certain machines. I'm...
0
by: Daniel Thune, MCSE | last post by:
I am having a problem with formatting a SOAP Header in a .Net client. The client calls a Java Axis 1.1 based web service. In order to authenticate the caller, the web service call is intercepted by...
7
by: Railinc | last post by:
Hi... I'm trying to write a web service client and am running into a problem with getting a response back from the server. I know that a full xml message is being returned (thanks to a tcp/ip...
1
by: srpatna | last post by:
I am trying to access Web Service of a Vendor. Its built using Java on Weblogic. Connection is restricted to users with client certificate provided by them and NOT from any recognised authority....
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
0
by: vijayalakshmi.venkataraman | last post by:
Hello, I have a .NET client that accesses a Java webservice. Let me first say that the client stub I got generated from the wsdl was incomplete and had to make changes to it manually to make it...
1
by: kapil.singhal | last post by:
Hello, I have created a VC++ Client in Visual Studio 6.0 which is accessing the Java Web Service. I have generated the proxy file using GSOAP 2.6 Toolkit and I am able to access the functions of...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.