Here
is my classpath:
C:\j2sdk1.4.1_01\jre\lib;C:\axis-1_2RC2\axis-1_2RC2\lib\axis.jar;C:\axis-1_2RC2\
axis-1_2RC2\lib\commons-discovery.jar;C:\axis-1_2RC2\axis-1_2RC2\lib\commons-log
ging.jar;C:\axis-1_2RC2\axis-1_2RC2\lib\jaxrpc.jar;C:\axis-1_2RC2\axis-1_2RC2\li
b\saaj.jar;C:\axis-1_2RC2\axis-1_2RC2\lib\wsdl4j.jar;C:\axis-1_2RC2\axis-1_2RC2\
lib\xml-apis.jar
axis-1_2RC2\lib\commons-discovery.jar;C:\axis-1_2RC2\axis-1_2RC2\lib\commons-log
ging.jar;C:\axis-1_2RC2\axis-1_2RC2\lib\jaxrpc.jar;C:\axis-1_2RC2\axis-1_2RC2\li
b\saaj.jar;C:\axis-1_2RC2\axis-1_2RC2\lib\wsdl4j.jar;C:\axis-1_2RC2\axis-1_2RC2\
lib\xml-apis.jar
I am
running Axis-C 1.3.
De : John Hawkins [mailto:[EMAIL PROTECTED]
Envoy� : lundi 14 mars 2005 19:47
� : Apache AXIS C User List
Objet : RE: Help with using axis C++
This seems to work fine for me - I get the attached files produced .
My cmd line is ->
set WSDL2WsJar=%builddir%\obj\classes\wsdl2ws.jar
set axisJar=%PreReqsDir%\java\axis.jar
set commonsdiscoveryJar=%PreReqsDir%\java\commons-discovery.jar
set commonsloggingjar=%PreReqsDir%\java\commons-logging.jar
set jaxrpcjar=%PreReqsDir%\java\jaxrpc.jar
set saajjar=%PreReqsDir%\java\saaj.jar
set wsdl4jjar=%PreReqsDir%\java\wsdl4j.jar
rem set WSDLFile=%baseWSDLPath%\%1
set WSDLFile=%1
set foo=%wsdl2wsjar%;%axisJar%;%commonsdiscoveryjar%;%commonsloggingjar%;%jaxrpcjar%;%saajjar%;%wsdl4jjar%
java -classpath %foo% org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -sclient -oWSDLOutput %WSDLFile%
you sure you got the right level of pre-reqs? Where did you get them from?
| "Kon Kam King, France"
<[EMAIL PROTECTED]>
14/03/2005 18:13
|
|
Here it is:
De : John Hawkins [mailto:[EMAIL PROTECTED]
Envoy� : lundi 14 mars 2005 19:09
� : Apache AXIS C User List
Objet : RE: Help with using axis C++
I think this should work but can you send us the WSDL to try?
| "Kon Kam King, France"
<[EMAIL PROTECTED]>
14/03/2005 18:00
|
|
When I remove the type schema declaration from my WSDL, WSDL2Ws runs to completion.
Is complex type allowed wih WSDL2Ws?
I do see an example of a WSDL in the samples library with doclitfault.
Can somebody help me?
De : Kon Kam King, France
Envoy� : lundi 14 mars 2005 16:10
� : 'Apache AXIS C User List'
Objet : RE: Help with using axis C++
I need to pass a complex-type parameter from a C++ client to a soap server, for example
<person>
<user>user1</user>
<password>pass</pass>
<parameter>parameters</parameters>
</person>
How is this done in Axis-c?
I tried to use WSDL2Ws to try generating the client stubs, with a WSDL with complex-type, and soap/literal binding, but got an exception:
ATTENTION: Unable to find required classes (javax.activation.DataHandler and jav
ax.mail.internet.MimeMultipart). Attachment support is disabled.
java.lang.NoSuchMethodError: org.apache.axis.wsdl.symbolTable.SchemaUtils.getUni
onNode(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;
at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.jav
a:953)
at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.jav
a:1092)
at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.jav
a:1092)
at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.jav
a:1092)
at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.jav
a:1092)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populateTypes(SymbolTabl
e.java:895)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:693)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:531
)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:506)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:483)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)
at java.lang.Thread.run(Thread.java:536)
org.apache.axis.wsdl.wsdl2ws.WrapperFault: the service does not exists
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceEntry(WSDL2Ws.java:523
)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.perprocess(WSDL2Ws.java:121)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.genarateWrappers(WSDL2Ws.java:46
8)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(WSDL2Ws.java:805)
Code generation failed. Please see errors above.
I look at the doc/lit examples in the samples but there are no WSDL.
How was the wrappers in these examples generated?
Thanks,
France
De : Samisa Abeysinghe [mailto:[EMAIL PROTECTED]
Envoy� : mercredi 9 mars 2005 11:25
� : Apache AXIS C User List
Objet : RE: Help with using axis C++
We do not have this kind of invoke support in Axis C++.
Thanks,
Samisa�
-----Original Message-----
From: Kon Kam King, France [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 4:17 PM
To: [email protected]
Subject: RE: Help with using axis C++
Hi,
In Java the invoke method has the possibility of passing a document object :
e.g
elems = (Vector) call.invoke(doc) where doc is an XML document.
In Axis-c my program gets a compile error complaining that invoke has no parameter.
Is there the same type of invoke in C/C++?
Thanks,
France
De : Kon Kam King, France
Envoy� : mardi 8 mars 2005 12:44
� : '[email protected]'
Objet : Help with using axis C++
Hi,
I am a newbie to using Axis-c, and want to
know how to create a soap message to send to a Soap server and to get the
response.
I have this running in Java but the interface seems
to be different in C++.
Does anybody have example code of building the soap
message ,the invoke with the call and getting the request.
Thanks.
