I've used a custom header that incorporates
some of the WS-Security markup for sending a binary token. As far as I
can tell, WS-Security just defines syntax and semantics of security information
in a SOAP message. So you can do it all yourself, though there can be a
lot to it. No doubt the WSS4J
hi,
i#ve written some webservices and installed and deployed them with axis.
These services returns an String[][]. but .NET makes String[] from the
wsdl.
i use the standard conf of axis!
does anyone any idea??
ciao
marco
Interoperability often becomes an issue when using multidimensional arrays. Use
non-null, single-dimensional arrays that boil down to the same primitive data
types.
-Original Message-
From: Marco Büchler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 5:01 AM
To: [EMAIL
Hi,
Im
an axis newbie and having trouble sending an image attachment (document style
message) from my client to the server. The attachment seems to go across fine,
but when I use AttachmentPart on the server, the
server hangs. It tries to write the
binary source to the console/screen and
Thanks to Roy Willy Haug, he sent me the following message which states
that he have had the same problem and found a way around it. I am not
sure the way he described is the end solution to the problem or not, but
it clearly indicates that this is indeed a bug, and should be an easy fix.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Looking at WSS4J i've seen client deployment descriptor for clients.
I don't know how to use .wsdd on client.
(i'm only able to use AdminClient on a servlet engine)
Were can i find some docs?
Thank you
Ciao,
Ilias
- --
/**
* Reply to:
When fixing this bug, please also note that why the client freezes up
when doing this (please check the first post). This could be a
potential bug if the api is changed to:
DataHandler echo(DataHandler data);
And the client call the server twice in succession. The 2nd time, the
client would
Hi all.
Let's imagine a client sends a bean, and let's imagine one of the bean
properties is null.
Now, at the server side (in reality in both sides), the bean is a
value object and the setter is like the following:
public MyBean() {
...
myPropertyHasBeenSet = false;
Hi,
sorry if this has already been discussed in the mailing list. There have
been so many related messages, that I might overlooked it.
OK, here's my problem. After following the steps described in the
installation guide, I successfully tried the examples mentioned in the user
guide with Axis
I think I understand you but here's the question. Why would you want your
setter called for a null value? If you check the value of
myPropertyHasBeenSet, after it was set with a null value, you'll get true.
Of course this would suck because it was set to null. Is there a reason
you'd want it to be
Try using the bean info class to define what properties exist for the bean.
Axis seems to obey this Java Bean rule.
-Original Message-
From: Sheptunov, Bogdan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 11:57 AM
To: [EMAIL PROTECTED]
Subject: RE: hiding a property from
Could you please elaborate a little more on that? In what way exactly? Have my
class implement BeanInfo interface and describe the properties I'd like to see
returned in getPropertyDescriptors() method?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
--- David Werner [EMAIL PROTECTED] wrote:
OK, here's my problem. After following the steps
described in the
installation guide, I successfully tried the
examples mentioned in the user
guide with Axis 1.1. But I'm running into problems
when I try the samples of
section Using WSDL with Axis.
Sheptunov, Bogdan wrote:
Could you please elaborate a little more on that? In what way exactly? Have my class implement BeanInfo interface and describe the properties I'd like to see returned in getPropertyDescriptors() method?
Read the Java Beans specification, in particular the sections that
Hi Mike,
I need to represent the following cases:
a) the property has been set to a normal value
b) the property has not been set by the bean client (or also the
bean provider)
c) the property has been set to a null value (not too different from
a) because null is also a value, isn't it?)
I still see this next error, but the example runs now,
and it's no longer complaining about not being able to
find classes in the wsdl4.jar packages.
- Unable to find required classes
(javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support
is disabled.
You need
I have a web service that provides both web pages via a servlet and also
SOAP services. I use basic authentication for the web pages and that
works fine. I want the SOAP services to use the same authentication.
I've added the following to my wsdd:
globalConfiguration
requestFlow
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tim K. (Gmane)
Sent: Monday, November 29, 2004 7:20 PM
To: [EMAIL PROTECTED]
Subject: Re: long vs. Long
If anyone else has an example on how to get the Long stuff to
work end-to-end and to interoperate with
If anyone else has an example on how to get the Long stuff to
work end-to-end and to interoperate with .NET I would love to
see it (it has to be RPC not doc/lit) as it would be nice to
make use of the nillable property ...
Thanks.
Tim
The long type in .NET is not nullable, so trying to send
I'd advise against tracking sessions via cookies, and instead use a SOAP
header, cookie support varies betweens tools and I've found it in
general to be an unreliable mechanism.
Cheers
Simon
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tim K. (Gmane)
Sent:
myPropertyHasBeenSet can be used to indicate that a value was explictly
sent (even if null), i.e. it handles the detection of elements that have
minOccur='0' and were never sent.
Not sent/nil are different in doc/lit soap.
Cheers
Simon
-Original Message-
From: Brown, Mike
I am assuming that you could pass session tracking info in the SOAP Header..
The thing I'd like to consider is whether one server could handles all these
200 modular services on one box.. If not, you might want to host them under
different AXIS instances on different boxes.. In other words, it
Can you wrap all things that you want to return in a class, then call
that instead:
class MyReturnedStuffs{
int status;
String whatever;
DataHandler data;
}
public MyReturnedStuffs doit(...){
}
This should not be too hard.
Let's take 5 to 10 minutes to get it to work.
1) start with an interface:
public interface ImageService{
public void sendImage(DataHandler data);
}
save that to a file named ImageService.java
Also, add proper package for the class and import statements for
I am assuming that you could pass session tracking info in the SOAP Header..
Using SOAP headers may not be an option for me as I may have to share
the same session between the Axis servlet and another plain HTTP servlet
I have running for various reasons.
Is there a way in Axis to get to the
Hi,
I look into the Class 'Call' which has setTimeOut(Integer timeout), it takes
millisec as param. But How can I set a request which has no timeout, and
generate request contains an HTTP header with Connection:keep-alive.
Should I set timeout=-1??
Many Thanks,
Georgia
winmail.dat
Is it possible to get and set cookies on the HTTP transport from the
*client* side of Axis?
If so, how? Are there any examples, please?
Thank you.
Tim
Thanx for your response Vy. Looking at the example you sent me, it
seems like it uses RPC style messaging (am I correct?). My project is
using document-style messaging, so some help with that would be great.
I tried following the attachments sample that comes with axis but it
only works for
Hi All,
I have a .NET web service that receives large audio files
and transcribes them. This web service is written in C# and is of-course
deployed in IIS. The client is written in Axis and is sending the large
audio file (My sample is about 5M but they could be much bigger).
However,
ASP.NEThas a default max POST request of 4MB, sounds
like you're running into that. There's some config settings you can change on
the ASP.NET side to increase that limit.
Cheers
Simon
From: Waqar Sadiq
[mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30,
2004 12:48 PMTo:
Looking at the reference for Java2Wsdl, there's this line:
-y, --style
The style of binding in the WSDL, either DOCUMENT, RPC, or WRAPPED.
That means you can pass in DOCUMENT as the style when generating the wsdl to say that you want
DOCUMENT style messaging.
Eyad Garelnabi
I guess that was part of the
problem. I increased the limit and now am getting a 400 Bad Request
error. If I do not send the attachment then my method on the target
service is called. However, with the attachments, I get the Bad Request
error before the method on the target web service is
-Original Message-
From: James Ludlow
That's great for the server, but you also have to take
that into account for the command line too. I used
the following switch to fix this.
C:\axisjava -Djava.endorsed.dirs=/axis/lib
samples.userguide.example2.CalcClient -p8081 add 5 6
I'm
trying to use the ?WSDL generating capabilities of Axis to generate a
WSDL Consumable by a non-Axis client, Laszlo. However is limited in
that it expects the targetNamespace of the schema to be the same as the
targetNamespaceofthewsdl:definitions.
The wsdl:definitions targetNamespace
Hi all,
I am getting the following error from Java2WSDL. It was working before,
I just changed some method signatures. Many thanks for the help!
-David
- The class org.apache.axis.MessageContext does not contain a default
constructor, which is a requirement for a bean class. The class cannot
David Song wrote:
Hi all,
I am getting the following error from Java2WSDL. It was working before,
I just changed some method signatures. Many thanks for the help!
-David
- The class org.apache.axis.MessageContext does not contain a default
constructor, which is a requirement for a bean class.
For what its worth, I figured out the source of the double schema.
Although my custom Serializers were coded to use a specific namespace,
I had not updated the namespace of the type mapping in the WSDD:
typeMapping qname="list:ListKey"
xmlns:list="http://localhost/List"
When generateWSDL
I finally figured out how to set the targetNamespace of the
wsdl:definitions. The WSDD services have parameters, one of which can
be used to override the target namespace:
service ...
...
parameter name="wsdlTargetNamespace"
value="http://localhost/List"/
...
/service
Regards,
Brian.
38 matches
Mail list logo