Todd Allen wrote:
What is the default scope in Axis2?
Request .
At 01:35 AM 10/9/2007, Deepal jayasinghe wrote:
Hi ,
If you deploy the service in application scope then there will be only
one service instance , however if you deploy the service in other scope
there will be a number of
The default scope is request scope,so,if I did not specify it in my
services.xml,then there will be service instance for each and every
request.
thanks a lot.
On 09/10/2007, Todd Allen [EMAIL PROTECTED] wrote:
What is the default scope in Axis2?
At 01:35 AM 10/9/2007, Deepal jayasinghe wrote:
Hello Deepal,
We have to comply with a standard (governmental) that prescribes the use of a
messageid in request/response. In case on application level the communbication
is with jms the messages can be linked. Until now i have used the contract
first principle to make a service, do i have to
I've gone through the user guide and the http transport guide, but I
haven't found how I can configure an Axis2 web service client (generated
from WSDL) to pass authentication info to the http client. Any pointers
would be greatly appreciated.
Thanks,
Jon
Hi Jon,
This mail thread should help you
http://www.nabble.com/wsdl2java-with-Basic-Authentication-t4551192.html
Thanks,
Keith.
On 10/9/07, Jon Wilmoth [EMAIL PROTECTED] wrote:
I've gone through the user guide and the http transport guide, but I
haven't found how I can configure an Axis2 web
Hi,
I am trying to set proxy configurations to AXIOM Client. My proxy
configuration code looks like the following :
OMElement getPricePayload = getPricePayload(WSO);
OMElement updatePayload = updatePayload(WSO, 123.42);
Options options = new Options();
options.setTo(targetEPR);
Hi,
I am reporting a peculiar issue which i am facing since yesterday working with
AXIS2 1.2. Addition of an extra simple element to an existing complex type of
an xsd throws an Un Expected Element error. Following is the brief.
The current set up : Working Fine.
The complext type part of my
Hi,
i've this problem with axis2:
i've two services in the same wsdl but the response of one of this service
is faultstringThe endpoint reference (EPR) for the Operation not found is
http://172.31.4.49:9090/outboundws/services/Outbound and the WSA Action =
/faultstring
i've read the but i
Hi.
Where is axis2-soapmonitor.jar? This file appears in the doc but I do not find
it.
The command javac -classpath axis2-soapmonitor.jar SOAPMonitorApplet-java uses
it.
Regards.
__
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
puede contener informacion
I have created a webservice and client using the Axis2 eclipse
plugin tools v1.3.0. Using Eclipse (J2EE) Version: 3.3.0 Build id:
I20070621-1340.
Axis2 v1.3
I have a webservice with many methods. Some reaturn boolean some
return an custom
class serialized as an array of bytes. They all work,
Hi all,
i generate and compile unrapped adb stubs from wsdl.
Now i can call methods passing direcly my api object and not wrapped,
but it still return wrapped one... i saw some samples code and it should
return unrapped object... maybe i use wrong options in stub generation?
I did this:
java
Take a look at http://wso2.org/library/161.
You can access the options object mentioned in the article using my
SoapClientStub._getServiceClient().getOptions()
Best Regards,
Peter.
Jon Wilmoth [EMAIL PROTECTED] schrieb am 09.10.2007 08:57:02:
I've gone through the user guide and the
axis2-soapmonitor.jar got renamed to soapmonitor.jar during the
conversion to maven2 for the 1.3 release. Thanks for pointing that
out, I'll update the docs.
HTH,
Robert
On 10/9/07, Antonio Manuel Muñiz Martín [EMAIL PROTECTED] wrote:
Hi.
Where is axis2-soapmonitor.jar? This file appears
Hi all,
I've a problem with rampart 1.3. I create a security policy for my rampart
WS-Trust, and I put in the services.xml the following:
parameter name=token-dispatcher-configuration
token-dispatcher-configuration
issuer class=com.test.TokenIssuer default=true
tokenType
XMLBeans actually does very little in the way of schema enforcement, not
even checking for required elements and attributes.
For anyone who *does* want to validate messages (generally a good idea
at least in testing), there's a validation module I wrote for use in
Axis2 training classes and made
Hi Ritesh,
I'm surprised to see this, since as I said in my prior email XMLBeans
does very little in the way of schema validation by default. You can
manually validate the data, but unless the generated code includes the
validation I don't know why you'd be running into problems.
What kind of
Ok, long story short. a web service result is an xml file of this type:
?xml version=1.0 encoding=utf-8?
soap:Body
CelsiusToFahrenheitResult10/CelsiusToFahrenheitResult
/CelsiusToFahrenheitResponse
/soap:Body
/soap:Envelope
I want to know if there is any way to save this
Hi all,
is the axis2 implementation of JAX-WS capable of serving requests in an
asynchronous way like this [1]?
Thanks,
Michele
[1] https://jax-ws.dev.java.net/nonav/2.1.2/docs/asyncprovider.html
-
To unsubscribe, e-mail:
Use FileWriter class in java.io
2007/10/9, loredana loredana [EMAIL PROTECTED]:
Ok, long story short. a web service result is an xml file of this type:
?xml version=1.0 encoding=utf-8?
soap:Body
CelsiusToFahrenheitResult10/CelsiusToFahrenheitResult
Hi all,
I would like to ask u, how can i utilize database connection in my web
service. I have one web service with more methods in it. Id like to create
database connection just once and not with each call (each operation works
with the same database connection) Is it enough to create this
I tested it and actually found that none of bindings enforce full schema
validation. So the issue is 2-fold,
1. There should be a schema validation which can be turned on during
testing.
2. Schema validation can be turned off during production without any code
change in web service, preferably
how to save it isn't the hard part...obtaining that xml is. How do I obtain the
whole response??
because in my web service client if I call invoke method, that returns directly
the result(10) not the whole xml response.
- Original Message
From: Antonio Muñiz [EMAIL PROTECTED]
To:
Ok. Thanks.
I extract the soapmonitor.jar file in root directory (/axis2) and I
configured the axis2.xml and web.xml in axis2 distribution.
When I put the URL localhost:8080/axis2/SOAPMonitor in the browser the
response is The requested resource is not available.
I forgot anything?
Thanks a lot
After call,
String ret = (String) call.invoke(new Object[] { 10 });
Try,
call.getMessageContext().getMessage().writeTo(System.out); // whatever
OutputStream
If you are starting out, it is better you take a look at Axis2.
Upul
On 10/9/07, loredana loredana [EMAIL PROTECTED] wrote:
how to
Antonio Manuel Muñiz Martín a écrit :
Ok. Thanks.
I extract the soapmonitor.jar file in root directory (/axis2) and I
configured the axis2.xml and web.xml in axis2 distribution.
When I put the URL localhost:8080/axis2/SOAPMonitor in the browser the
response is The requested resource is not
This is exactly what I do. And the response is The requested resource is
not available when I try /axis2/SOAPMonitor
Another idea?
Thanks.
2007/10/9, Fátima Milla Olaya [EMAIL PROTECTED]:
Unzip the applet classes and place them at the root of the war - for
example axis2/SOAPMonitorApplet*.class
Hello,
I copy Calculator.java to my webapp directory, and rename it Calculator.jws.
Then
http://localhost:8080/axis/Calculator.jws
I get No service is available at this URL.
However I tried another example EchoHeaders.jws that is included in the
installation package. It does
Hi there
I have written a small program which generates and compiles a
web-service class and then creates a wsdl for this class.
But how do I generate services.xml for the class?
For example, to generate the wsdl file programmatically, I do this (and
I would appreciate it if someone could tell
Did you edit the web.xml ? Please read the docs carefully - the
required info is all there.
HTH,
Robert
On 10/9/07, Antonio Manuel Muñiz Martín [EMAIL PROTECTED] wrote:
This is exactly what I do. And the response is The requested resource is
not available when I try /axis2/SOAPMonitor
Another
Look at the xmlbeans api for the validate() method. For example:
XmlError error =
validateSolicitacaoProcedimentoDocument(solicitacaoProcedimentoDocument);
if (error != null) {
throw new Exception(Objeto
solicitacaoDemonstrativoRetornoDocument
+ is invalid:
robert lazarski a écrit :
Did you edit the web.xml ? Please read the docs carefully - the
required info is all there.
HTH,
Robert
On 10/9/07, Antonio Manuel Muñiz Martín [EMAIL PROTECTED] wrote:
This is exactly what I do. And the response is The requested resource is
not available when I
Hi Michael,
wrapped is a subtype of Doc/Lit. Its full name is Document Literal
Wrapped. Go here to learn differences between RPC, Doc/Lit and
Doc/Lit-Wrapped:
http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/
Axis1: With Axis1 you can build web services that use RPC, Doc/Lit and
On 10/9/07, Fátima Milla Olaya [EMAIL PROTECTED] wrote:
robert lazarski a écrit :
Did you edit the web.xml ? Please read the docs carefully - the
required info is all there.
HTH,
Robert
FaultFlow
phase name=Addressing
handler name=AddressingBasedDispatcher
Create an issue for this with wsdl, request and response.
see https://issues.apache.org/jira/browse/AXIS2-3259
Thanks,
Etienne
Hi,
Rampart documentation states that the Rampart supports SAML.
Does Rampart also support XACML ?
Which version of SAML (and XACML if it does) is supported by Rampart ?
Gul
On 10/9/07, Dennis Sosnoski [EMAIL PROTECTED] wrote:
XMLBeans actually does very little in the way of schema enforcement, not
even checking for required elements and attributes.
Ooops My bad... I remembered it the other way :(
thanks,
Thilina
For anyone who *does* want to validate
Hi to everyone. This is my first post and I have a small question about
retrieving a complex type from a client. Read the documentation on
axis(Building stubs, skeletons, and data types from WSDL)basic examples
worked out well, I'm a little stuck on one example ...there is a web service
Hi
I would like to answer my question for benifit of others. I solved my
issue well now.
If wrong just correct it
1) While using SWA we need to use OperationClient API at client side.
using MessageContext on service side to attach a attachment . Don't forget
to send messageId back as pay
I missed your earlier mail...sorry abt that..
1) While using SWA we need to use OperationClient API at client side.
using MessageContext on service side to attach a attachment . Don't forget
to send messageId back as pay load so that you can extract actual
attachment client side.
Yes..
I do all steps in documentation. I don´t modify phaseOrder content, because
the phase soapmonitorPhase already exists.
Perhaps I don´t understand the phase filosofy.
In my axis2.xml I have:
...
module ref=soapmonitor/
...
phaseOrder type=InFlow
!-- System predefined phases --
Hi all,
I tryed to convert from
org.apache.axis2.context.MessageContext
to
org.apache.axis2.saaj.SOAPMessageImpl
passing by
org.apache.axis2.jaxws.message.impl.MessageImpl
Using
org.apache.axis2.jaxws.message.impl.MessageImpl jaxMessage =
In your axis2.xml , you need to have:
module ref=addressing/
module ref=soapmonitor/
As the docs say, don't copy and paste the phases. In fact, you
shouldn't need to change those at all.
HTH,
Robert
On 10/9/07, Antonio Manuel Muñiz Martín [EMAIL PROTECTED] wrote:
I do all steps in
Deepal,
I agree that an isComplete method is convinient, but it can be easily added
as I have shown in the example.
So it's not a major issue.
Perhaps if we document the behaviour properly we don't really need to add
that method in a hurry.
But I also agree that for the sake of backward
This was exactly what I was looking for. Based on
http://ws.apache.org/axis2/1_3/http-transport.html#preemptive_auth, I'd tried
something similar, but the key was this line:
authenticator.setPreemptiveAuthentication(true);
Just out of curiosity is there a deployment (vs. runtime) mechanism to
Ehh, looks like you are already engaging the module.
The requested resource is not available.
Where do you see that, in the browser? I think that's a tomcat error.
So you've edited web.xml, engaged the module, you have expanded the
soapmonitor.jar to webapps/axis2 and there is a module under
Excellent. Thanks. Probably I just cannot help missing the old and good
isComplete() method though its era is over.
Rajith Attapattu wrote:
There are several ways you can use AxisCallback to notify the
completion to interested parties.
What I showed you was a way to implement something
This can also be done in the services.xml file (instead of axis2.xml).
robert lazarski wrote:
In your axis2.xml , you need to have:
module ref=addressing/
module ref=soapmonitor/
As the docs say, don't copy and paste the phases. In fact, you
shouldn't need to change those at all.
HTH,
I am trying to use a SOAP service I don't control. The service does not
like the SOAP Header attribute: soapenv:mustUnderstand=0
My client input data does not contain the mustUnderstand attribute, Axis2
is adding it! (see debug excerpt below)
How can I make the unwanted mustUnderstand=0
If you deploy this service in Application Scope, then there will be one and
only one instance of this service throught out the life time of the
application.
This way you only create your database connection once.
Is it enough to create this service with application scope?
So the answer is yes.
Mmm, I´m using axis distribution deployed on Glassfish server. ¿Is this a
problem?
I think that axis is independent of the servlet container.
2007/10/9, robert lazarski [EMAIL PROTECTED]:
Ehh, looks like you are already engaging the module.
The requested resource is not available.
Where do
I added attachment manually with
for(int att=0;attids.length;att++){
String id = ids[att];
jaxMessage.addDataHandler(req.getAttachmentMap().getDataHandler(id),id);
}
and seems that also saajMessage have them.
now if i write the message with saajMessage.writeTo(System.out) i get
only the
Problem solved.
SOAPMonitor not runs on Glassfish.
I have do the same on Tomcat and it runs.
Thaks for all.
2007/10/9, Antonio Manuel Muñiz Martín [EMAIL PROTECTED]:
Mmm, I´m using axis distribution deployed on Glassfish server. ¿Is this a
problem?
I think that axis is independent of the
I am unable to respond with pure JSON using a POJO service. Here is my POJO:
public class AxisTest {
public String getVersion() throws Exception {
return { customer : { name : { $ : Jane Doe } } };
}
}
The response I get in the browser includes the wrapper:
Hi Anas,
The messageFormatters and messageBuilders should be in the Axis2.xml and not
the services.xml. You can return the response as Json by setting the correct
MessageType on the outgoing messageContext.
Actually today I wrote a module that can do what you request. All you need
to do it add a
I forgot the code.
The code is
public class Calculator {
public int add(int i1, int i2)
{
return i1 + i2;
}
public int subtract(int i1, int i2)
{
return i1 - i2;
}
}
H.Z [EMAIL PROTECTED] wrote:Hello,
I copy Calculator.java to my webapp
If this is a service that more than one user can access I'd recommend
you use commons connection pooling to handle your connections. That way
you just ask for a connection when you need one, and the commons library
handles the creation. Its not going to work very well if multiple
requests
Since only one instance of the Service is used to serve all requests, your
code needs to be able to handle concurrency.
As anthony mentioned you may need to either use a connection pool or
synchronize access to the getConnection method.
Apart from the connection method, if there is any shared
Hi Thilina/ Xinjun,
Could you pl have a look at https://issues.apache.org/jira/browse/AXIS2-3245
give me some pointers to move ahead?
My current requirements force me to use jax-ws-ri on the server-side axis2
on the client-side. The request/ response messages typically have more than
one
Hi
I'm newbie to Axis, so pardon my rudimentary question?
What factors should I consider before choosing between REST vs SOAP
request processing in Axis 2.0?
In case of SOAP I'd use axis2/services URI path in the WSDL soap port
(AxisServlet)
In case of REST I'd use axis2/rest URI path in the
Hi,
Does anyone know how to remove namespaces from SOAP response in Axis2?
Here is an example of what I wanted.
Original SOAP Envelope
soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
soapenv:Body
ns1:loginResponse xmlns:ns1=urn:ws.rsys.com
One of the better SOAP vs Rest 1 page comparisons..
http://www.devx.com/DevX/Article/8155
M-
- Original Message -
From: Ganesan, Chandru [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, October 09, 2007 6:59 PM
Subject: SOAP vs REST request
Hi
I'm newbie to Axis, so
Did you try the suppress-prefixes option in WSDL2Java?
http://svn.apache.org/viewvc?view=revrevision=480336
http://svn.apache.org/viewvc?view=revrevision=480336
Fix for AXIS2-1784 - [ADB] Suppress prefixes in the soap request/response
for performance
Ritesh-
Which schema are you validating with?
Also which schemaLocation are you pointing to ?
M--
- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, October 09, 2007 8:41 AM
Subject: Re: Question : Turning Off XSD Validation in Axis 2
Your question seems to be a generic comparison between REST and SOAP. Good
discussion and comparison could be found thru Google:
http://www.google.com/search?q=rest+vs+soaprls=com.microsoft:en-us:IE-SearchBoxie=UTF-8oe=UTF-8sourceid=ie7
On 10/9/07, Ganesan, Chandru [EMAIL PROTECTED] wrote:
schema as defined in wsdl types. it contains definition for input and output
of the web service method.
ideally I would want to validate only the payload in soap request against an
XSD file.
Is there any other way I can validate ?
On 10/9/00, Martin Gainty [EMAIL PROTECTED] wrote:
Ritesh-
Sorry to say but the article listed below is very misleading.
Comparing REST vs SOAP is the same as apples vs oranges.
REST is an architectural style while SOAP is just a message format.
REST vs WS-* or SOA in general is a more meaningful comparison.
All though there are quite a few folks who
Please display wsdl
Thanks/
M-
- Original Message -
From: Ritesh Tarway
To: axis-user@ws.apache.org
Sent: Tuesday, October 09, 2007 9:17 PM
Subject: Re: Question : Turning Off XSD Validation in Axis 2
schema as defined in wsdl types. it contains definition for input and
Hi,
If you are using the Axis2 1.3 release (If your not better upgrade to that)
you wouldnt fine a seperate RESTServlet. both REST and SOAP request are
handled by the same servlet now. Also as a newbie if you want to have better
REST support I'd advice you to deploy your service via a WSDL 2.0
And I second Rajith's response below ... I am surprised that some people
actually found articles about this comparison that does not seem to be
at the same level .. messaging vs a SOA architecture ...
Interesting ...
Rajith Attapattu wrote:
Sorry to say but the article listed below is very
the response only is unwrapped if it has exactly one argument.
i.e if the response complex type has only one element.
Amila,
On 10/9/07, Lorenzo [EMAIL PROTECTED] wrote:
Hi all,
i generate and compile unrapped adb stubs from wsdl.
Now i can call methods passing direcly my api object and
Thanks Alick. I haven't tried this option. I'll try and see.
Thanks
Raghu
From: Alick Buckley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 09, 2007 5:03 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] How to remove namespaces from SOAP response
Hi all,
We have deployed webservices using AXIS 2.0.We are facing problems in .NET
client which is unable to recognise the int Array type. Once the stubs are
generated (Reference.cs file ) in the .NET client we have tried to assign int[]
to one of the request parameters. But it is giving
this request does not have any productID (the new manadatory field you have
added)
it has
testsimpleTest Simple/testsimple
testTest/test
LoanPreference xmlns=
LoanAmt34546.78/LoanAmt
LoanTerm1/LoanTerm
73 matches
Mail list logo