File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis webservice access ASP.NET client

 
Pao Biamco
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 531
Java Mac OS X Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pao Biamco
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic