Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2004

Tip: Looking for answers? Try searching our database.

apachesoap:element issues

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James Hawes - 03 Aug 2004 18:31 GMT
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
James Hawes - 03 Aug 2004 19:07 GMT
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.

> Greetings All.
>
[quoted text clipped - 3 lines]
>
> James Hawes
Dino Chiesa [Microsoft] - 03 Aug 2004 21:08 GMT
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

> 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.

> > 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.