473,386 Members | 1,883 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,386 software developers and data experts.

.NET client cannot talk to Axis web service

I have a Java-based (Axis) Web Service and am trying to write a .NET client
in C#. I run into two different problems.

1. if the WSDL was generated using the Axis defaults then .NET cannot update
its web reference. It complains that datatype 'String' is undefined.
Strangely, the WSDL returned by the WS to a browser is quite different to
that which Visual Studio appears to import and write locally. The latter,
for example, indicates different definitions for every single string e.g.
q1:string, q2:string through q55:string.

2. if the WSDL is generated using java2wsdl and wrapped/literal is requested
then Visual Studio *can* update it web reference and I can build my project
but when it runs I get "root element is missing" XML exceptions.

Given that the WSDL was auto-generated in both cases and my project is quite
simple, I'd expect both styles to just work out of the box. I'm blocked on
both fronts. Any help would be greatly appreciated.
Nov 23 '05 #1
2 4225

i had the same issue within dotnet itself. i called a dotnet webservice
from a dotnet.client.
i dont know what it is exactly but it seems to me that attribute or
element values contain unquoted or 'bad' characters.
have a look on your example content.

falk
Jarmo wrote:
*I have a Java-based (Axis) Web Service and am trying to write a .NET
client
in C#. I run into two different problems.

1. if the WSDL was generated using the Axis defaults then .NET cannot
update
its web reference. It complains that datatype 'String' is
undefined.
Strangely, the WSDL returned by the WS to a browser is quite
different to
that which Visual Studio appears to import and write locally. The
latter,
for example, indicates different definitions for every single string
e.g.
q1:string, q2:string through q55:string.

2. if the WSDL is generated using java2wsdl and wrapped/literal is
requested
then Visual Studio *can* update it web reference and I can build my
project
but when it runs I get "root element is missing" XML exceptions.

Given that the WSDL was auto-generated in both cases and my project
is quite
simple, I'd expect both styles to just work out of the box. I'm
blocked on
both fronts. Any help would be greatly appreciated. *


--
FWiegand
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message1806717.html

Nov 23 '05 #2
Hi,

I think two different issues are mentioned here.

The FWiegand issue sounds like "unescaped XML" being send. The issue
from the original post is more (de-)serialization based.

When building WebServices, once should realize, its just a set of
standards defined for communication across boundaries. Axis & WSE are
toolkit that implement these specifications for you and allow you to
approach them programatically.

About the undefined String type; Not having the WSDL to look at makes
this hard.

A few things to take care of in your WSDL;
- Use Document / Literal
- Use Wrapped parameter style
- Design from XSD perspective (no platform specific types like .Net's
'DataSet' or Java's 'String', but XSD sequences & xsd:string)

Hope this helps,

Marvin Smit.

On Mon, 5 Sep 2005 15:20:00 -0500, FWiegand
<FW*************@mail.mcse.ms> wrote:

i had the same issue within dotnet itself. i called a dotnet webservice
from a dotnet.client.
i dont know what it is exactly but it seems to me that attribute or
element values contain unquoted or 'bad' characters.
have a look on your example content.

falk
Jarmo wrote:
*I have a Java-based (Axis) Web Service and am trying to write a .NET
client
in C#. I run into two different problems.

1. if the WSDL was generated using the Axis defaults then .NET cannot
update
its web reference. It complains that datatype 'String' is
undefined.
Strangely, the WSDL returned by the WS to a browser is quite
different to
that which Visual Studio appears to import and write locally. The
latter,
for example, indicates different definitions for every single string
e.g.
q1:string, q2:string through q55:string.

2. if the WSDL is generated using java2wsdl and wrapped/literal is
requested
then Visual Studio *can* update it web reference and I can build my
project
but when it runs I get "root element is missing" XML exceptions.

Given that the WSDL was auto-generated in both cases and my project
is quite
simple, I'd expect both styles to just work out of the box. I'm
blocked on
both fronts. Any help would be greatly appreciated. *


Nov 23 '05 #3

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

Similar topics

0
by: Anand Natrajan | last post by:
Hi! I have a VB .NET client that is accessing an rpc/encoded service deployed in Axis 1.2. One of the operations, whoami, returns a string array. The server-side Java signature of this method is...
1
by: Lakshmi | last post by:
Hi All, I am having performance issues with the .NET client calling the Java Webservice running on axis. Have detailed the problem below. Please help. I wrote a webservice in Java. Lets name...
1
by: Parag Mahajan | last post by:
Hi, I am developing a .Net client for Axis 1.1 web service written in java. The wsdl is generated using, java2WSDL with these switches:: -y WRAPPED -u LITERAL The login service which returns a...
0
by: Dhananjayan | last post by:
Hi, I have a webservice(eg.IStringServicePort) running on Axis, iam able to create a java client for the same and invoke the service and obtain the result. I wanted to create a .Net client(C#)...
3
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are...
5
by: vthakur | last post by:
Hello: I have a Axis Web Service that sets the sessionid in the SOAP header for persisting the session. The client is a .Net client that processes the header as an Unknown Header. It sets the...
0
by: karazy | last post by:
I have been reading all the forums and understand whats going wrong but am not sure how to fix it. I have written a basic doc/literal web service. But when it is called by a .net client it will...
11
by: David R | last post by:
This is a repost, with additional information. I have a Net 2.0 client (C# Winform) calling an Axis web service. The .NET client can authenticate, create requested objects, serialize the objects...
0
by: Siyodia | last post by:
This is a java program which i need to run facing compilation error Its consuming a third party web service method I have the supported files(folder) which contain necessary class files...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.