File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Axis webservice  access ASP.NET client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis webservice  access ASP.NET client" Watch "Axis webservice  access ASP.NET client" New topic

Axis webservice access ASP.NET client

Pao Biamco

Joined: Apr 26, 2003
Posts: 7
Hi !

We have implemented Apache Axis with tomcat and using with clients implemented in C# .NET and JAVA .

I have added to Mircrosoft Visual Studio .NET with the URL by adding a web refrerence, it recognizes the WSDL and generates the method call.

Some methods works fine but some not, it complains on some datatypes ? How can i correct this ?

The specified type was not recognized: name='int', namespace='', at <propertiesIds xmlns=''>.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The specified type was not recognized: name='int', namespace='', at <propertiesIds xmlns=''>.

Source Error:

Line 343: [return: System.Xml.Serialization.SoapElementAttribute("getAssetReturn")]
Line 344: public DigitalAsset getAsset(string in0, int in1) {
Line 345: object[] results = this.Invoke("getAsset", new object[] {
Line 346: in0,
Line 347: in1});
Masoud Kalali
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

I think you should use some other WS implementation (I mean SOAP)
because Axis does not completely support document literal WS
and for interoprability you should use Document literal instead of RPC literal
which is well supported in Axis.

hope it helps

Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
Pao Biamco

Joined: Apr 26, 2003
Posts: 7
Hi thx , whene i try to generate the webservice using -y DOCUMENT -u LITERAL i get this following error

- Please register a typemapping/beanmapping for ' ......

I use this script to generate the webservice

set JAVA_HOME=C:\jdk1.5.0_01
set AXIS_HOME=C:\axis\axis-1_2RC2
set AXISCLASSPATH=%CLASSPATH%;%AXIS_LIB%\wsdl4j.jar;%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;%AXIS_LIB%\activation.jar;

java -cp "%AXISCLASSPATH%" org.apache.axis.wsdl.Java2WSDL -o AirportWS.wsdl -y DOCUMENT -u LITERAL -l"http:///test:8080/airport/services/AirportWS" -n"" se.test.AirportWS

Best regrds
I agree. Here's the link:
subject: Axis webservice access ASP.NET client
It's not a secret anymore!