This type (extracted from a large schema) generates a setter called
setMessage1() in 1.2RC2 instead of setMessage() (1.2b, 1.1).
Intentional or bug?
joe
Represents an error in both human and computer
readable formats.
Human readable text describing
Well,
I got a solution to it. If we just store the document in the WEB-INF
folder, and then try accessing the document we get the same one which
is stored over there.
The '?' in the URL if we use, it would get AXIS to generate the wsdl
document runtime for us.
Regards
Vinay
hi Vinay,
You can specify the wsdlFile attribute for element inside
the WSDD file.
For more information, see the WSDD Schema at axis\wsdd\WSDD.xsd or the
documentation at http://ws.apache.org/axis/java/reference.html
Setting this attribute causes the call setWSDLFile() on JavaServiceDesc object.
Is there any way, by which we can stop axis from generating a wsdl runtime.
So that once I generate a wsdl, I can store it somewhere and everytime
the wsdl is requested from the browser, its the stored wsdl which is
showed.
Regards
Vinay
Hi Anne!
Thanks for the information.
However, the wsdl I posted in my earlier mail was something that axis
generated for me (when I specified '?wsdl' in the browser), so that
means the wsdl generated out for a doc/lit deployed service like this
is faulty or am I missing something in my understandin
> Call.invoke returns type Object. You need to cast that into the Integer
> class and use intValue() to get the value into the primitive type int.
>
> Something like this:
> int a = (new Integer((String)call.invoke(new Object[]{}))).intValue();
Or this
int a = ((Integer)call.invoke(new Objec
As long as you've got the same object model behind all your services,
and the clients don't have any existing model for working with the same
data, you won't have the problem of conflicting models. You'll still
have the issues with the limited types of objects that can be converted
to and from
Thanks, knowing that helped a lot. In the end I added:
_call.setEncodingStyle("http://www.w3.org/2001/XMLSchema";);
inside the various stub methods and it now works, although I'm not
entirely sure why.
Thanks again,
jason
- Original Message -
From: "Anne Thomas Manes" <[EMAIL PROTECTED]
Thanks Dennis for your message. I need some clarification on what you
mean by the following
"The problem with this approach is that you're exporting your object
model. This works fine for simple applications"
I have a legacy application with about 50 services and over 400 data
objects. I h
Hi,
I've run into a problem with enumerations since moving from axis-1.2beta to axis-1.2rc1. With axis-1.2beta, enumerations with string values were generated with the strings in the namespace "http://www.w3.org/2001/XMLSchema". With axis-1.2rc1, enumerations with string values were generated w
I managed to do it by copy/pasting some code from
org.apache.axis.client.Call.
It wasn't easy, but it involved creating a new Message object, setting
it's char encoding to "ISO-8859-1", and then assembling the envelope to
send to Call.
Then to deal with the response, the code needed to get the
Anand Natrajan wrote:
SOAP is always going to be slower than RMI, no question. But by adopting
SOAP as a facade for my application, do I not gain language-independence,
flexibility, loose coupling and document-orientation?
SOAP is not necessarily that much slower than RMI - see my performance
r
I tried this new version with the following example:
public interface Echo extends java.rmi.Remote {
public java.lang.String echoString(java.lang.String in0) throws
java.rmi.RemoteException;
public java.lang.String echoString_double(java.lang.String in0,
java.lang.String in1) throws java.r
Hi Everybody,
Axis homepage mentions the following:
>For Axis 1.2, we are focusing on our document/literal support to better
>address the WS-I Basic Profile 1.0 and JAX-RPC 1.1 specifications.
I was looking into the JAX-RPC 1.1 specification and it mentions the
following:
>A service client use
After reading some previous posts, using WSS4J with Axis 1.2
seems like the current method for incorporation WS-Security. However, I can’t
seem to find an answer regarding how close to production-ready is WSS4J? It
seems like it is not? If that’s true, then for a production system there
is
I have had a similar problem. My current fix (hack) is to use the
ApplicationSession
for passing data between the handler and the client code. Essentially, on your
service locator object, you call
locator.setMaintainSession(true);
Then, in the response handler, you can call
ctx.get
We have a service set up which is working fine so far, but now our
client is requesting that we return our data in ISO-8859-1 instead of
UTF-8.
I've suggested that we stick with UTF-8 since it is more flexible, but
it seems that their system isn't able to handle UTF-8 for some reason.
In most
Title: Message
Thank
you.
--
Jay Glanville
-Original Message-From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:
Wednesday, November 17, 2004 12:27 PMTo:
[EMAIL PROTECTED]Subject: RE: incorporating a web service
into a web app without service address knowledg
I'm not aware that there was a standard way.
I don't think that the "?wsdl" suffix on a service URL is standard
(though it may be a common convention). Our clients don't mind. Providing
they have a URL to the WSDL, it doesn't really matter what that URL is.
I'm not sure if this would work through
Check out the methods on the classes I've
mentioned, and the other related classes. I haven't done a lot of this
kind of work and haven't got time, at the moment, to delve further, but
if you check out the methods and look at some of the examples that come
with Axis, you should be able to work thi
Hi am new'ish to axis, I have been using it without much configuring up
until now.
I have a nice class which i want to use as a front to a webservice. I also
have some classes which I like to pass to and from this service
We have been using straight RPC style service which needs very little
Hi all:
The RC2 release of Axis 1.2 (probably the last before 1.2 (finally) goes
final) is now available at:
http://www.apache.org/dist/ws/axis/1_2RC2/
This version includes:
* Performance enhancements over RC1
* Better doc/lit type mapping support
* JAX-RPC compatibility switch for WSDL2Java
Title: Message
Doesn't this potentially cause problems as you are now publicizing your
WSDL in a non-standard way? If someone (as through habit) made a http://..?WSDL request, they would then get a
file pointing to the wrong location. Is this correct?
JDG
--
Jay Glanville
-
So I have to scroll the xml (or DOM) structure to add each
BodyElement one by one?
Is it the same for haders?
Isn't there a way to add an xml InputStream to the SOAP
body?
thanx
M
Da: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Inviato: mercoledì 17 novembre 2004
15.43A: [EMAI
I think those steps are pretty much what you need to do. If you're adding
to an existing web application, then the web.xml file will need to be modified
to declare the Axis servlet and the mapping for it. Basically, you'd need
to merge whatever a stand-alone Axis web application needs, into your
Axis does support SwA because I use it myself. Axis didn't really try to read
Basic Profile 1.1 and be compatible for it seems it is. With recent patches and
maybe even without them Axis should be better than JWSDP 1.5 in this area.
-Original Message-
From: Rafael Gomez [mailto:[EMAIL PR
Thank you very much, that is exactly what I want.
dacheng
- Original Message -
From: "Greg Michalopoulos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 17, 2004 3:51 PM
Subject: RE: How to get the int returned from the service
> Call.invoke returns type Object.
This is a known soap encoding interoperability problem between .NET and
Axis.
In my opinion, Axis interprets the SOAP specification correctly by using
soapenc:string rather than xsd:string, but .NET doesn't know how to
interpret soapenc:string.
For better interoperability, you should use documen
This is a known soap encoding interoperability problem between .NET and
Axis.
In my opinion, Axis interprets the SOAP specification correctly by using
soapenc:string rather than xsd:string, but .NET doesn't know how to
interpret soapenc:string.
For better interoperability, you should use documen
When defining a document/literal style service, your input message must
contain at most one body part. You cannot list each of your input elements
as separate parts in the input message definition. You must define a wrapper
element for your two input parameters and reference this one element in you
When defining a document/literal style service, your input message must
contain at most one body part. You cannot list each of your input elements
as separate parts in the input message definition. You must define a wrapper
element for your two input parameters and reference this one element in you
Call.invoke returns type Object. You need to cast that into the Integer
class and use intValue() to get the value into the primitive type int.
Something like this:
int a = (new Integer((String)call.invoke(new Object[]{}))).intValue();
-Original Message-
From: Dacheng [mailto:[EMAIL PROTE
But those two arguments are not mutually exclusive.
SOAP is always going to be slower than RMI, no question. But by adopting
SOAP as a facade for my application, do I not gain language-independence,
flexibility, loose coupling and document-orientation?
What's wrong in thinking "code-centric" (don
Hi, I am new in AXIS. I tried to invoke a service which would return a int
back. But when I tried to use 'int a= (int)call.invoke(new Object[]{})' to
get the result. the complier told me int is not an object. So could anyone
tell me what I should do?
Thank you in advance.
Dacheng
Hello all.
Please excuse the nubie question, but then, where else would I ask it?
;-)
I'm investigating how I would add a web service to a currently existing
web application. Within this web app, I have an API containing my data
structures and the actions / commands that can be performed on them
Anne,
I'm not sure what you mean by code-centric, versus WSDL
centric. The approach of writing the business functionality first (if it's
not already there) and then generating the first WSDL from that, before
deploying as a web service, may be thought of as code centric, but is not
tightly couple
On Tue, 16 Nov 2004, Jim Murphy wrote:
: Anand Natrajan wrote:
:
: > So what's my approach? Much as there is talk about writing WSDLs first, I
: > prefer generating them automatically. I can do all the refactoring I want in
: > my Java code and trust the java2wsdl generator to generate non-import
It's language independence mostly. Non-Java gui front end talking to a
Java back end(Yes, Corba may be a better alternative).
Actually this is one of the things that I battled over and over again
personally. I really tried to be WSDL centric from the beginning. I
really did. I knew that this wa
Hi all,
Many things that I have changed, and right now I have another error message.
I put my ReturnFlight.class in the common/class from Tomcat, so the error
that it did not find my ReturnFlight is finished.
Also I changed my deploy.wsdd to:
http://xml.apache.org/axis/wsdd/";
xmlns:java="h
I love this sentence, honest!
Can you be slightly more precise with the document-orientation ? I feel
a taste of REST, but this might only be an artificial spice.
thanks
paul
Le 17 nov. 04, à 14:52, Anne Thomas Manes a écrit :
Code centricity is a fine approach if your goal is to use SOAP as a
s
The method, in your service, has two parameters. The second
parameter is a SOAPEnvelope, in which to put your response. You can get
the body of the element with:
SOAPBody body = resp.getBody();
You can add a body element (this will be the root of your
response message XML) to the body using:
SOAPB
Hi
I already saw the MessageService, but unfortunately it is
quite far from being useful.
I want to put some application xml info into the header
section of the SOAPEnvelope and some other application xml
info into the body section of the SOAPEnvelope.
I made a Message and I put some xml atta
Code centricity is a fine approach if your goal is to use SOAP as a slower
replacement for RMI -- producing tightly coupled Java-centric distributed
object applications. (But why not just use RMI?)
If your goal is to develop language-independent, flexible, loosely coupled,
document-oriented, SOA e
Code centricity is a fine approach if your goal is to use SOAP as a slower
replacement for RMI -- producing tightly coupled Java-centric distributed
object applications. (But why not just use RMI?)
If your goal is to develop language-independent, flexible, loosely coupled,
document-oriented, SOA e
Hi Everyone,
I've searched this list before posting and can't find an answer so here
goes.
I've used WSDL2Java to create a stub etc. from the WSDL (fragment) below
in order to write client code. Everything seems fine from axis except
that the dotnet webservice returns an error.
I've tracked the
Hi KHS,
First of all, thank you for your answer.
I did not put the package information car my class did not have a package.
For that, I put my class Flight.class and ReturnFlight.class into
WEB-INF/classes directly, without package. It seems to me that my example
must work with or without packag
Hi all,
I've with me the following wsdl of a document literal style deployed
EchoTest web service. It has two basic methods echoString (this takes
one string parameter asn input and echoes it as is) and
echoString_double (this takes two strings as input parameters and
echoes their concatenated resu
Hello,
in the typemapping-part of your wsdd-file it should be
type= "java:ReturnFlight"
where is your defined package information.
otherwise axis cant't find your class and has no information how to serialize,
just how the errormessage said.
br
KHS
-Ursprüngliche Nachricht-
Von: Danie
Marcello,
I don't know about attachments, but you don't
need to use the MessageContext to add headers and body elements to the
response. The second parameter has the SOAP envelope that will be passed
back to the client and it already has a SOAP body. So you only need to
add body element to the SO
Hi,
you need deploy your WebService(wsdd file) with AdminClient.
For deploy with AdminClient:
java -classpath "Dependence classes"
org.apache.axis.client.AdminClient
-lhttp://host:port/axis/services/AdminService "deploy.wsdd path"
or
similar!!
I hope to have been for you useful!
On Wed, 17 N
Thank you Salvador,
But there are somethings that I continue not understanding...I am a little
lost. I've read the user manual, however thanks again.
The error message that I receive right now says that did not find my service
Flight. I've created a java class Flight and this use ReturnFlight cl
Yes we solve the problem - but I can t explain yet - no time at the moment.
I will make a post in the next few days - explaining the hole thing.
Thomas
-Ursprüngliche Nachricht-
Von: Vy Ho [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 16. November 2004 18:24
An: [EMAIL PROTECTED]
Betre
Hi,
Sorry if I bother you.
I try to use attachments with Axis. I have been reading about SwA, Basic
Profile 1.1 etc etc..Then I found this conversation in axis news.
I would like to ask you about that example message sent to the service:
how did you manage to get such a message with multipart/rel
Hi all
I am quite new on axis. I have to implement a request/response service (i.e.
my service contains method(SOAPEnvelope req, SOAPEnvelope resp) ).
I managed to build the client, send a SOAPEnvelope correctly, receive the
envelope on the server.
I wasn't able to create a response message using s
Finally, it works fine.
The problem was the configuration of Tomcat.
Indeed, the value of 'connectionTimeout'in the file
'CATALINA_HOME/conf/server.xml' was too small.
-- Debut du message initial ---
De : "Slimane Amar" <[EMAIL PROTECTED]>
A : "axis-dev" <[EMAIL PROTEC
Hi,
you are using instant deployment and you need deployment descriptors.
In the deployment descriptor it is possible to define the services
and to define also the classes of the response using
tag.
Example:
http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/prov
Some interesting discussion, here. I noticed
that many people seem to use WSDL generation. I don't think this is standard
(or done in a standard way) for all web service runtimes but it might not
generate very readable WSDL. One poster said something about the names
of parameters but we also add d
Title: Class as WS return parameter
Hi all,
I am having a problem with my web service. I've created a web service that it has a signature as below:
public ReturnFlight findFlight(String fromCity, String toCity, String dtDeparture, String dtArrival){
Where ReturnFlight is a class that
Hi Ed
Is this *really* the only approach? Defining it at a new endpoint?
I mean that's what I do for know, because I can't think of any other
way...but..you know.. :-)
Maybe this would be a task for the UDDI registry? I dunno.? Do you? Anyone?
Regards
Henrik
- Original Message -
Fro
59 matches
Mail list logo