Hi,
if you
refer to the problem that root element of your doc is not set in the Client API
(but
will actually appear on the wire), then we hope to fix that in the next
version.
Currently you would need a 'dummy' root element to
access all of your data from
the
client API. This is not exactly the 'wrapped' mode from axis java, but just a
problem
with
the client API.
Carsten
John,
I
have made a test with doc/lit greneration.
My
complex parameter is "wrapped", and is not what I want.
Is
there the equivalent of java "Message" style service?
Hi,
As I said before you can ignore the attachment support
warnings.
You can also ignore the
anonymous type warnings.
The
">" prefix is annoying- this is where I revert back to "we don't support
rpc as well as doc/lit". These sorts of problems came when we upgraded the
pre-reqs to Axis Java beta - we fixed tem in doc lit but evidently
missed some in rpc !
As I said
before is it possible for you to move to doc/lit ?
| "Kon Kam King, France"
<[EMAIL PROTECTED]>
15/03/2005 15:38
|
Please respond
to "Apache AXIS C User
List" |
|
|
To
| "Apache AXIS C User
List" <[email protected]>
|
|
cc
|
|
|
Subject
| RE: Help with using
axis C++ |
|
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" <[email protected]>
|
|
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" <[email protected]>
|
|
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" <[email protected]>
|
|
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:
[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.