ComplexType issue

2006-04-15 Thread Xinjun Chen
Hi Robert,

Could you tell me how do you use List in web services, propably with
some sample code or pointer to some sample code?
I don't know how to deal with interface type. For example, if a
service operation has the signature "ReturnBaseType
sampleOperation(InputBaseType input)", and both InputBaseType and
ReturnBaseType are complex types. Assume InputExtensionType is
subclass (or implementation class) of InputBaseType and
ReturnExtentionType is subclass (or implementation class) of
ReturnBaseClass. The client may
pass in InputExtensionType object as input. How can I do this kind of
things?
Another thing I am always wondering is how to effectively use
Hashtable or HashMap as complex types in web services. How can I write
customized serializer/deserializer for them? How about for List types?
Could you explain more on this topic?

Regards,

Xinjun


Get Attribute element Value

2006-04-15 Thread Recep Ayaz
Hello,

I 'am using axis 1.3 and Tomcat 4.1  in my web service . 
I am developing a server using these components with J2SE.but I have a problem with XML attribute elements.
My web service ignore element attributes value in SOAP meesage from clients.
How am I implement the attribute value to my web service.
How can I get attribute value in my SOAP meesage ?
I am writting  java classes and writing WSDD files.
Which parameters and definitions should be modified or made in these files ?

Please help me ...

Thanks.

Recep Ayaz




wsdd Web Service is not WS-I compliant (Style is not DOCUMENT/LITERAL)

2006-04-15 Thread Gorka López

Hello,
I´m principiant with Web services and mobile applications. I have a web service that runs ok with a normal client application, but I have to do a j2me mobile client application. When I try to debug the .wsdd file with J2ME Wireless Toolkit or with NetBeans, it appears the same error: Web Service is not WS-I compliant (Reason: Style is not DOCUMENT/LITERAL). 

This is the code of my .wsdd file:
http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

 




xmlns:ns="urn:servicios"
qname="ns:PruebaGPSException"
type="java:servicios.PruebaGPSException"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/> 
  
http://www.w3.org/2001/XMLSchema" >
http://www.w3.org/2001/XMLSchema"/
>
http://www.w3.org/2001/XMLSchema"/
>



 
Could anybody help me with this error??
 
 
Thanks a lot. Kemmotar


Re: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-15 Thread Srinath Perera
you can do something like check for conversationID for service
instance, if it is null create one .. from second instance it will be
pick up

If you are writing a new message reciver you can not use generated
code, as gen code add a new mesage receiver. If you can manage without
data binding you can extend from RawXMLInOutMessageReciver and just
overide the method I mentioned. In your service.xml provide your
message reciver

Thanks
Srinath

