Axis2 and oc4j deployment

2007-11-19 Thread Hoda, Nadeem [USA]
Folks, We are deploying our Axis2 services on oc4j 1012 (simplest service possible, based on /samples/quickstart [code first]). Locally (even if we access from a different machine), the services work pefectly, but the "dev" environment deployment is failing with the following error (via Axis

Re: How to capture Message Context in sendReceive (Blocking) call

2007-11-19 Thread Deepal Jayasinghe
Hi , >From the service client you can get the operation context , and once you have the operation context you can get both message contexts. Thanks Deepal juliocest wrote: > Hi everybody!!! > > I have a client code that have 2 calls. One of them is blocking and other > nonblocking. > > Part of my

Re: NullPointerException in WSDL20ToAxisServiceBuilder

2007-11-19 Thread Deepal jayasinghe
> Hello, > > I am using Apache Axis 2 version 1.3 and JDK 1.5.0_13 > > When I run wsdl2java, I encounter a NullPointerException in > WSDL20ToAxisServiceBuilder > > Is this a known bug? > > I think its a bug [not known] so please create a JIRA and attach your wsdl. Thanks Deepal

wsdl version

2007-11-19 Thread Simon Steinacker
Hello, I have a general question: Which version of WSDL (1.1/2.0) is recommended to be used? Is WSDL 2.0 already stable and applicable in a critical business applications? Thanks, Lg Simon - To unsubscribe, e-mail: [EMAIL PR

RE: Does Axis 2 allow passing of sub class objects ??

2007-11-19 Thread Vivekananda Moosani
Hello, We had a similar case. We were generating both sever side and client classes from WSDL. We had a DataNode type which gets passed in the WebService methods. But the client can also send a subtype like StructuredDataNode or UnstructuredDataNode. We had the subtypes even defined in the sch

Re: How to create a soap envelope using AXIOM?

2007-11-19 Thread Upul Godage
SOAPFactory soap11Factory = OMAbstractFactory.getSOAP11Factory(); SOAPEnvelope newEnvelope = soap11Factory.getDefaultEnvelope(); ... SOAPHeaderBlock newSOAPHeaderBlock = soap11Factory.createSOAPHeaderBlock( localName, namespace); ... newEnvelope.getHeader().addChild(newSOAPHeaderBlock); ... ne

Re: how to define "invokeBlocking" to return you a byte[]??

2007-11-19 Thread Martin Gainty
Please Post the WSDL M- - Original Message - From: "tina--" <[EMAIL PROTECTED]> To: Sent: Monday, November 19, 2007 6:13 PM Subject: how to define "invokeBlocking" to return you a byte[]?? > > Hello again! I have a second question, in another code. > There is a parameter ReturnTypes, in

Re: [Axis2] Unable to set socket timeout

2007-11-19 Thread Xinjun Chen
Hi Julio, Thanks for your reply. I have managed to set socket timeout. Till now, I have tried the following. 1. Configure the following in axis2.xml TransportSender http and https: 6 6 Result: Failure. It doesn't take effect at all. 2. In client code, set options proper

Does Axis 2 allow passing of sub class objects ??

2007-11-19 Thread Petr V.
Let's assume that I have a web service that has an operation void fun(MyInterface if) can I call it like fun(mo); where mo is of type MyObject that implements MyInterface. Does Axis 2 and web services in general support this i-e passing object of sub class or implementing class for interface

Re: [Axis2] Unable to set socket timeout

2007-11-19 Thread juliocest
Dear Xinjun, First of all you have to import the packages below in the client code: import org.apache.axis2.client.Options; import org.apache.axis2.Constants; After, Options options = new Options(); options.setProperty(HTTPConstans.SO_TIMEOUT, new Integer(36); (timeout of 5 minutes) Tr

How to create a soap envelope using AXIOM?

2007-11-19 Thread juliocest
Hi, I would like to know how can I do a SOAP envelope using axiom. I want to construct the envelope with header and body. Many tutorials explain how to create the soap body, but few explain how create the envelope from scratch. Thanks for a possible help. Julio -- View this message in conte

Re: how to define "invokeBlocking" to return you a byte[]??

2007-11-19 Thread Michele Mazzucco
Have you tried to use MTOM [1]? Michele [1] http://ws.apache.org/axis2/1_3/mtom-guide.html On 19 Nov 2007, at 23:13, tina-- wrote: Hello again! I have a second question, in another code. There is a parameter ReturnTypes, in the invokeBlocking statement, where, as api says, determines th

Re: problem with axis and sockets

2007-11-19 Thread Michele Mazzucco
You cannot send socket references across the network. Sockets - like other resources like DB and JMS connections, are not serializable. The serialization mechanism is described here [1]. Michele [1] http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/ serialTOC.html On 19 Nov 2007,

Compatibility issue with Axis2/C(1.1.0) and Axis2/Java(1.3)

2007-11-19 Thread Lingjia Yang
Hi, I am trying to make an axis2/java web service to talk with an Axis2/C client. First, I deployed the WeatherService in /samples/pojoguide. I modified the class a bit by adding in a simple getCount() method and changed the setWeather() to return an int. Then I used the generated wsdl to gener

how to define "invokeBlocking" to return you a byte[]??

2007-11-19 Thread tina--
Hello again! I have a second question, in another code. There is a parameter ReturnTypes, in the invokeBlocking statement, where, as api says, determines the type of the response. This parameter is a mplampla.class (e.g. String.class, INteger.class, other.class). As the api says, the response w

problem with axis and sockets

2007-11-19 Thread tina--
hello!! Can you please help me? I am facing a problem while calling(invoking) a web service with a socket as its parameter. The exception is: org.apache.axiom.om.OMException: java.lang.RuntimeException: java.lang.IllegalAccessException: Class org.apache.axis2.databinding.utils.BeanUtil can not ac

SOAP XML from HttpRequest

2007-11-19 Thread Lahoria
Hi There I am kinda new to SOAP and may be its very basic question but I am having hard time to find the answer: how to extract/retrieve SOAP XML from am incoming HttpRequest. I want to intercept the incoming SOAP call and do some processing. From the HttpRequest header I know there is a SOAP call

NullPointerException in WSDL20ToAxisServiceBuilder

2007-11-19 Thread Sullivan, Sean
Hello, I am using Apache Axis 2 version 1.3 and JDK 1.5.0_13 When I run wsdl2java, I encounter a NullPointerException in WSDL20ToAxisServiceBuilder Is this a known bug? Sean c:\axis2-1.3\bin\wsdl2java -ss -wv 2.0 -p com.mycorp.foo -o src -uri .\webservices\TmsServices.wsdl Using AXIS2_HOME

Axis2C: WSDL2C with xmlbeans databinding generates Java files

2007-11-19 Thread Lingjia Yang
Hi, I am trying to use WSDL2C (from axis2-1.3) to generate client stubs with xmlbeans databinding. I started with the simple wsdl in \samples\codegen\databinding\Calculator.wsdl. $ ~/tools/axis2/axis2-1.3/bin/axis2.sh org.apache.axis2.wsdl.WSDL2C -uri Calcul ator.wsdl -d xmlbeans It created 2 d

Axis2 Sample EchoBlockingDualClient - Working a little better, but hangs

2007-11-19 Thread Rick Isaacs
Hi I got the Axis2 /Userguide sample EchoBlockingDualClient to execute better, but the client hangs after the shutdown of the LoggingModule. In C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\conf\axis2.xml, I uncommented the following: !-- the non blocking

How to capture Message Context in sendReceive (Blocking) call

2007-11-19 Thread juliocest
Hi everybody!!! I have a client code that have 2 calls. One of them is blocking and other nonblocking. Part of my code is writing as follow: synchronized (callback) { if (!ClienteServico.finish) {

[Axis2] Unable to set socket timeout

2007-11-19 Thread Xinjun Chen
I am trying to configure the default socket timeout configuration from 3 milliseconds to 6 milliseconds for my Axis2 client, following the documentation (http://ws.apache.org/axis2/1_2/http-transport.html). However, this configuration doesn't take effect. My client still receives AxisFault

Axis2 Sample EchoBlockingDualClient - Address already in use: JVM_Bind Error

2007-11-19 Thread Rick Isaacs
Hi I have gotten all the Axis2 \Userguide samples to work except EchoBlockingDualClient and EchoNonBlockingDualClient clients. With options.setUseSeparateListener(true) the request is sent to the service, the SOAPMonitor shows that the request has been received and a response returned. But the

Re: Optional elements of primitive type

2007-11-19 Thread Marco Trevisan
Hi all, Amila wrote: On Nov 15, 2007 8:33 PM, Mauro Molinari <[EMAIL PROTECTED]> wrote: [...] > WSDL2Java generates (using -uw): > > public returnType myOperation(int a, int b); > > while I would expect: > > public returnType myOperation(Integer a, int b); > > because a could be null!!! > The sam

Help Required - Soap over JMS

2007-11-19 Thread [EMAIL PROTECTED]
Hi, Can anyone please tell me the steps involved in creating a web service which uses Axis and MQSeries JMS ? -- View this message in context: http://www.nabble.com/Help-Required---Soap-over-JMS-tf4834416.html#a13830566 Sent from the Axis - User mailing list archive at Nabble.com.

Re: Optional elements of primitive type

2007-11-19 Thread Mauro Molinari
Amila Suriarachchi ha scritto: As I remember there were some alternatives to this and this is what we did. Idea was to keep the variable type as int since it is convenitent to use. As you have told when it comes to boolean there is a problem. In programming we use a boolean to keep two states. S

Re: WSDL stub and skeleton generation few files missing

2007-11-19 Thread Amila Suriarachchi
http://ws.apache.org/axis2/1_3/quickstartguide.html#clientadb On Nov 19, 2007 12:40 PM, amardeep <[EMAIL PROTECTED]> wrote: > > yes this is the thing i got it axis 2 doesn't generate service locator. > But what is the substitute to it how could i use the service Below is the > code to access my