Webservice_Axis2

Jar list(add):
1. activation-1.1.jar
2. axiom-api-1.2.12.jar
3. axiom-impl-1.2.12.jar
4. axis2-adb-1.6.1.jar
5. axis2-kernel-1.6.1.jar
6. axis2-transport-http-1.6.1.jar
7. axis2-transport-local-1.6.1.jar
8. axis2-xmlbeans-1.6.1.jar
9. commons-codec-1.3.jar
10. commons-httpclient-3.1.jar
11. commons-io-1.4.jar
12. commons-logging-1.1.1.jar
13. httpcore-4.0.jar
14. neethi-3.0.1.jar
15. woden-api-1.0M9.jar
16. woden-impl-dom-1.0M9.jar
17. wsdl4j-1.6.2.jar
18. wstx-asl-3.2.9.jar
19. xml-resolver-1.2.jar
20. xmlbeans-2.3.0.jar
21. XmlSchema-1.4.7.jar
22. log4j-1.2.15.jar
23. FileNet.jar

Jar list(remove from Memfis->resource folder):
1. axis.jar
2. axis-ant.jar
3. jaxrpc.jar
4. saaj.jar
5. commons-discovery-0.2.jar
6. commons-io-1.1.jar
7. commons-logging-1.0.4.jar
8. log4j-1.2.7.jar
9. log4j.jar
10. wsdl4j-1.5.1.jar

NOTE:   after adding & removing these jars, remember to add & remove these jar names from MANIFEST file.


---Generate wsdl to java
1.web services->Generate client

http://axis.apache.org/axis2/java/core/download.cgi

http://axis.apache.org/axis2/java/core/tools/index.html


%AXIS2_HOME%\bin\WSDL2Java -uri C:\Asix2_Test\xxxx.wsdl -p org.apache.axis2.xxxx -d xmlbeans -s

%AXIS2_HOME%\bin\WSDL2Java -uri C:\Asix2_Test\xxxx.wsdl -p org.apache.axis2.xxxx -d xmlbeans -s

1.org.apache.axiom.om.OMException:java.lang.ClassCastException:org.apache.axiom.om.impl.llom.OMTextImpl incompatible with org.apache.axiom.om.impl.OMNodeEx --Version issue.

2.java.lang.NoSuchMethodError:
> org.apache.axiom.om.OMAbstractFactory.getMetaFactory()Lorg/apache/axiom/om/OMMetaFactory;
>     at
> org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:85)
>     at
> org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:71)
--version issue

3.Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable
> to load class with name
> schemaorg_apache_xmlbeans.system.sB96777C4495A76B8788F8D7E0FEDDCED.TypeSystemHolder.
--copy the folder under resource(wsdl2java) in memfisweb.classes folder

4.SOAP address

5.SOAP Error - Request Body Data Incorrect.[DESC]validation error: No root element   ({com.tibco.xml.validation}null) at /
com.tibco.xml.validation.exception.f: No root element

1-RqHeader.java name remove axis.   
2-RsHeader.java
3-ClientDetails.java  
4-RqHeaderDocumentImpl.java
5-RsHeaderDocumentImpl.java


6.{http://xml.apache.org/axis/}HttpErrorCode:404  jar missing


********put "","","" in particular package C:\axis2_wsdl2java === correct**********

%AXIS2_HOME%\bin\WSDL2Java -uri C:\Asix2_Test\xxxx.wsdl -o C:\axis2_wsdl2java -p org.apache.axis2.xxxx -d xmlbeans -s
*******************

*********ns2p**************
%AXIS2_HOME%\bin\WSDL2Java -uri C:\Asix2_Test\xxxx.wsdl -o C:\axis2_wsdl2java -p org.apache.axis2.xxxx -d xmlbeans -s -ns2p

***********************
%AXIS2_HOME%\bin\WSDL2Java -uri C:\Asix2_Test\xxxx.wsdl -o C:\axis2_wsdl2java -p org.apache.axis2.xxxx -d xmlbeans -s -ns2p

************ns2p no build.xml*******************
%AXIS2_HOME%\bin\WSDL2Java -uri C:\Asix2_Test\xxxx.wsdl -o C:\temp_20121228 -p org.apache.axis2.xxxx -d xmlbeans -s -ns2p

--noBuildXML
**************************************************
java.lang.NoClassDefFoundError: javax.xml.stream.XMLStreamException stax-api-1.0.1.jar
(RAD 8.0.3,7)

com.ibm.ws.runtime_6.1.0.jar   c:\program files\ibm\sdp\runtimes\base_v61\plugins

javax.naming.NameNotFoundException: Context: apaccnshzjw0120Node02Cell/nodes/apaccnshzjw0120Node02/servers/server1, name: services/memfis/dynacache: First component in name memfis/dynacache not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]

你可能感兴趣的:(webservice)