On 4/15/06, nancy <[EMAIL PROTECTED]> wrote:
> 1) Can you tell how I can apply this patch?
>
> 2) To pick up my service instance from a
> Hash map at configuration context map must be populated with that instance
> .How will this map get populated? And I don't having prior experience with
> web services. So I need step wise explanation to implement the Message
> receiver. I have only implemented BPEL process which I am using as web
> service. So I will need your help.
>
> Thanks and regards
> Nancy Aggarwal
>
>
>
> -Original Message-
> From: Srinath Perera [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 15, 2006 5:16 PM
> To: axis-user@ws.apache.org
> Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
>
> Hi Nancy;
>
> As I understood your BPEL2 is stateful and you need same instance to
> be called across number of instances.
>
> 1) if http://issues.apache.org/jira/browse/AXIS2-532 covers your
> senario, and it is integrated
> to main tree (Sorry I was not involved on this, so I do not know) you
> can use it. May be Rajith can shed somelight on this
>
> 2) implement a custom Message Reciver,that do the session for you. You
> have a to introduce a new header and overide
>
>  protected Object getTheImplementationObject(MessageContext
> msgContext) throws AxisFault;
>
> method to lookup the header and pick up your service instance from a
> hashmap at configuration context. (You have to add a new Map)
>
> This method is called before service impl invocaion to locate the
> service instance. Let me know if you plan to do this I will give more
> info
>
>
> Thanks
> Srinath
>
>
> You have two options
> On 4/15/06, nancy <[EMAIL PROTECTED]> wrote:
> > Hi Ali,
> >
> > Yah you can say that scenario is like this.
> >
> >convID2
> > client2 > BPEL2
> >
> > -Original Message-
> > From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, April 15, 2006 3:05 PM
> > To: axis-user@ws.apache.org
> > Subject: RE: VERY URGENT Please HELP[Axis2] How to send message to a
> > particular instance of that webservice?
> >
> > Hi Nancy,
> >
> > I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2
> > and BPEL, wanted to understand your scenario clearly.
> >
> > AFAIK, you are able to do following:
> >
> > client > BPEL1 --> BPEL2
> ><---<--
> >   convID1 & convID2   convID2
> >
> >
> > and want to accomplish following:
> >
> >convID2
> > client2 > BPEL2
> >
> > Do you?
> >
> > Thanks,
> >
> > Ali Sadik Kumlali
> >
> >
> > --- nancy <[EMAIL PROTECTED]> wrote:
> >
> > > Hi Srinath,
> > >
> > > I am really struck with my problem.
> > >
> > > I think I am not able to clear my problem/requirement through my
> > > queries.
> > >
> > > Let me try once again.
> > >
> > > *I am having two Servers:
> > >
> > > One is Tomcat server in which axis2 is deployed and my web service
> > > java
> > > client (implemented using axis2) is deployed
> > >
> > > Another is BPEL server/engine in which my 2 BPEl web services are
> > > running.
> > >
> > > *Through my client I invoked my first bpel web service which in turn
> > > invoked
> > > second bpel web service.
> > >
> > > *Now to complete my first bpel service I need to complete my second
> > > bpel web
> > > service and I am having the id (conversation id) of the second bpel
> > > process/bpel service instance. I need to create a client of my second
> > > bpel
> > > service through which I need to send message to second bpel service
> > > to
> > > complete.
> > >
> > > And I am unable to implement its Client. That's my problem.
> > >
> > > I hope this clears my requirement. Please suggest something ASAP. Can
> > > you
> > > give any example?
> > >
> > >
> > >
> > >
> > > -Original Message-
> > > From: Srinath Perera [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, April 14, 2006 4:26 PM
> > > To: axis-user@ws.apache.org
> > > Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> > > particular instance of that webservice?
> > >
> > > Hi Nancy;
> > >
> > > check these are they what you need. If not you have to implemented
> > > conversation with handlers.
> > >
> > > http://issues.apache.org/jira/browse/AXIS2-532
> > > http://issues.apache.org/jira/browse/AXIS2-548
> > >
> > > Generally Web Services are stateless, I do not know specific header
> > > we
> > > used to transfer conversation ID. Any

Re: Best practice for XML as method argument?

2006-04-15 Thread SOA Work

So axis does support a document-centric implementation of web services?
Very intresting. I didn't know about this feature until now.


> -Ursprüngliche Nachricht-
> Von: axis-user@ws.apache.org
> Gesendet: 13.04.06 19:27:27
> An: axis-user@ws.apache.org
> Betreff: Re: Best practice for XML as method argument?

I did it that way - simply passed the xml as a String - until I found out about 
the messaging api: 
> 
> http://wiki.apache.org/ws/FrontPage/Axis/StyleInWSDDAndWSDL
> 
> HTH, 
> Robert 
> http://www.braziloutsource.com/
> 
> 
> On 4/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> > wrote:
> 
> If I wanted to have my remote
> method accept XML as an argument, would the best practice be to use
> SOAP RPC and pass the xml as a String? 
> 
> 
> Regards,
> 
> 
> Joshua
> 
> 
> 
> 
> *
> This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information. If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited. If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *
> 
> 


___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192



wishing to http://ws.apache.org/axis/java/user-guide.html

2006-04-15 Thread Alexandr Khlystov
Good day.I like this article it is written is short and informative manner, Iwant to tell you about one problem which I had during creating myhello world axis application.
I've spend about 4 hours on resolving it, so I think it would beuseful for other people to know about it from begining of theacquaintance with Apache Axis.This problem is a permanent Exception when trying to deploy
application to the Axis. After resolving it I thought that I shouldwrite to you because, with some sense you cause it - I mean...\axis-1_2_1\samples should not be include to the...\axis-1_2_1\webapps\axis\WEB-INF\classes\" by default because when
coping folder ...\axis-1_2_1\webapps\axis to the tomcat webappsfolder. all samples classes appear there by default , and then allsamples works fine but my hello world applicaion doesn't work even ifis the same as samples, just because I should manualy put it to the
axis webapp to tomcat, but I didn't find any info about it. anddeployment doesn't said to me that I've done someting wrong.Here is more detailed info about my problem:applicaion was build with JAVA2WSDL and then WSDL2JAVA tools, deploying command:
java -cp ".;%CLASSPATH%" org.apache.axis.client.AdminClient -dddhello/deploy.wsddafter executing script I saw that all is Ok, but realy on th ApacheTomcat 4.1 logI saw:...- Exception:
java.lang.ClassNotFoundException: simple.SimpleServiceSoapBindingImpl       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1443)       at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1289)...And at the URL http://localhost:8080/axis/servlet/AxisServlet
 I saw: --And now... Some ServicesAXIS errorSorry, something seems to have gone wrong... here are the details:Fault - Could not find class for the service named:
simple.SimpleServiceSoapBindingImplHint: you may need to copy your class files/tree into the rightlocation (which depends on the servlet system you are using).; nestedexception is:java.lang.ClassNotFoundException
: simple.SimpleServiceSoapBindingImplAxisFault faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Could not find class for the service named:simple.SimpleServiceSoapBindingImplHint: you may need to copy your class files/tree into the right
location (which depends on the servlet system you are using).; nestedexception is:java.lang.ClassNotFoundException: simple.SimpleServiceSoapBindingImpl faultActor: faultNode: faultDetail:{
http://xml.apache.org/axis/}hostname:cjiohobaji --also with my another example ( whic sends not primitive at serviceparameters but new Class )at the URL 
http://localhost:8080/axis/servlet/AxisServlet I saw:I saw that my sevice isn't deployed but deployment script tells that all is ok.
And at Apache Tomact logs I saw very strange Exception...- Unable to deploy typemapping: {urn:helloProduct}Productjava.lang.ClassNotFoundException: hello.Product       at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1443)       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)...And I cann't understand what is wrong about 4 hours.Thank you for your attention.
 


RE: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-15 Thread nancy
1) Can you tell how I can apply this patch?

2) To pick up my service instance from a
Hash map at configuration context map must be populated with that instance
.How will this map get populated? And I don't having prior experience with
web services. So I need step wise explanation to implement the Message
receiver. I have only implemented BPEL process which I am using as web
service. So I will need your help.

Thanks and regards
Nancy Aggarwal



-Original Message-
From: Srinath Perera [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 15, 2006 5:16 PM
To: axis-user@ws.apache.org
Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
particular instance of that webservice?

Hi Nancy;

As I understood your BPEL2 is stateful and you need same instance to
be called across number of instances.

1) if http://issues.apache.org/jira/browse/AXIS2-532 covers your
senario, and it is integrated
to main tree (Sorry I was not involved on this, so I do not know) you
can use it. May be Rajith can shed somelight on this

2) implement a custom Message Reciver,that do the session for you. You
have a to introduce a new header and overide

 protected Object getTheImplementationObject(MessageContext
msgContext) throws AxisFault;

method to lookup the header and pick up your service instance from a
hashmap at configuration context. (You have to add a new Map)

This method is called before service impl invocaion to locate the
service instance. Let me know if you plan to do this I will give more
info


Thanks
Srinath


You have two options
On 4/15/06, nancy <[EMAIL PROTECTED]> wrote:
> Hi Ali,
>
> Yah you can say that scenario is like this.
>
>convID2
> client2 > BPEL2
>
> -Original Message-
> From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 15, 2006 3:05 PM
> To: axis-user@ws.apache.org
> Subject: RE: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
>
> Hi Nancy,
>
> I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2
> and BPEL, wanted to understand your scenario clearly.
>
> AFAIK, you are able to do following:
>
> client > BPEL1 --> BPEL2
><---<--
>   convID1 & convID2   convID2
>
>
> and want to accomplish following:
>
>convID2
> client2 > BPEL2
>
> Do you?
>
> Thanks,
>
> Ali Sadik Kumlali
>
>
> --- nancy <[EMAIL PROTECTED]> wrote:
>
> > Hi Srinath,
> >
> > I am really struck with my problem.
> >
> > I think I am not able to clear my problem/requirement through my
> > queries.
> >
> > Let me try once again.
> >
> > *I am having two Servers:
> >
> > One is Tomcat server in which axis2 is deployed and my web service
> > java
> > client (implemented using axis2) is deployed
> >
> > Another is BPEL server/engine in which my 2 BPEl web services are
> > running.
> >
> > *Through my client I invoked my first bpel web service which in turn
> > invoked
> > second bpel web service.
> >
> > *Now to complete my first bpel service I need to complete my second
> > bpel web
> > service and I am having the id (conversation id) of the second bpel
> > process/bpel service instance. I need to create a client of my second
> > bpel
> > service through which I need to send message to second bpel service
> > to
> > complete.
> >
> > And I am unable to implement its Client. That's my problem.
> >
> > I hope this clears my requirement. Please suggest something ASAP. Can
> > you
> > give any example?
> >
> >
> >
> >
> > -Original Message-
> > From: Srinath Perera [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 14, 2006 4:26 PM
> > To: axis-user@ws.apache.org
> > Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> > particular instance of that webservice?
> >
> > Hi Nancy;
> >
> > check these are they what you need. If not you have to implemented
> > conversation with handlers.
> >
> > http://issues.apache.org/jira/browse/AXIS2-532
> > http://issues.apache.org/jira/browse/AXIS2-548
> >
> > Generally Web Services are stateless, I do not know specific header
> > we
> > used to transfer conversation ID. Any way good luck
> > Srinath
> >
> > On 4/12/06, nancy <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > >
> > > Please tell how can I interact with a webservice instance created
> > somewhere
> > > else by setting its conversationid.?
> > >
> > >  
> > >
> > >
> > > From: nancy [mailto:[EMAIL PROTECTED]
> > >  Sent: Wednesday, April 12, 2006 1:31 PM
> > >  To: 'axis-user@ws.apache.org'
> > >  Subject: RE: [Axis2] How to send message to a particular instance
> > of that
> > > webservice?
> > >
> > >
> > >
> > > Is there no way to set Conversation id or soap header in stub in
> > axis2?
> > >
> > > In Axis1, in binding stub generated by axis there were methods to
> > set
> > > header, timeout etc. What is the way to do all this 

Re: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-15 Thread Srinath Perera
Hi Nancy;

As I understood your BPEL2 is stateful and you need same instance to
be called across number of instances.

1) if http://issues.apache.org/jira/browse/AXIS2-532 covers your
senario, and it is integrated
to main tree (Sorry I was not involved on this, so I do not know) you
can use it. May be Rajith can shed somelight on this

2) implement a custom Message Reciver,that do the session for you. You
have a to introduce a new header and overide

 protected Object getTheImplementationObject(MessageContext
msgContext) throws AxisFault;

method to lookup the header and pick up your service instance from a
hashmap at configuration context. (You have to add a new Map)

This method is called before service impl invocaion to locate the
service instance. Let me know if you plan to do this I will give more
info


Thanks
Srinath


