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

apachesoap:element issues

Greetings All.

We have a web service that was built using Java / Apache. It has a namespace of: http://xml.apache.org/xml-soap with a reference to apachesoap:element. It basically is returning a XML document which the program uses. We are trying to update this program to .NET 1.1. I am unable to use wsdl.exe to create a proxy class and I am unable to use the web service in Visual Studio. It fails on the apachesoap:element. Has anybody experienced this problem? Are there any solutions to be able to work around this problem without having to rewrite the web service? Any direction would be wonderful!

Thanks,

James Hawes
Nov 21 '05 #1
2 4300
Just to help clarify! Here is the error I am receiving:

c:\inetpub\wwwroot\XmlTest\Web References\WebReference\Reference.map(1): Custom tool error: Unable to import WebService/Schema. Unable to import binding 'TestServiceSoapBinding' from namespace 'http://172.22.4.130:8080/axis/services/TestService'. Unable to import operation 'getXML'. The datatype 'Element' is missing.
"James Hawes" wrote:
Greetings All.

We have a web service that was built using Java / Apache. It has a namespace of: http://xml.apache.org/xml-soap with a reference to apachesoap:element. It basically is returning a XML document which the program uses. We are trying to update this program to .NET 1.1. I am unable to use wsdl.exe to create a proxy class and I am unable to use the web service in Visual Studio. It fails on the apachesoap:element. Has anybody experienced this problem? Are there any solutions to be able to work around this problem without having to rewrite the web service? Any direction would be wonderful!

Thanks,

James Hawes

Nov 21 '05 #2
you are using Apache AXIS, I see.

You probably don't need to re-write, but you do need (probably) to
re-jigger. Can we see the WSDL?

Ideally you want the metadata for the service to be something like this:
<service name="Whatever"
provider="java:RPC"
style="wrapped"
use="literal"
xmlns:ns1="http://example.org/webservices/"

(that should be your deployment descriptor).

This is derived from the WSDL, though. So you cannot just change the DD
without changing the WSDL.
Since you are following good practice, you have a WSDL defined, and you
used the AXIS WSDL2Java tool to generate a server-side skeleton and
interface, yes?

A working example is here:
http://dinoch.dyndns.org:7070/axis/AboutBasics.jsp

This is a webservices interop sample. The service is Apache AXIS v1.1 on
JBoss v3.0.2. The clients are .NET: winforms and webforms (ASP.NET). The
page includes links to source code, which contains a readme that talks about
the "WSDL First" approach in AXIS.

If you don't want to take away the old webservice, you can maintain 2
parallel interfaces to the same logic. One will be the old service (RPC
encoded) and another the new one (wrapped/literal) .
-D
"James Hawes" <Ja********@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com... Just to help clarify! Here is the error I am receiving:

c:\inetpub\wwwroot\XmlTest\Web References\WebReference\Reference.map(1): Custom tool error: Unable to import WebService/Schema. Unable to import
binding 'TestServiceSoapBinding' from namespace
'http://172.22.4.130:8080/axis/services/TestService'. Unable to import
operation 'getXML'. The datatype 'Element' is missing.

"James Hawes" wrote:
Greetings All.

We have a web service that was built using Java / Apache. It has a namespace of: http://xml.apache.org/xml-soap with a reference to
apachesoap:element. It basically is returning a XML document which the
program uses. We are trying to update this program to .NET 1.1. I am
unable to use wsdl.exe to create a proxy class and I am unable to use the
web service in Visual Studio. It fails on the apachesoap:element. Has
anybody experienced this problem? Are there any solutions to be able to
work around this problem without having to rewrite the web service? Any
direction would be wonderful!
Thanks,

James Hawes

Nov 21 '05 #3

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

Similar topics

4
by: JLJ | last post by:
I have a very simple webservice written in Java/Axis. It takes in a complexType with 2 string elements, userid and password. The response is a complexType containing two complexTypes each having...
0
by: Elhanan | last post by:
hi.. i have a small Web Service which is consumed by dotnet application the webservice is located in 2 places. the first is my local tomcat, and the second is in websphere server. problems is...
0
by: Chris Fink | last post by:
When I am consuming a webservice, an object has an undefined value (inq3Type.Call3Data). I do not completely understand why this is happening and apologize for the vague question. My assumption...
1
by: leslie_tighe | last post by:
Hello, I have webservice created with Axis 1.2.1 and that I am trying to consuming in .NET (VB) using the Microsoft provided tools. While I am able to consume methods on the service that return...
1
by: Hennesey | last post by:
Hello all, I am developing a Visual Studio .Net 2005 application that consumes an Axis 1.3 web service. Importing the WSDL file generates an error "cannot resolve apachesoap:Map type" ...
1
by: manfred | last post by:
Hi Together, I tried to build a webservice proxy using a wsdl, generated in the sun/java world. I used the .Net 2003 Version, choosing there VC++. The steps I did: 1. Visual C++ Projekte /...
2
by: BluNuit | last post by:
I have a simple c# app that calls a Java (AXIS) web service to perform some operations. The call works fine (the java code fires and the operations are executed), but the response is always null. ...
9
by: Cesar | last post by:
Hello there, A java programmer sent me a wsdl file, which I have to use to consume his web methods. When I run the wsld.exe tool to generate the class' code, I get the following message: ...
5
by: Daythryl | last post by:
I've got some VB code that's supposed to retrieve a Map from a Web Service written in Java, running under Tomcat via Axis-1.4. I'll list the WSDL, the response message and the source code below. ...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.