John,
Things are better with 1.4 & 1.5. I don't get the error I had with 1.3.
But I am getting a warning:
C:\axis-c-1.5.0\lib\axis\wsdl2ws_complex>java -classpath .\wsdl2ws.jar;.;%CLASSP
ATH% org.apache.axis.wsdl.wsdl2ws.WSDL2Ws copieCalculator.wsdl -o./ClientOut -lc
++ -sclient
15 mars 2005 16:17:26 org.apache.axis.utils.JavaUtils isAttachmentSupported
ATTENTION: Unable to find required classes (javax.activation.DataHandler and jav
ax.mail.internet.MimeMultipart). Attachment support is disabled.
ignoring anonymous type >CONTROLXMLSTART
 

Code generation completed.
The generated code is not quite right, as there does not seem to be declaration of my complex type, and the name of the type used in the call is prfixed ith '>',
 
 >CONTROLXMLSTART
I thing there is some bug existing.I am attaching a run with 1.5 (nightly build).
Thanks for your help.


De : John Hawkins [mailto:[EMAIL PROTECTED]
Envoyé : mardi 15 mars 2005 10:24
À : Apache AXIS C User List
Objet : RE: Help with using axis C++


Ah ! axis 1.3 is quite an old version and we don't really support that.

Can you upgrade to either 1.4 or preferably 1.5 beta (you can just take a nightly build from here - http://cvs.apache.org/dist/axis/nightly/)

Please be aware that rpc/encoded is not supported as well as document literal. Is this a situation where you need to have rpc/encoded or could you move to doc/lit?



"Kon Kam King, France" <[EMAIL PROTECTED]>

14/03/2005 18:52

Please respond to
"Apache AXIS C User List"

To
"Apache AXIS C User List" <axis-c-user@ws.apache.org>
cc
Subject
RE: Help with using axis C++





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

 
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

Please respond to
"Apache AXIS C User List"


To
"Apache AXIS C User List" <axis-c-user@ws.apache.org>
cc
Subject
RE: Help with using axis C++







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

Please respond to
"Apache AXIS C User List"


To
"Apache AXIS C User List" <axis-c-user@ws.apache.org>
cc
Subject
RE: Help with using axis C++









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:
axis-c-user@ws.apache.org
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
À :
'axis-c-user@ws.apache.org'
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.

Attachment: CopieCalculator.wsdl
Description: CopieCalculator.wsdl

Attachment: Calculator.hpp
Description: Calculator.hpp

Attachment: Calculator.cpp
Description: Calculator.cpp

Reply via email to