You have two options
On 4/15/06, nancy <[EMAIL PROTECTED]> wrote:
> Hi Ali,
>
> Yah you can say that scenario is like this.
>
>convID2
> client2 > BPEL2
>
> -Original Message-
> From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 15, 2006 3:05 PM
> To: axis-user@ws.apache.org
> Subject: RE: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
>
> Hi Nancy,
>
> I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2
> and BPEL, wanted to understand your scenario clearly.
>
> AFAIK, you are able to do following:
>
> client > BPEL1 --> BPEL2
><---<--
>   convID1 & convID2   convID2
>
>
> and want to accomplish following:
>
>convID2
> client2 > BPEL2
>
> Do you?
>
> Thanks,
>
> Ali Sadik Kumlali
>
>
> --- nancy <[EMAIL PROTECTED]> wrote:
>
> > Hi Srinath,
> >
> > I am really struck with my problem.
> >
> > I think I am not able to clear my problem/requirement through my
> > queries.
> >
> > Let me try once again.
> >
> > *I am having two Servers:
> >
> > One is Tomcat server in which axis2 is deployed and my web service
> > java
> > client (implemented using axis2) is deployed
> >
> > Another is BPEL server/engine in which my 2 BPEl web services are
> > running.
> >
> > *Through my client I invoked my first bpel web service which in turn
> > invoked
> > second bpel web service.
> >
> > *Now to complete my first bpel service I need to complete my second
> > bpel web
> > service and I am having the id (conversation id) of the second bpel
> > process/bpel service instance. I need to create a client of my second
> > bpel
> > service through which I need to send message to second bpel service
> > to
> > complete.
> >
> > And I am unable to implement its Client. That's my problem.
> >
> > I hope this clears my requirement. Please suggest something ASAP. Can
> > you
> > give any example?
> >
> >
> >
> >
> > -Original Message-
> > From: Srinath Perera [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 14, 2006 4:26 PM
> > To: axis-user@ws.apache.org
> > Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> > particular instance of that webservice?
> >
> > Hi Nancy;
> >
> > check these are they what you need. If not you have to implemented
> > conversation with handlers.
> >
> > http://issues.apache.org/jira/browse/AXIS2-532
> > http://issues.apache.org/jira/browse/AXIS2-548
> >
> > Generally Web Services are stateless, I do not know specific header
> > we
> > used to transfer conversation ID. Any way good luck
> > Srinath
> >
> > On 4/12/06, nancy <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > >
> > > Please tell how can I interact with a webservice instance created
> > somewhere
> > > else by setting its conversationid.?
> > >
> > >  
> > >
> > >
> > > From: nancy [mailto:[EMAIL PROTECTED]
> > >  Sent: Wednesday, April 12, 2006 1:31 PM
> > >  To: 'axis-user@ws.apache.org'
> > >  Subject: RE: [Axis2] How to send message to a particular instance
> > of that
> > > webservice?
> > >
> > >
> > >
> > > Is there no way to set Conversation id or soap header in stub in
> > axis2?
> > >
> > > In Axis1, in binding stub generated by axis there were methods to
> > set
> > > header, timeout etc. What is the way to do all this with stubs
> > generated
> > by
> > > axis2?
> > >
> > > Please Help
> > >
> > >
> > >
> > >
> > >
> > >  
> > >
> > >
> > > From: nancy [mailto:[EMAIL PROTECTED]
> > >  Sent: Wednesday, April 12, 2006 1:06 PM
> > >  To: axis-user@ws.apache.org
> > >  Subject: [Axis2] How to send message to a particular instance of
> > that
> > > webservice?
> > >
> > >
> > >
> > > Hi,
> > >
> > >
> > >
> > > I want to use Axis2 to create client for invoking the web service
> > running
> > in
> > > BPEL Engine. I have successfully created stub using my BPEl web
> > service's
> > > wsdl. My BPEL service1 invoke another BPEL service2.I have
> > successfully
> > > invoked BPEL servi

Re: Java2WSDL problem

2006-04-15 Thread Riadh BEN HALIMA


Hi,
javax.wsdl.extensions.ExtensibilityElement exists in wsdl4j-1.5.1.jar!!!
You forget the  wsdl4j-1.5.1 extension (.jar)  in your class path:

%AXIS_LIB%\axis.jar;

%AXIS_LIB%\commons-discovery-0.2.jar;
%AXIS_LIB%\commons-logging-1.0.4.jar;
%AXIS_LIB%\jaxrpc.jar;
%AXIS_LIB%\saaj.jar;
%AXIS_LIB%\log4j-1.2.8.jar;
%AXIS_LIB%\xml-apis.jar;
%AXIS_LIB%\xercesImpl.jar;
%AXIS_LIB%\wsdl4j-1.5.1;  You forget ''.jar'' in this line 


%AXIS_LIB%\axis-ant.jar ;
%AXIS_LIB%\axis-schema.jar;
%AXIS_LIB%\log4j.properties;
%AXIS_LIB%\xml-apis.jar;


Riadh


- Original Message - 
From: <[EMAIL PROTECTED]>

To: 
Sent: Saturday, April 15, 2006 12:14 PM
Subject: Java2WSDL problem



Hi there,

I'm trying to create a WSDL file from Java source code, by executing the
following comand from my console:

java org.apache.axis.wsdl.Java2WSDL -o cruise.wsdl
   -l http://192.168.1.10:8080/axis/servlet/AxisServlet
   -n "urn:cruise" -S "CruiseService" CruiseService

but I get the following Exception:

Java.lang.NoClassDefFoundError: javax/wsdl/extensions/ExtensibilityElement

I have included the wsdl4j-1.5.1.jar file in my class path, following is
my Environment setup:

AXIS_HOME
C:\axis

AXIS_LIB
%AXIS_HOME%\lib

AXISCLASSPATH

%AXIS_LIB%\axis.jar;
%AXIS_LIB%\commons-discovery-0.2.jar;
%AXIS_LIB%\commons-logging-1.0.4.jar;
%AXIS_LIB%\jaxrpc.jar;
%AXIS_LIB%\saaj.jar;
%AXIS_LIB%\log4j-1.2.8.jar;
%AXIS_LIB%\xml-apis.jar;
%AXIS_LIB%\xercesImpl.jar;
%AXIS_LIB%\wsdl4j-1.5.1;
%AXIS_LIB%\axis-ant.jar ;
%AXIS_LIB%\axis-schema.jar;
%AXIS_LIB%\log4j.properties;
%AXIS_LIB%\xml-apis.jar;

AXISROOT
C:\Tomcat5\webapps\axis\WEB-INF\lib\

Can you please advice me what I'm doing wrong, or what I need to do to fix
this exception. I will appreciate a quick response, as I dnt rly have much
time, this is part of my Final Year Project, and the due date is almost at
my door-step :(

Many thanx

yasmin








Java2WSDL problem

2006-04-15 Thread rafiqy
Hi there,

I'm trying to create a WSDL file from Java source code, by executing the
following comand from my console:

java org.apache.axis.wsdl.Java2WSDL -o cruise.wsdl
-l http://192.168.1.10:8080/axis/servlet/AxisServlet
-n "urn:cruise" -S "CruiseService" CruiseService

but I get the following Exception:

Java.lang.NoClassDefFoundError: javax/wsdl/extensions/ExtensibilityElement

I have included the wsdl4j-1.5.1.jar file in my class path, following is
my Environment setup:

AXIS_HOME
C:\axis

AXIS_LIB
%AXIS_HOME%\lib

AXISCLASSPATH

%AXIS_LIB%\axis.jar;
%AXIS_LIB%\commons-discovery-0.2.jar;
%AXIS_LIB%\commons-logging-1.0.4.jar;
%AXIS_LIB%\jaxrpc.jar;
%AXIS_LIB%\saaj.jar;
%AXIS_LIB%\log4j-1.2.8.jar;
%AXIS_LIB%\xml-apis.jar;
%AXIS_LIB%\xercesImpl.jar;
%AXIS_LIB%\wsdl4j-1.5.1;
%AXIS_LIB%\axis-ant.jar ;
%AXIS_LIB%\axis-schema.jar;
%AXIS_LIB%\log4j.properties;
%AXIS_LIB%\xml-apis.jar;

AXISROOT
C:\Tomcat5\webapps\axis\WEB-INF\lib\

Can you please advice me what I'm doing wrong, or what I need to do to fix
this exception. I will appreciate a quick response, as I dnt rly have much
time, this is part of my Final Year Project, and the due date is almost at
my door-step :(

Many thanx

yasmin







RE: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-15 Thread nancy
Hi Ali,

Yah you can say that scenario is like this.

   convID2
client2 > BPEL2

-Original Message-
From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 15, 2006 3:05 PM
To: axis-user@ws.apache.org
Subject: RE: VERY URGENT Please HELP[Axis2] How to send message to a
particular instance of that webservice?

Hi Nancy,

I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2
and BPEL, wanted to understand your scenario clearly.

AFAIK, you are able to do following:

client > BPEL1 --> BPEL2
   <---<--
  convID1 & convID2   convID2


and want to accomplish following:

   convID2
client2 > BPEL2

Do you?

Thanks,

Ali Sadik Kumlali


--- nancy <[EMAIL PROTECTED]> wrote:

> Hi Srinath,
> 
> I am really struck with my problem.
> 
> I think I am not able to clear my problem/requirement through my
> queries.
> 
> Let me try once again.
> 
> *I am having two Servers:
> 
> One is Tomcat server in which axis2 is deployed and my web service
> java
> client (implemented using axis2) is deployed
> 
> Another is BPEL server/engine in which my 2 BPEl web services are
> running.
> 
> *Through my client I invoked my first bpel web service which in turn
> invoked
> second bpel web service.
> 
> *Now to complete my first bpel service I need to complete my second
> bpel web
> service and I am having the id (conversation id) of the second bpel
> process/bpel service instance. I need to create a client of my second
> bpel
> service through which I need to send message to second bpel service
> to
> complete.
> 
> And I am unable to implement its Client. That's my problem.
> 
> I hope this clears my requirement. Please suggest something ASAP. Can
> you
> give any example?
> 
> 
> 
> 
> -Original Message-
> From: Srinath Perera [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 14, 2006 4:26 PM
> To: axis-user@ws.apache.org
> Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
> 
> Hi Nancy;
> 
> check these are they what you need. If not you have to implemented
> conversation with handlers.
> 
> http://issues.apache.org/jira/browse/AXIS2-532
> http://issues.apache.org/jira/browse/AXIS2-548
> 
> Generally Web Services are stateless, I do not know specific header
> we
> used to transfer conversation ID. Any way good luck
> Srinath
> 
> On 4/12/06, nancy <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > Please tell how can I interact with a webservice instance created
> somewhere
> > else by setting its conversationid.?
> >
> >  
> >
> >
> > From: nancy [mailto:[EMAIL PROTECTED]
> >  Sent: Wednesday, April 12, 2006 1:31 PM
> >  To: 'axis-user@ws.apache.org'
> >  Subject: RE: [Axis2] How to send message to a particular instance
> of that
> > webservice?
> >
> >
> >
> > Is there no way to set Conversation id or soap header in stub in
> axis2?
> >
> > In Axis1, in binding stub generated by axis there were methods to
> set
> > header, timeout etc. What is the way to do all this with stubs
> generated
> by
> > axis2?
> >
> > Please Help
> >
> >
> >
> >
> >
> >  
> >
> >
> > From: nancy [mailto:[EMAIL PROTECTED]
> >  Sent: Wednesday, April 12, 2006 1:06 PM
> >  To: axis-user@ws.apache.org
> >  Subject: [Axis2] How to send message to a particular instance of
> that
> > webservice?
> >
> >
> >
> > Hi,
> >
> >
> >
> > I want to use Axis2 to create client for invoking the web service
> running
> in
> > BPEL Engine. I have successfully created stub using my BPEl web
> service's
> > wsdl. My BPEL service1 invoke another BPEL service2.I have
> successfully
> > invoked BPEL service1.But when it invokes service2, I need to send
> a
> message
> > to webservice2 using its conversation ID. I have created stub for
> second
> web
> > service also. But can't find a way how to send message to a
> particular
> > instance of that webservice2.
> >
> >
> >
> > Please Help!!!
> >
> >
> >
> > Thanks and regards,
> >
> > Nancy Aggarwal
> 
> 
> --
> 
> Srinath Perera:
>http://www.cs.indiana.edu/~hperera/
>http://www.bloglines.com/blog/hemapani
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



RE: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-15 Thread Ali Sadik Kumlali
Hi Nancy,

I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2
and BPEL, wanted to understand your scenario clearly.

AFAIK, you are able to do following:

client > BPEL1 --> BPEL2
   <---<--
  convID1 & convID2   convID2


and want to accomplish following:

   convID2
client2 > BPEL2

Do you?

Thanks,

Ali Sadik Kumlali


--- nancy <[EMAIL PROTECTED]> wrote:

> Hi Srinath,
> 
> I am really struck with my problem.
> 
> I think I am not able to clear my problem/requirement through my
> queries.
> 
> Let me try once again.
> 
> *I am having two Servers:
> 
> One is Tomcat server in which axis2 is deployed and my web service
> java
> client (implemented using axis2) is deployed
> 
> Another is BPEL server/engine in which my 2 BPEl web services are
> running.
> 
> *Through my client I invoked my first bpel web service which in turn
> invoked
> second bpel web service.
> 
> *Now to complete my first bpel service I need to complete my second
> bpel web
> service and I am having the id (conversation id) of the second bpel
> process/bpel service instance. I need to create a client of my second
> bpel
> service through which I need to send message to second bpel service
> to
> complete.
> 
> And I am unable to implement its Client. That's my problem.
> 
> I hope this clears my requirement. Please suggest something ASAP. Can
> you
> give any example?
> 
> 
> 
> 
> -Original Message-
> From: Srinath Perera [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 14, 2006 4:26 PM
> To: axis-user@ws.apache.org
> Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
> 
> Hi Nancy;
> 
> check these are they what you need. If not you have to implemented
> conversation with handlers.
> 
> http://issues.apache.org/jira/browse/AXIS2-532
> http://issues.apache.org/jira/browse/AXIS2-548
> 
> Generally Web Services are stateless, I do not know specific header
> we
> used to transfer conversation ID. Any way good luck
> Srinath
> 
> On 4/12/06, nancy <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > Please tell how can I interact with a webservice instance created
> somewhere
> > else by setting its conversationid.?
> >
> >  
> >
> >
> > From: nancy [mailto:[EMAIL PROTECTED]
> >  Sent: Wednesday, April 12, 2006 1:31 PM
> >  To: 'axis-user@ws.apache.org'
> >  Subject: RE: [Axis2] How to send message to a particular instance
> of that
> > webservice?
> >
> >
> >
> > Is there no way to set Conversation id or soap header in stub in
> axis2?
> >
> > In Axis1, in binding stub generated by axis there were methods to
> set
> > header, timeout etc. What is the way to do all this with stubs
> generated
> by
> > axis2?
> >
> > Please Help
> >
> >
> >
> >
> >
> >  
> >
> >
> > From: nancy [mailto:[EMAIL PROTECTED]
> >  Sent: Wednesday, April 12, 2006 1:06 PM
> >  To: axis-user@ws.apache.org
> >  Subject: [Axis2] How to send message to a particular instance of
> that
> > webservice?
> >
> >
> >
> > Hi,
> >
> >
> >
> > I want to use Axis2 to create client for invoking the web service
> running
> in
> > BPEL Engine. I have successfully created stub using my BPEl web
> service's
> > wsdl. My BPEL service1 invoke another BPEL service2.I have
> successfully
> > invoked BPEL service1.But when it invokes service2, I need to send
> a
> message
> > to webservice2 using its conversation ID. I have created stub for
> second
> web
> > service also. But can't find a way how to send message to a
> particular
> > instance of that webservice2.
> >
> >
> >
> > Please Help!!!
> >
> >
> >
> > Thanks and regards,
> >
> > Nancy Aggarwal
> 
> 
> --
> 
> Srinath Perera:
>http://www.cs.indiana.edu/~hperera/
>http://www.bloglines.com/blog/hemapani
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


wsdd Web Service is not WS-I compliant (document/literal)

2006-04-15 Thread Gorka López
Hello,
I´m principiant with Web services and mobile applications. I have a web service that runs ok with a normal client application, but I have to do a j2me mobile client application. When I try to debug the .wsdd file with J2ME Wireless Toolkit or with NetBeans, it appears the same error: Web Service is not WS-I compliant (Reason: Style is not DOCUMENT/LITERAL).

This is the code of my .wsdd file:
http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

 




xmlns:ns="urn:servicios"
qname="ns:PruebaGPSException"
type="java:servicios.PruebaGPSException"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/> 
  
http://www.w3.org/2001/XMLSchema" >
http://www.w3.org/2001/XMLSchema"/>
http://www.w3.org/2001/XMLSchema"/>



 
Could anybody help me with this error??
 
 
Thanks a lot. Kemmotar