• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Axis webservice access ASP.NET client

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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});
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic