wood burning stoves 2.0*
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
Author

Axis webservice access ASP.NET client

Pao Biamco
Greenhorn

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='http://schemas.xmlsoap.org/soap/encoding/', 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='http://schemas.xmlsoap.org/soap/encoding/', 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
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

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

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 'cm.business.entity.user.Invalid ......
......

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 AXIS_LIB=%AXIS_HOME%\lib
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"urn:webservice.test.se" se.test.AirportWS

Best regrds
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis webservice access ASP.NET client
 
Similar Threads
Problem while calling methods
How to provide interoperabilty?? RPC or document???
Problem with Java Client
Axis1 (1.4) - Simple client proof of concept - SAXParserException: Content is not allowed in prolog
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement