One way you could do it is by
java
org.apache.axis.transport.http.SimpleAxisServer -Dlog4j.rootCategory=DEBUG -
p 8080
But I was trying to figure out how I could do this when Axis is included in
Tomcat as a WebApp. Just replacing the log4j.properties file and recreating
the axis.jar file did not
Andrew,
I sent some notes to the list on this in June:
http://www.mail-archive.com/[email protected]/msg03251.html
Also note Jill's response.
There is also a potential problem with namespaces with my code - you
may need to do a call.setTargetService in the client or add a default
names
Usually this is to allow "anything" to be passed--another approach is to use
which usually translates into an XML node of some form (SOAPElement in
JAXRPC, I forget what in .NET). It essentially means "you're on your own to
parse and consume this thing", because the tools aren't being given
inf
On Wednesday 24 July 2002 02:51 pm, Andrew Vardeman wrote:
I have a web service(running on Axis-- I am not using .NET) that reads in an
XML doc and returns it as an Element. However, when the SOAP response is
generated all of the >'s, &'s, etc are not escaped.
You mention xml encoding--what i
I have deployed a Service via a deploy.xml file. I have written a
command-line client to access the WS. if i set the endpoint to point at the
.jws file the service works fine. however i do not want to point at the .jws
file, I want to instead point at the java Class that I deployed with the
What is an easy way to enable the tracing of Axis and see the output go to
the Tomcat console?
Marco
Title: RE: provider="java:EJB"
Thanks for the example Cyrus!
Unfortunately I still can't get EJBProvider to work.
I get "No such operation 'add'".
Do you see anything suspicious in my deploy.wsdd below?
http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/provide
besides the sample application, is there any documentation for this approach
anywhere?
-Original Message-
From: Andrew Vardeman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 3:19 PM
To: [EMAIL PROTECTED]
Subject: RE: passing xml documents
I think I've heard other people ment
Title: Exception thrown for restriction/enumeration
I'm getting the same error on two different WSDL's when I try to parse them with Axis. In both cases, the types referred to are simpleTypes that encapsulate enumerations. The error message is always "type already exists" where type is the n
The following code will also work for sending xml doc in the payload :
call.setTargetEndpointAddress(new URL(endpointURL));
SOAPBodyElement[] reqSOAPBodyElements = new SOAPBodyElement[1];
File associateFile = new
File("c:\\java\\xml-axis\\samples\\cprmessaging\\ass
I have
decided for other reasons to place the src files in the same namespace, but here
you go in case you still want to verify what I've experienced. I am using
the 7/8 nightly build with tomcat 4.0.4 and jdk 1.4.0_1 on Win2K.
Thanks.
-Original Message-From: [EMAIL PROTECTE
I think I've heard other people mention that there's a similar signature
that takes a DOM document, something like this:
public Element[] process(Document doc) throws Exception{}
(sorry for confusing the parameter & return value in the last email)
In beta 1 the MessageContext was one of the pa
Mark:
The following code will send the xml as a msg.
What I don't know is what is this setTargetService call for.
without it the call invokation will generate error, but it is not
showing in the SOAP message anyway.
---
cal
It seems like this is a rather unintuitive way of doing it. I thought i read
somewhere that the function could just take a MsgContext instead of a Vector
of elements, but maybe that was only for handers.
-Original Message-
From: Andrew Vardeman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
public Element[] process(Vector elems) throws Exception{}
It takes an array of DOM Elements because the SOAP body can have more than
one child element. If you're just passing an XML document, it'll only have
one child.
Check out the "message" directory in the Axis samples for a good
example.
I had interoperability issues the MSTK when specifying the XML as doc/lit in
an RPC response. I ended up punting and just XML encoding the doc to send it
as a string like Andrew mentioned. I've never tried this with .NET.
Les
- Original Message -
From: "Andrew Vardeman" <[EMAIL PROTECTE
thanks for the reply. What does your method signature look like for the
method that recieves the document?
-Original Message-
From: Andrew Vardeman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 2:52 PM
To: [EMAIL PROTECTED]
Subject: Re: passing xml documents
I'm passing XML
I'm passing XML documents back and forth between Axis and .NET using
doc/lit (message style). I figured it was the most natural way to go since
the SOAP envelope is XML. Axis makes doc/lit really easy; .NET is so bent
on serializing and deserializing everything for you that it took some work
i'm trying to figure out the best way to do this. Has anyone implemented a
web service with axis where you pass an entire xml document as the payload?
if so, did you use a rpc style or a message style service?
thanks!
mark
Thank's for your answer, but I've tried to install Axis Beta 3 and I had
some problems:
MY ENVIRONMENT:
WIN2000, jdk1.4, Tomcat4.0.4
PROCEEDINGS USED TO INSTALL AXIS BETA 3
COPY FROM AXIS TO TOMCAT:
From: C:\JAVA\ws\axis-1_0\lib\*.*
To: C:\Tomcat404\common\lib
F
If the WSDL you showed me came, untouched, from Java2WSDL, then I agree we have a problem. Might it be possible for you to give us your original Java from which you created the WSDL? I'd like to try recreating the problem.
Russell Butek
[EMAIL PROTECTED]
Please respond to [EMAIL PROTECTED]
T
Thank
you. I failed to mention that I used Java2WSDL to gen the wsdl so there
may be a problem there.
-Original Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 24, 2002 1:57
PMTo: [EMAIL PROTECTED]Subject: RE: WSDL2Java
Exception When Return
I see the problem. In the schema, you've defined:
In the messages, you've defined the part:
Note that the ServiceResponse is an ELEMENT. The part, however, has the statement: type="tns2:ServiceResponse", which means it's looking for a type named "ServiceResponse", not an element.
This bug has been fixed.
Russell Butek
[EMAIL PROTECTED]
Please respond to [EMAIL PROTECTED]
To: "Axis-User (E-mail)" <[EMAIL PROTECTED]>
cc:
Subject: Skeleton getOperationDescs method exposed
Hi
I am finding that when I use Wsdl2Java to generate a skeleton (and deploy
files etc.) and the
Hi
I feed wsdl that has fault types in into WSDL2JAVA compiler.
These get translated to Exceptions on my resulting generated business
methods.
But when I then deploy the service and look at the wsdl coming out of
...?wsdl then there are no fault types??
What has happened to them?
Now all my excep
Hi
I am finding that when I use Wsdl2Java to generate a skeleton (and deploy
files etc.) and then deploy the resulting service the static methods
getOperationDescs() and getOperationDescByName(String) are also exposed in
the service - even if I edit the generated deploy.wsdd to limit the
allowedM
I
attached the wrong version to the last message. This is the correct
one.
-Original Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 24, 2002 12:22
PMTo: [EMAIL PROTECTED]Subject: Re: WSDL2Java
Exception When Return Type is in Another
Pac
here
it is.
-Original Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 24, 2002 12:22
PMTo: [EMAIL PROTECTED]Subject: Re: WSDL2Java
Exception When Return Type is in Another
Package.WSDL2Java supports multiple namespaces. Each
namespace wo
Tom, thanks for your reply. The exception class is available on the client
side, but it still is not getting thrown.
Does my exception have to extend RemoteException? AxisFault?
To demonstrate that the class is available, I modifed the test code to
construct a dummy instance of the exception (
I have written the following wsdd,
which deploys fine. I am trying to restrict the methods available as a service
because SecurityManager has public methods that I do
not want exposed. Axis attempts to load all public methods (many of which cause
axis to fail) the methods I am trying to exp
Hi!
Can anyone direct me to a reference on how to install Axis on BEA WebLogic?
Thanx!
/Anne Marie
WSDL2Java supports multiple namespaces. Each namespace would get mapped to its own package unless you use the -p option (which you have) in which case everything goes into the package you've defined. There's probably something wrong with the namespaces in your WSDL. Could you show it to us?
Rus
Robert,
This should work as the exception class is getting passed in the faultDetails:
http://xml.apache.org/axis/";>
com.cotagesoft.test.webservices.bobh.BobHException
Do you have this class available on the client side? If not, Axis will just create an
AxisFault instead of a fault of t
Kumar Raj wrote:
>Hi !
>
>Is it possible to have the return type for a soap service as Object and
>the service may return any of the primitive and primitive arrays ?
>
>i.e.,
>public Object processRequest( String UserName, String password)
>
>When I tried to deploy a service like this and return
Hi !
Is it possible to have the return type for a soap service as Object and
the service may return any of the primitive and primitive arrays ?
i.e.,
public Object processRequest( String UserName, String password)
When I tried to deploy a service like this and return a string from the
method it
try to use beta3, it will works
-Ursprungliche Nachricht-
Von: Cilas de Freitas [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 24. Juli 2002 17:52
An: [EMAIL PROTECTED]
Betreff: problem with sample\attachments
Hello,
I'm using jdk1.4, Tomcat4.0.4 and axis-beta2 and try to run attachmen
I'm trying to return a java class (ServiceResponseImpl) defined in another
package than my web service, but I get the following exception when running
WSDL2Java.
C:\bis-axis\snap>java org.apache.axis.wsdl.WSDL2Java -o c:\bis-axis\snap -p
gov.doc.bis.ecass2k.soap.snap --server-side
--skeletonDepl
Hello,
I'm using jdk1.4, Tomcat4.0.4 and axis-beta2 and try to run attachments
example, but I got this:
C:\JAVA\ws\xml-axis-beta2>java samples.attachments.EchoAttachment
teste.txt
java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.axis.AxisFault.makeF
I have jboss-2.4.6_Tomcat-4.0.3 and axis beta2 integrated into this for
webservices.I am facing the following problemI am stuck at this
point and am not able to proceed further.Any ideas suggestions are greatly
appreciated.
When I click on run-with-catalina.bat file everything start
I was getting a similair problem (re: the mapping exception). I checked out
the message that was being returned and it had a soap message followed by
some html. I'm not sure why this was the case, but it semmed to explain the
error message.
Dustin Williams
-Original Message-
From: Snigdh
as i understand, the service is already deployed and you are trying to call
the service. have you tried using the trace utility to check the SOAP packet
that is formed when the request is sent to the axis server?
-Original Message-
From: Zaremskas, Michelle M N10 [mailto:[EMAIL PROTECTED
Hello Friends,
Can anyone explain how the "Authenticate" handler specified in the
server-config.wsdd is being used or if its even being used :
I guess I should ask why any of these are defined as such ...??
Thanks much,
-Cyrus
I'm keeping it real simple. I'm going through the examples and I'm trying
to invoke the Calculator service (example2) using the CalcClient. When I
run the CalcClient it is getting the following stack trace:
- Mapping Exception to AxisFault
AxisFault
faultCode: {http://xml.apache.org/axis/}Se
I am using axis with WSAD. Are you getting the error at the time of
deploying the services?
-Original Message-
From: Zaremskas, Michelle M N10 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 8:41 PM
To: [EMAIL PROTECTED]
Subject: Using AXIS with WSAD
Has anyone had any success
Has anyone had any success getting an application working with WSAD. I am
getting XML Parser errors when I attempt to invoke the samples. I've tried
swapping the Websphere parser to use the XERCES 1.4.4 parser, but have not
had any luck.
---
> AxisFault
> faultString: java.lang.ClassNotFoundException:
> javax.net.ssl.SSLSocketFactory
Seems to me, that the javax.net.ssl package is missing in your
CLASSPATH. This class is part of JDK 1.4 respectively of JSSE
1.0.2 (jsse.jar).
Your iaik security provider should provid
I am having the same problem, too. I seem to get this error no matter what
service I try, though.
Dustin Williams
-Original Message-
From: Li, Peng [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 9:34 AM
To: '[EMAIL PROTECTED]'
Subject: problem with samples/userguide/example5
Hi,
i iust use jdk1.3.1 and axis-beta3 and try to run example5 in 2 steps, which
was written in the Axis User's Guide Beta 2 Version
1) java org.apache.axis.client.AdminClient -llocal:///AdminService
deploy.wsdd
2) java samples.userguide.example5.Client -llocal://
but it comes with the error mes
Hi Mark,
I have Axis beta 3 deployed on Weblogic 6.1 sp1 and the following
deploy.wsdd works:
http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";
xmlns:xsi="http:/www.w3.org/2000/10/XMLSchema-instance">
You can easily set all attributes of the thrown soap fault.
Have a look at the code below. In your service implementation you can do:
AxisFault af = new AxisFault();
af.setFaultActor("Sylvain");
af.setFaultCode("This is a faultCode");
af.setFaultDetailString("This is a fault detailStr
This class seems to be in Java 1.4...
-Original Message-
From: Stocker, Walter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 4:42 AM
To: [EMAIL PROTECTED]
Subject: SSL and WSDL2Java
Hello,
i am currently implementig a webservice on an ssl-secured webserver.
Now i have a pr
Hi,
while playing/testing with Axis I used the following WSDL file to
generate stubs, skeletons etc.
http://www.w3.org/2001/XMLSchema";
targetNamespace="urn:service" xmlns:tns="urn:service"
version="1.0" xml:lang="EN">
Murray,
it may be overkill for what you want, but JBoss (ejb server, etc) comes by
default with jetty and if you use the run.bat -c all option for startup,
then you start up the JBoss.NET plugin that is based on Axis. You can go to
jboss.org and download the version you want. You could also go
Hello,
i am currently implementig a webservice on an ssl-secured webserver.
Now i have a problem when connecting to the webservice with the generated
client files (from WSDL2Java). When invoking a method, i get the following
exception:
- Mapping Exception to AxisFault
AxisFault
faultCode: {http
Hi,
I have to interact with a .NET Document style WSDL
that has stuff like this in it for the input message.
The problem is, that is not really a string, but an
XML document, as defined by a external XML schema. As
a result, the client stub generated looks (naturally)
like this: "String m
55 matches
Mail list logo