Re: [Axis2][AXIOM] Axiom 1.2.3 RC1 released

2007-04-02 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Deepal Jayasinghe wrote:
> Hi all,
> 
> I uploaded Axis2 1.2.3 RC1 release artifacts. 

Did you mean to say *AXIOM* 1.2.3 release ;)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGEewojON2uBzUhh8RAuz5AJ43sP0PTTOIHqZd1F5FEKM4WI5VcwCgsPJn
tvnSmrFw0Xjynq4ZP1QI0T8=
=lz/1
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: soap header in stub

2007-04-02 Thread Evanthika Amarasiri

Hi Kang,

   You can call the method 
*response.getBuilder().getDocumentElement() *to retrieve the entire soap 
envelope and this will contain the soap headers of the response.




   ServiceClient client = new ServiceClient();
   Options opts = new Options();
   opts.setTo(new 
EndpointReference("http://localhost:8080/axis2/services/Adding";));

   opts.setAction("urn:addition"); //Replace this with your own action
   client.setOptions(opts);
   client.engageModule(qname);
   OMElement res = client.sendReceive(createPayLoad());
   System.out.println(res.getBuilder().getDocumentElement());  
//Prints the entire soap response




So you will get the entire soap envelope as below along with the soap 
headers.




http://www.w3.org/2005/08/addressing"; 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>

   
   urn:adding
   
urn:uuid:6F297A15C5BEC876271175572342300

   
   
   http://add.math.com/xsd";>
   10
   
   


I hope this solves your problem.


Thanks,
Evanthika

Kang, Kamaljeet K. wrote:

Hi,

I am trying to retrieve soap header of the response from stub using
serviceClient.getLastOperationContext() but OperationContext is always
null. 


Is this the right way to retrieve soap header in stub?

Thanks

Kamal

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  




Re: Axis2: soap/jms question

2007-04-02 Thread Asankha C. Perera




Shantanu

Thanks for pointing out this issue, I was able to recreate the issue
with JBoss and have checked in the fix to both the trunk and the 1.2
branch.

asankha

Asankha C. Perera wrote:

  
Shantanu
  
I am stuck with some JBoss problems.. I have downloaded and installed
jboss-4.0.5.GA but am unable to locate the client JAR files that should
be placed on Axis2 lib folder, the initial context class name, and url
I should use etc. I am trying this out with a standalone Axis2
installation.. Could you let me know?
  
asankha
  
Shantanu Sen wrote:
  


I did not write a program, but using Hermes JMS browser I can
see the queue as shown in the attached gif.

I think it is provider specific. Previously, the traces said that the
listener is binding to QUEUE.requestQ, while now it is looking at the
queue as QUEUE.queue/requestQ. I think jboss expects all queue jndi
names start with queue/ and somehow in the previous code it was getting
just the requestQ part and not it gets queue/requestQ and is getting
confused (I am guessing here though).

You might try with jboss and see if this is really an issue. 

Here is the jboss configuration file that needs to be dropped in the
jms deploy directory e.g. jboss-4.0.5.GA\server\default\deploy\jms that
will generate the queue. 
requestq-ds.xml-


    
     name="jboss.mq.destination:service=Queue,name=requestQ">
    jboss.mq:service=DestinationManager
    



I did not change any of these settings and it was working fine with the
previous snapshot. I'll try to dig into it further.

Shantanu

-
Original Message 
From: Asankha C. Perera <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, March 30, 2007 1:53:33 PM
Subject: Re: Axis2: soap/jms question

Shantanu

Yes, I have done some modifications.. but I do not see how it affects
you configuration here. Your services.xml states "queue/requestQ" as
the JNDI name:
queue/requestQ

and the log states:
>12:04:31,626 WARN  [JMSConnectionFactory] JMS Destination with JNDI
name : queue/requestQ does not exist

Can you write a small standalone JNDI lookup program to see if
"queue/requestQ" is the correct JNDI name for your Queue and it
is available? Or could it be the (provider specific) JMS Destination
name instead of the JNDI name? If you are able to do the lookup - then
its a bug within my changes and I would like to receive as much
information on your configuration / setup to reproduce and identify the
issue.

asankha

Shantanu Sen wrote:

  
  
Asankha,
  
Sorry my previous mail was not complete.
  
After I pulled in code from the trunk today, the
previous project with jms binding is not working. I think it has to do
with the naming of the queue - I am running on JBOSS 4.0.5.
  
Here is the relevant part of service.xml:
   queue/requestQ
    ConnectionFactory
  
This was working fine with the last build that I had (last Monday I
think). But with the current build, I see this error on the JBOSS
console when it starts up. If I remember correctly, previously it was
searching for the destination as QUEUE.requestQ, but now it is
QUEUE.queue/requestQ as shown below. Did you make any changes in the
way the queue jndi name is being used?
  
12:04:31,626 WARN  [JMSConnectionFactory] JMS Destination with JNDI
name : queue
/requestQ does not exist
12:04:31,907 ERROR [JMSConnectionFactory] Unable to create a
Destination with JN
DI name : queue/requestQ
javax.jms.JMSException: This destination does not exist
!QUEUE.queue/requestQ
    at
org.jboss.mq.server.JMSDestinationManager.createQueue(JMSDestinationM
anager.java:613)
    at
org.jboss.mq.server.JMSServerInterceptorSupport.createQueue(JMSServer
InterceptorSupport.java:111)
    at
org.jboss.mq.server.TracingInterceptor.createQueue(TracingInterceptor
.java:259)
    at
org.jboss.mq.server.JMSServerInvoker.createQueue(JMSServerInvoker.jav
a:117)
    at
org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocke
tManagerHandler.java:136)
    at
org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.j
ava:395)
    at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
    at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
  
  
Please let me know if need more info on this.
  
Shantanu
  -
Original Message 
From: Asankha C. Perera <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Thursday, March 29, 2007 11:04:41 AM
Subject: Re: Axis2: soap/jms question
  
Hi Shantanu
  

I
pulled the code from the trunk yesterday and now jms binding is working
fine on jboss. Thanks for the fix.


  
Cool! Sorry for the delay in responding to this, as I was actually
fixing the below mentioned issue lately
  

1.
Is there a way to specify the temporary queue jndi name for block

Re: soap header in stub

2007-04-02 Thread Charitha Kankanamge

Hi Kang,
AFAIK you won't be able to retrieve SOAP headers using serviceClient. 
Because, with service clients you can only access SOAP body or the pay 
load. Though you can add SOAP headers, you do not have a way to retrieve 
SOAP header from service client.
Have a look at 
http://www-128.ibm.com/developerworks/webservices/library/ws-soa-axis2-1/ 
for more information on this.


You can use operationClient to retrieve the SOAP headers.
See http://wso2.org/library/290

Also, the same topic was discussed in the following url.

http://marc.info/?l=axis-user&m=116492371225455&w=2

regards
Charitha


Kang, Kamaljeet K. wrote:


Hi,

I am trying to retrieve soap header of the response from stub using
serviceClient.getLastOperationContext() but OperationContext is always
null. 


Is this the right way to retrieve soap header in stub?

Thanks

Kamal

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis2 : Savan vs. Muse for WS-Notification

2007-04-02 Thread Chamikara Jayalath

Hi Gulm

We moved Savan out of the Axis2 codebase and it will not be shipped as a
part of Axis2. We hope to do a separate release of Savan, but the exact time
frames have not been decided yet.

Chamikara


On 4/2/07, Gul Onural <[EMAIL PROTECTED]> wrote:


 Thanks Chamikara. Do you know when Savan will be distributed as part of
Axis2 module ?

 --
*From:* Chamikara Jayalath [mailto:[EMAIL PROTECTED]
*Sent:* Monday, April 02, 2007 3:54 AM
*To:* axis-user@ws.apache.org
*Subject:* Re: Axis2 : Savan vs. Muse for WS-Notification

Hi Gul,

Here is the corret SVN URL for Savan.
https://svn.apache.org/repos/asf/webservices/savan/trunk/java/

The new home page is http://ws.apache.org/savan/ (but this is not fully
complete yet).

Chamikara



On 4/2/07, Gul Onural <[EMAIL PROTECTED]> wrote:
>
>
> Looks like both Savan and Muse are the implementation of
> WS-Notification/Eventing.
>
> None of these two is listed under Axis2 modules 
(*http://ws.apache.org/axis2/modules/index.html
> * ).
>
> I was wondering :
>
> 1.) Are they (Savan and Muse) active projects ?
> 2.) Is there any plans to integrate any of them to Axis2 as module ?
> 3.) Are their functionality equivalent ? (the version of the
> WS-Notification spec. they implement, etc)
> 4.) Is there anyone using either of them with Axis2 ?
>
> The only information I was able to find about Savan is at  *
> http://wso2.org/projects/savan/java*,
> however
> link to the Savan source code repository in that page is broken.
>
> And *http://www.apachenews.org/archives/000932.html 
*says;
> "***Modules supporting WS-Eventing (Apache Savan) *
> *& WS-Transactions (Apache Kandula2) will be available soon after the
> Apache Axis2 1.1.1 release*.".
> But I haven't seen any recent news on Savan in Axis2 web site, yet.
>
> I would greatly appreciate any information on this subject.
>
> Gul
>







--
Chamikara Jayalath
WSO2 Inc.
http://wso2.com/
http://wso2.org/ - For your Oxygen needs


Addressing module puts WS-Addressing elements after SOAP body

2007-04-02 Thread Steven E. Harris
I'm using AXIS2 to write a client, and I figured out how to engage the
addressing module. Testing reveals some odd behavior.

With addressing engaged, AXIS2 emits a SOAP request with this
structure:

http://www.w3.org/2005/08/addressing";
  xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
  
  
...
  
  
...
...
...
  



Notice the extra Header /after/ the Body? Surely that can't be
right. Has anyone else noticed this behavior?

-- 
Steven E. Harris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axix2] java.lang.RuntimeException: Unexpected subelement value

2007-04-02 Thread Ted Jones
Thanks for the feedback Anne. It is much appreciated. I'm using the ADB. I'll 
log a JIRA on it and switch to a schema first approach. 

Thanks again,
Ted

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Mon 4/2/2007 7:01 PM
To: axis-user@ws.apache.org
Subject: Re: [Axix2] java.lang.RuntimeException: Unexpected subelement value
 
But why is Axis2 putting the "value" element in the xsd namespace.
Your schema specifies that it should be in the
"http://helper.mywebservice.soap.widget.com/xsd"; namespace. Which
databinding are you using? Can you give us more information on how the
message is being generated? You might want to file a JIRA on this one.

Meanwhile, if you can avoid it, you should not use an element of type
"xs:anyType" in your schema. Your first mistake was in letting Axis2
generate your schema. (it's a common mistake, though). When designing
interoperable web services, you should define your schema first, then
map the schema to your code.

But let's assume for the moment that you avoid my advice and continue
down the treacherous code-first development approach...

If you have an interface that includes an undefined Object, Axis2 has
no way of deciphering the expected type, so it defines it as
xs:anyType. You should do your best to define the structures that you
plan to expose through the interface. As a general rule, never expose
Java Collections. Only expose simple types, beans, and arrays. As long
as you follow these basic rules, things typically work reasonably
well.

Anne

On 4/2/07, Ted Jones <[EMAIL PROTECTED]> wrote:
> Further analysis of the soap response leads me to believe the array of
> cells may be the culprit here. Here is a snippet from the response that
> shows an array of cells:
>
> http://helper.mywebservice.soap.widget.com/xsd";>
> 
> http://www.w3.org/2001/XMLSchema";>value1
> 
> 
> http://www.w3.org/2001/XMLSchema";>value2
> 
> 
> http://www.w3.org/2001/XMLSchema";>value3
> 
>  xmlns:xs="http://www.w3.org/2001/XMLSchema";>value4
> 
>
> The elements "rows" and "cells" share the same namespace and the stub
> handles them just fine. The "value" element uses the XMLSchema namespace
> though and the stub bombs out since it is expecting the parent namespace
> from the "rows" element. This seems like a valid schema though so that
> would place the error in the generated stub code. Right?
>
> Thanks,
> Ted
>
> -Original Message-
> From: Ted Jones [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 02, 2007 3:05 PM
> To: axis-user@ws.apache.org
> Subject: RE: [Axix2] java.lang.RuntimeException: Unexpected subelement
> value
>
> More info...
>
> The cell element is returned as part of an array. Not sure if this makes
> any difference or not.
>
> Thanks,
> Ted
>
> -Original Message-
> From: Ted Jones [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 31, 2007 11:56 AM
> To: axis-user@ws.apache.org
> Subject: RE: [Axix2] java.lang.RuntimeException: Unexpected subelement
> value
>
> That is how Axis2 generated the schema in my wsdl. I have a POJO (Cell)
> which has a field (Value) of type Object. Here is the schema generated
> by Axis2 that seems to be causing the issue:
>
>  
>  
>  
>
> This cell element is used in the response and the stub tries to compare
> it's namespace (http://helper.mywebservice.soap.widget.com/xsd) to
> create a QName to compare to the "value" element which uses the
> "http://www.w3.org/2001/XMLSchema"; namespace and causes the "Unexpected
> subelement value" exception.
>
> Here is my POJO:
>
> public class Cell {
>
> protected java.lang.Object value;
>
> public java.lang.Object getValue() {
> return value;
> }
>
> public void setValue(java.lang.Object value) {
> this.value = value;
> }
> }
>
> I have also attached my full wsdl.
>
> Thanks for your help,
> Ted
>
> -Original Message-
> From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 31, 2007 10:27 AM
> To: axis-user@ws.apache.org
> Subject: Re: [Axix2] java.lang.RuntimeException: Unexpected subelement
> value
>
> Why do you have an element in your message in the
> "http://www.w3.org/2001/XMLSchema"; namespace? Does your message include
> a schema? If so, have you defined a  element as an element
> within your message structure? Or did you perhaps specify
> "http://www.w3.org/2001/XMLSchema"; as the targetNamespace for your
> schema?
>
> An example would help us identify the problem.
>
> Anne
>
> On 3/30/07, Ted Jones <[EMAIL PROTECTED]> wrote:
> >
> >
> > Thanks for your response Amila. The SOAP response looks correct when
> > validating against the wsdl. The issue seems to be in the generated
> > stub code when a check is done comparing the QName of the element. The
>
> > WSDL targetnamespace http://helper.webservice.soap.test.com/xsd
> > is used to compare against an element that has
> > http://www.w3.org/2001/XMLSchema as it's namespace so they don't match
>
> >

Re: Axis2 wsdl2java : Overriding the existing generated files

2007-04-02 Thread Glen Mazza
If you use Axis' wsdl2java Ant task, you can trivially add a dependency
target that will first delete[1] the output directory prior to running
the wsdl2java task.

I recently blogged a simple ant task--its after step #4 here (but
without the delete task):
http://www.jroller.com/page/gmazza?entry=my_first_web_service

Glen

[1] http://ant.apache.org/manual/CoreTasks/delete.html


Am Montag, den 02.04.2007, 16:28 -0400 schrieb Gul Onural:
> 
> Is there any way to force the wsdl2java to override generated files
> even if they are already exists ?
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does axis2 supports JAX-RPC? If NOT "why?"

2007-04-02 Thread Anne Thomas Manes

JAX-RPC has been superseded by JAX-WS. The Axis2 team is currently
implementing support for JAX-WS. There are no plans to implement
JAX-RPC in Axis2.

Anne

On 3/23/07, Vikas <[EMAIL PROTECTED]> wrote:



Hi Friends,

In Apache axis 1, JAX-RPC was supported, but in latest version of axis i.e
Apache axis2 it is not supported.

What is the reason behind that?
OR does other technology replaces JAX-RPC? means does axis2 using something
other instead of JAX-RPC?

With best regards

From
Vikas R. Khengare



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [axis2] Two similar WSDL, one codebase?

2007-04-02 Thread Davanum Srinivas

One more way is to have 2 jars one for 2003 and one for 2007 and
dynamically load which ever you need using URLClassLoader, basically
use a Factory pattern with some intermediate classes and/or java
reflection.

-- dims

On 4/2/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

You could design a DII style client that uses a dynamic proxy to
invoke the services. Or you could use two different stubs.

On 4/2/07, Jake Goulding <[EMAIL PROTECTED]> wrote:
> I am trying to access both Sharepoint 2003 and Sharepoint 2007 using the
> same driver code. However, the WSDL changed for things like required
> parameters, but nothing that is exposed to me changed. If I remove the
> jar I generate for 2003 and replace it with the one for 2007, I can
> access 2007. Now I just need a simple way of being able to do that in my
> code, at run-time. Any suggestions would be appreciated!
>
> (For those keeping count, this is the 3rd time I've asked for help...
> hopefully someone can either tell me it cannot be done, or how to do it!)
>
> Thanks!
>
> -Jake
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [axis2] Two similar WSDL, one codebase?

2007-04-02 Thread Anne Thomas Manes

You could design a DII style client that uses a dynamic proxy to
invoke the services. Or you could use two different stubs.

On 4/2/07, Jake Goulding <[EMAIL PROTECTED]> wrote:

I am trying to access both Sharepoint 2003 and Sharepoint 2007 using the
same driver code. However, the WSDL changed for things like required
parameters, but nothing that is exposed to me changed. If I remove the
jar I generate for 2003 and replace it with the one for 2007, I can
access 2007. Now I just need a simple way of being able to do that in my
code, at run-time. Any suggestions would be appreciated!

(For those keeping count, this is the 3rd time I've asked for help...
hopefully someone can either tell me it cannot be done, or how to do it!)

Thanks!

-Jake

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wsdl message with no parts

2007-04-02 Thread Anne Thomas Manes

.NET can consume an unwrapped doc/literal service, but it's less
convenient for the .NET developer. As a general rule, I recommend that
you always follow the wrapped convention.

I'm having trouble understanding where the BP 1.1 validator is
failing. Could you show us the WSDL (or a similar representation)
that's failing?

When using doc/literal, your messages may contain at most one body
part (which becomes a child of the  in the SOAP message). A
"part accessor element" refers to the child of the . (In
RPC style, the "part accessor elements" refer to children of the
auto-generated wrapper element that has the same local name as the
operation.) I believe the error is referring to the SOAP message, not
to the WSDL.

Anne

On 4/1/07, Rishi krish <[EMAIL PROTECTED]> wrote:

Hi Anne
Thanks again for your clarification on .Net requirements. You said doc-Lit
wrapped is the default format generated by .Net. Do you imply that if my
axis service is not conforming to doc-lit wrapped format .Net cannot
communicate to it? OR .Net can be configured to communicate with a service
which is just doc-lit and not wrapped?
I had downloaded the c# based BP 1.1 validator from WS-I site [I am hoping
that this is representative of .Net platform] and have been trying tests
with it. It fails me on BP1212 which implements R2212 which requires:

An ENVELOPE MUST contain exactly one part accessor element for each of the
wsdl:part elements bound to the envelope's corresponding soapbind:body
element.

My wsdl soapbind:body  does not have any part attribute defined - and thats
perfectly valid [as per R2210] as I have only one part defined in the
wsdl:message definition. The java BP 1.1 tool says "notApplicable". Is this
a bug with the c# BP 1.1 tool or this is a .Net requirement that the wsdl
soapbind:body  element has to have the part attribute defined.

thanks
Rishi



On 4/1/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> If you have an empty message, then you aren't following the wrapped
> convention. The wrapped convention requires that the input message
> contain an element whose local name is the same as the operation, and
> the output message contain an element whose local name is the
> operation appended with "Response". (Essentially it literally follows
> the RPC convention so that programming frameworks can support an
> RPC-style programming model, yet still implement a doc/literal
> message.)
>
> For your example, to use wrapped doc/literal, you should define the
> response message as:
>
> 
>
> The wrapped convention was established by .NET. It is the default
> format generated by .NET. The Java community responded in order to
> interoperate more effectively with .NET. The JAX-RPC spec is the only
> formal specification that defines the wrapped convention.
>
> You are under no obligation to support the wrapped convention, but if
> you want to enable interoperability with .NET, you'll find things go
> much more easily if you follow it.
>
> Note that WS-I BP does require that all input messages have a unique
> signature. If you have more than one operations that accept no input,
> you must disambiguate the request messages some way. I always
> recommend following the wrapped convention just because it makes
> things easier.
>
> Anne
>
> On 4/1/07, Rishi krish <[EMAIL PROTECTED]> wrote:
> > Hi Anne
> > thanks for the clarification. I am wondering if what you said for RPC
type
> > is also valid for the wrapped doc-lit type too [which kind of similar to
rpc
> > literal type and which is followed by .Net]. I mean if a pojo service
method
> > signature reads --
> >
> > public void test(String s)
> >
> > The response wsdl message will have a part element like ---
> >
> > 
> > 
> > 
> >
> > I am generating the service wsdl on my own and am integrating to .Net
> > paltform [.Net is the client]. Since .Net seems to be following the
wrapped
> > doc-lit style do you think I should generate the wsdl response message
with
> > a non-empty part as shown above [even though the pojo method has void
return
> > type]
> >
> > This will imply that for a request response kind of web service we
allways
> > need to have a response message with one part element to be compliant
with
> > .Net? That seems little to harsh for me as I didnt find any such
requirement
> > in BP 1.1 OR this is something that is introduced just because of .Net?
> >
> > thanks
> > Rishi
> > On 3/31/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> > >
> > > It depends on the style.
> > >
> > > If you are using document style, an empty message declaration with no
> > > parts (either input or output) will generate an empty SOAP body.
> > >
> > > If you are using rpc style, an empty input message declaration will
> > > generate a SOAP body containing an element that has a local name equal
> > > to the operation name in the namespace specified in the 
> > > declaration in the binding. An empty output message declaration will
> > > generate a SOAP body containing an element 

Re: [Axis2] Generated Stud does not contact Parameters & Return type

2007-04-02 Thread Anne Thomas Manes

It would help to see your message and types descriptions, also.

Note that when using document style, the SOAP message may contain at
most one body part. If your method has multiple parameters, you must
define a wrapping element that contains the parameters and then use
the -uw option to enable automatic wrapping and unwrapping of your
parameters.

Anne

On 4/2/07, elango maragatham <[EMAIL PROTECTED]> wrote:

Hi
  I am a new user of axis2. I am using axis2 (WSDL2java) to
generate stub from a WSDL using default ADB binding. When I look into
the generated Stub the method signature is void and without any
parameters even though I have defined 2 parameters in the wsdl.


  
  
  
  
  
  
  















  Regards
  Elango


 
 Here's a new way to find what you're looking for - Yahoo! Answers




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Specify JAXB generated complex types to Axis web service

2007-04-02 Thread Anne Thomas Manes

jaxbri is the Sun JAXB reference implementation.
jaxme is the Apache JAXB implementation.

On 4/2/07, Masin, Valerie <[EMAIL PROTECTED]> wrote:

Can you tell me which of these bindings in Axis2 is JAXB? Thanks

C:\>%AXIS2_HOME%/bin/wsdl2java
...
 -d  Valid databinding(s) are adb, xmlbeans, jibx,
jaxme and jaxbri (Default: adb).

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Monday, April 02, 2007 9:18 AM
To: axis-user@ws.apache.org
Subject: Re: Specify JAXB generated complex types to Axis web service

1- I recommend you use Axis2 rather than Axis. It supports plug-in
databindings, including JAXB (also the Axis2 databinding [ADB],
XMLBeans, and JiBX)
2- If you insist on using Axis, then you might consider using the Axis
databinding rather than JAXB.
3- If you insist on using Axis and the JAXB databinding, then you need
to use the Messaging API (provider="java:MSG").
4- In all cases, don't use SOAP encoding.

Anne

On 4/2/07, Tim Scofield <[EMAIL PROTECTED]> wrote:
> Hi,
>I have a stack of newbie questions and would greatly appreciate
> answers from anyone. How do I specify to Axis that complex types
> generated using JAXB2.0 need to be serialized/deserialized using the
> JAXB data binding? I am trying to deploy a JAX-RPC style webservice
onto Axis 1.4 on JBoss 4.0.4.
> JRE is 1.5.0_06.
>
> I have done the following so far:
>
> 1. Created a XSD and then generated the complex types using JAXB2.0.
> 2. Compiled the complex types.
> 3. Created a Service endpoint which uses the complex types for both
> input and output parameters.
> 4. Compiled the service (with JAXB jars in the classpath) 5. Created
> the following WSDD:
>
> http://xml.apache.org/axis/wsdd/ "
>
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
> ">
>
>  
>
>   
> languageSpecificType="java:generated.PartyType"
> serializer="java:generated.ObjectFactory"
>  deserializer="java:generated.ObjectFactory"
> encodingStyle="
> http://schemas.xmlsoap.org/soap/encoding/"/>
>languageSpecificType="java:generated.AddressType"
> serializer="java: generated.ObjectFactory"
> deserializer="java:generated.ObjectFactory"
>
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
>languageSpecificType="java:generated.PhoneType"
> serializer="java: generated.ObjectFactory"
> deserializer="java:generated.ObjectFactory"
>
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
>  
>
> 
>
> 6. Ran JBOSS and then deployed the service using AdminClient.
>
> This resulted in the following exception:
>
> 00:16:15,265 ERROR [WSDDDeployableItem] Unable to deploy typemapping:
> {urn:MathUtil}PartyType
>  java.lang.ClassNotFoundException:
> java:generated.ObjectFactory
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1352)
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1198)
>  at
> org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
>
> Questions:
>
> 1. What is the correct Serializer/Deserializer that needs to be
> specified in the WSDD? I guess ObjectFactory is not the correct class.
> 2. The class generated.ObjectFactory is present in the
> WEB-INF/classes/ directory in axis.war. Is this related to ClassLoader

> issues in JBOSS? Does it have any bearing on specifying the JAXB
mapping?
> 3. Is it necessary to specify the JAXB binding to the generated WSDL?
> If so what parameters need to be passed to specify the binding? I
> checked the reference and saw a "-b" option for Java2WSDL but could
> not figure out the exact usage.
> 4. Is it necessary to include the original XSD in the .war file? If
> yes, where?
> 5. When I invoke this service, how do I create the complex datatypes
> on the client side and correctly pass them? Currently I get a nice
> stacktrace on the client side saying that there is no registered
serializer/deserializer.
> This occured both before and after I included the s in
> the WSDD.
>
> Whew, thats lots of questions... but I wasted my entire weekend trying

> to get this stuff running!!! Appreciate all readers'/responders'
patience ...
> thanks a ton in advance!!!
>
> Cheers all,
> Tim
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Returning Collection (List) objects from web services

2007-04-02 Thread Anne Thomas Manes

Return an array instead.

On 4/2/07, Sreenath Nampally <[EMAIL PROTECTED]> wrote:

I am a newbie to WebServices and I am trying to figure out how to return
a List object
from a WebService.

Could someone help me out ? Any code samples would be helpful.

thanks
Sree


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to migrate from Axis1.3 to Axis 2 without a WSDL and client change?

2007-04-02 Thread Anne Thomas Manes

How are you building the new Axis2 service?
You should be able to generate it from the WSDL and use the original WSDL.

Anne

On 4/2/07, Shaoguang Cong <[EMAIL PROTECTED]> wrote:

Ideally we don't need to modify the WSDL or the client while migrating to
AXIS 2.  But I found that seems inevitable.  Hope someone can verify this is
indeed true.  And I have to tell my .NET client for the change.

In server-config.wsdd of Axis 1.3, the  tag has a name attribute
that is using the WSDL port name ("MyServicePort" as in ).

In services.xml of AXIS 2,  the  tag has a name attribute that is
using the WSDL service name ("MyService" as in ).

So an Axis 1.3 client will have the endpoint address specified with the port
name ("MyServicePort").  This won't work for invoking the same service (same
WSDL)  implemented with an AXIS 2.

Is this imcompatible feature just a little negligence or an improvement over
1.3?  I do like the AXIS 2 approach (using WSDL:service name), though it's a
bit headache for the migration effort.

Thanks.
Shaoguang





 
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] XMLBeans not generating default values

2007-04-02 Thread Anne Thomas Manes

You can use Castor with JiBX databinding.

On 4/2/07, Masin, Valerie <[EMAIL PROTECTED]> wrote:



Hello,

I don't pretend to know a thing about xmlbeans but I was thinking I might
use them as my databinding when I discovered that adb doesn't handle default
values in the schema, and the castor databinding isn't available in axis2.
However, when I generate the code from wsdl2java using xmlbeans I don't see
my default values show up in any of the generated files.

Is this a bug or is it because I don't understand xmlbeans and the defaults
come about through some other mechanism?

Here is an example of my schema:

 
   
   
 

Thanks, Valerie


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting client stub to use SOAP version 1.2

2007-04-02 Thread Anne Thomas Manes

Support for WSDL 2.0 is still experimental.
Note that the WSDL 2.0 spec is still not final and is subject to
change. You should not use WSDL 2.0 in production applications.

Anne

On 4/2/07, Steven E. Harris <[EMAIL PROTECTED]> wrote:

My WSDL file fed to wsdl2java contains bindings to SOAP 1.2 over HTTP:

   http://www.w3.org/2006/01/wsdl/soap";
wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP";>
  http://www.w3.org/2003/05/soap/mep/request-response"/>
  
   


Note the wsoap:protocol value. According to the W3C WSDL Primer
section 2.5.5¹, that protocol designates SOAP 1.2.

In my generated client stub class, there's a call that looks like
this:

,
| env = 
toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
`

Options.getSoapVersionURI() always returns

  http://schemas.xmlsoap.org/soap/envelope/

which is SOAP 1.1.

Shouldn't my WSDL bindings cause the stub to request SOAP 1.2 by
default? Is there some switch I have to set to enable this behavior?


Footnotes:
¹ http://www.w3.org/TR/2006/CR-wsdl20-primer-20060327/#more-bindings-soap

--
Steven E. Harris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: GetABCResponse with Two Direct Children

2007-04-02 Thread Anne Thomas Manes

The auto-unwrapping feature requires the double wrapping. That's a
requirement of the undocumented "wrapped document/literal" convention.
If you don't want the response message to be double wrapped, then
don't specify -uw.

(Note that if you want to support easy interoperability with .NET, you
must use this double wrapping.)

Anne

On 4/2/07, Bill Treuman <[EMAIL PROTECTED]> wrote:

We are currently testing Axis2 with JiBX.  One of our web service method
calls expects two direct children, as follows:

  

  


  

  

This response is certainly WS-I compliant.  Our objective in this case is to
obtain a Soap message in which the TypeAObject element and the TypeBObject
element are direct children of the getABCResponse element.

It would be much more common in all Axis2 and JiBX examples to see something
like the following doubly-wrapped method, which is also WS-I compliant:

  

  

  

  

The ABCReturn element would then contain the TypeAObject and the
TypeBObject.  In the Soap message, there would be an intermediate-level xml
element representing the ABCReturn.

When we run WSDL2Java with the –uw switch with the former method call,
WSDL2Java throws the following Exception:

[java] Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException
: Cannot unwrap element
{http://ws.sosnoski.com/library/wsdl}findVehicleResponse: only one child
element allowed in sequence for wrapped output

Is there a way to produce the type of Soap message described above, without
any intermediate-level wrapping element?  If not, is the need for the
intervening element some type of standard, or is it something which Axis2 or
JiBX requires?

Thanks very much.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting client stub to use SOAP version 1.2

2007-04-02 Thread Steven E. Harris
My WSDL file fed to wsdl2java contains bindings to SOAP 1.2 over HTTP:

   http://www.w3.org/2006/01/wsdl/soap";
wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP";>
  http://www.w3.org/2003/05/soap/mep/request-response"/>
  
   


Note the wsoap:protocol value. According to the W3C WSDL Primer
section 2.5.5¹, that protocol designates SOAP 1.2.

In my generated client stub class, there's a call that looks like
this:

,
| env = 
toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
`

Options.getSoapVersionURI() always returns

  http://schemas.xmlsoap.org/soap/envelope/

which is SOAP 1.1.

Shouldn't my WSDL bindings cause the stub to request SOAP 1.2 by
default? Is there some switch I have to set to enable this behavior?


Footnotes: 
¹ http://www.w3.org/TR/2006/CR-wsdl20-primer-20060327/#more-bindings-soap

-- 
Steven E. Harris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axix2] java.lang.RuntimeException: Unexpected subelement value

2007-04-02 Thread Anne Thomas Manes

But why is Axis2 putting the "value" element in the xsd namespace.
Your schema specifies that it should be in the
"http://helper.mywebservice.soap.widget.com/xsd"; namespace. Which
databinding are you using? Can you give us more information on how the
message is being generated? You might want to file a JIRA on this one.

Meanwhile, if you can avoid it, you should not use an element of type
"xs:anyType" in your schema. Your first mistake was in letting Axis2
generate your schema. (it's a common mistake, though). When designing
interoperable web services, you should define your schema first, then
map the schema to your code.

But let's assume for the moment that you avoid my advice and continue
down the treacherous code-first development approach...

If you have an interface that includes an undefined Object, Axis2 has
no way of deciphering the expected type, so it defines it as
xs:anyType. You should do your best to define the structures that you
plan to expose through the interface. As a general rule, never expose
Java Collections. Only expose simple types, beans, and arrays. As long
as you follow these basic rules, things typically work reasonably
well.

Anne

On 4/2/07, Ted Jones <[EMAIL PROTECTED]> wrote:

Further analysis of the soap response leads me to believe the array of
cells may be the culprit here. Here is a snippet from the response that
shows an array of cells:

http://helper.mywebservice.soap.widget.com/xsd";>

http://www.w3.org/2001/XMLSchema";>value1


http://www.w3.org/2001/XMLSchema";>value2


http://www.w3.org/2001/XMLSchema";>value3

http://www.w3.org/2001/XMLSchema";>value4


The elements "rows" and "cells" share the same namespace and the stub
handles them just fine. The "value" element uses the XMLSchema namespace
though and the stub bombs out since it is expecting the parent namespace
from the "rows" element. This seems like a valid schema though so that
would place the error in the generated stub code. Right?

Thanks,
Ted

-Original Message-
From: Ted Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, April 02, 2007 3:05 PM
To: axis-user@ws.apache.org
Subject: RE: [Axix2] java.lang.RuntimeException: Unexpected subelement
value

More info...

The cell element is returned as part of an array. Not sure if this makes
any difference or not.

Thanks,
Ted

-Original Message-
From: Ted Jones [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 31, 2007 11:56 AM
To: axis-user@ws.apache.org
Subject: RE: [Axix2] java.lang.RuntimeException: Unexpected subelement
value

That is how Axis2 generated the schema in my wsdl. I have a POJO (Cell)
which has a field (Value) of type Object. Here is the schema generated
by Axis2 that seems to be causing the issue:

 
 
 

This cell element is used in the response and the stub tries to compare
it's namespace (http://helper.mywebservice.soap.widget.com/xsd) to
create a QName to compare to the "value" element which uses the
"http://www.w3.org/2001/XMLSchema"; namespace and causes the "Unexpected
subelement value" exception.

Here is my POJO:

public class Cell {

protected java.lang.Object value;

public java.lang.Object getValue() {
return value;
}

public void setValue(java.lang.Object value) {
this.value = value;
}
}

I have also attached my full wsdl.

Thanks for your help,
Ted

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 31, 2007 10:27 AM
To: axis-user@ws.apache.org
Subject: Re: [Axix2] java.lang.RuntimeException: Unexpected subelement
value

Why do you have an element in your message in the
"http://www.w3.org/2001/XMLSchema"; namespace? Does your message include
a schema? If so, have you defined a  element as an element
within your message structure? Or did you perhaps specify
"http://www.w3.org/2001/XMLSchema"; as the targetNamespace for your
schema?

An example would help us identify the problem.

Anne

On 3/30/07, Ted Jones <[EMAIL PROTECTED]> wrote:
>
>
> Thanks for your response Amila. The SOAP response looks correct when
> validating against the wsdl. The issue seems to be in the generated
> stub code when a check is done comparing the QName of the element. The

> WSDL targetnamespace http://helper.webservice.soap.test.com/xsd
> is used to compare against an element that has
> http://www.w3.org/2001/XMLSchema as it's namespace so they don't match

> up and consequently the "java.lang.RuntimeException: Unexpected
> subelement value" exception is thrown.
>
> Here is the line I am referring to:
>
> if (reader.isStartElement() && new
>
javax.xml.namespace.QName("http://helper.mywebservice.soap.widget.com/xs
d"
> ,"value").equals(reader.getName())){
>
> Is this a limitation of ADB, an error in the stub generation, an error

> in the wsdl generation, or something I can control in my stub
generation?
>
> Thanks for any insight you can offer.
>
> Ted
>
>  
>  From: Amila Suriarachchi [mail

[axis2] Two similar WSDL, one codebase?

2007-04-02 Thread Jake Goulding
I am trying to access both Sharepoint 2003 and Sharepoint 2007 using the 
same driver code. However, the WSDL changed for things like required 
parameters, but nothing that is exposed to me changed. If I remove the 
jar I generate for 2003 and replace it with the one for 2007, I can 
access 2007. Now I just need a simple way of being able to do that in my 
code, at run-time. Any suggestions would be appreciated!


(For those keeping count, this is the 3rd time I've asked for help... 
hopefully someone can either tell me it cannot be done, or how to do it!)


Thanks!

-Jake

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



soap header in stub

2007-04-02 Thread Kang, Kamaljeet K.

Hi,

I am trying to retrieve soap header of the response from stub using
serviceClient.getLastOperationContext() but OperationContext is always
null. 

Is this the right way to retrieve soap header in stub?

Thanks

Kamal

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axix2] java.lang.RuntimeException: Unexpected subelement value

2007-04-02 Thread Ted Jones
Further analysis of the soap response leads me to believe the array of
cells may be the culprit here. Here is a snippet from the response that
shows an array of cells:

http://helper.mywebservice.soap.widget.com/xsd";>

http://www.w3.org/2001/XMLSchema";>value1


http://www.w3.org/2001/XMLSchema";>value2


http://www.w3.org/2001/XMLSchema";>value3

http://www.w3.org/2001/XMLSchema";>value4


The elements "rows" and "cells" share the same namespace and the stub
handles them just fine. The "value" element uses the XMLSchema namespace
though and the stub bombs out since it is expecting the parent namespace
from the "rows" element. This seems like a valid schema though so that
would place the error in the generated stub code. Right?

Thanks,
Ted

-Original Message-
From: Ted Jones [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 02, 2007 3:05 PM
To: axis-user@ws.apache.org
Subject: RE: [Axix2] java.lang.RuntimeException: Unexpected subelement
value

More info...

The cell element is returned as part of an array. Not sure if this makes
any difference or not.

Thanks,
Ted

-Original Message-
From: Ted Jones [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 31, 2007 11:56 AM
To: axis-user@ws.apache.org
Subject: RE: [Axix2] java.lang.RuntimeException: Unexpected subelement
value

That is how Axis2 generated the schema in my wsdl. I have a POJO (Cell)
which has a field (Value) of type Object. Here is the schema generated
by Axis2 that seems to be causing the issue:

 
 
  

This cell element is used in the response and the stub tries to compare
it's namespace (http://helper.mywebservice.soap.widget.com/xsd) to
create a QName to compare to the "value" element which uses the
"http://www.w3.org/2001/XMLSchema"; namespace and causes the "Unexpected
subelement value" exception.

Here is my POJO:

public class Cell {

protected java.lang.Object value;

public java.lang.Object getValue() {
return value;
}

public void setValue(java.lang.Object value) {
this.value = value;
}
}

I have also attached my full wsdl.

Thanks for your help,
Ted

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 31, 2007 10:27 AM
To: axis-user@ws.apache.org
Subject: Re: [Axix2] java.lang.RuntimeException: Unexpected subelement
value

Why do you have an element in your message in the
"http://www.w3.org/2001/XMLSchema"; namespace? Does your message include
a schema? If so, have you defined a  element as an element
within your message structure? Or did you perhaps specify
"http://www.w3.org/2001/XMLSchema"; as the targetNamespace for your
schema?

An example would help us identify the problem.

Anne

On 3/30/07, Ted Jones <[EMAIL PROTECTED]> wrote:
>
>
> Thanks for your response Amila. The SOAP response looks correct when 
> validating against the wsdl. The issue seems to be in the generated 
> stub code when a check is done comparing the QName of the element. The

> WSDL targetnamespace http://helper.webservice.soap.test.com/xsd
> is used to compare against an element that has 
> http://www.w3.org/2001/XMLSchema as it's namespace so they don't match

> up and consequently the "java.lang.RuntimeException: Unexpected 
> subelement value" exception is thrown.
>
> Here is the line I am referring to:
>
> if (reader.isStartElement() && new
>
javax.xml.namespace.QName("http://helper.mywebservice.soap.widget.com/xs
d"
> ,"value").equals(reader.getName())){
>
> Is this a limitation of ADB, an error in the stub generation, an error

> in the wsdl generation, or something I can control in my stub
generation?
>
> Thanks for any insight you can offer.
>
> Ted
>
>  
>  From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 29, 2007 11:48 PM
> To: axis-user@ws.apache.org
> Subject: Re: [Axix2] java.lang.RuntimeException: Unexpected subelement

> value
>
>
> we have discussed this senario in many times.
>
> First thing you have to do is to check the received soap message using

> the tcp mon.
> then validate the that received response message with the generated 
> wsdl (wsdl you used to generate the code)
>
> Amila.
>
>
> On 3/30/07, Ted Jones <[EMAIL PROTECTED]> wrote:
> >
> >
> > I am receiving the following exception in my ADB generated stub 
> > while
> processing my soap response: java.lang.RuntimeException: Unexpected 
> subelement value
> >
> > The WSDL used to generate my stub is auto generated (Axis2 1.1.1).
> >
> > Any ideas?
> >
> > TIA,
> > Ted
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--

Attachments and additional parameters

2007-04-02 Thread Philippe Frangioni

Hello,

I want to use attachments to send a file to a server, but I also want to 
send an object which contains a description of this file (the file is a 
zip file which contains a course, so for example the object may include 
the title, the number of chapters...). Let's call this class "CourseInfo".
Actually I can send a file using attachments. My web service method has 
a parameter which is an object (a vector) which contains the names of 
the attachments (I followed the Axis wiki).


So what can I do to send also the object describing the course?

- I added a CourseInfo parameter to the method, but the CourseInfo class 
doesn't appear in the WSDL generated by Java2WSDL, so the CourseInfo 
class is not in the files generated by WSDL2Java...


- Or I can add the object in the first parameter (the vector), but the 
CourseInfo class still won't be in the files generated by WSDL2Java...


I don't know how to do...
I don't if using attachments limits the number of parameters to only one...

Thanks,
Hello,

I want to use attachments to send a file to a server, but I also want to 
send an object which contains a description of this file (the file is a 
zip file which contains a course, so for example the object may include 
the title, the number of chapters...). Let's call this class "CourseInfo".
Actually I can send a file using attachments. My web service method has 
a parameter which is an object (a vector) which contains the names of 
the attachments (I followed the Axis wiki).


So what can I do to send also the object describing the course?

- I added a CourseInfo parameter to the method, but the CourseInfo class 
doesn't appear in the WSDL generated by Java2WSDL, so the CourseInfo 
class is not in the files generated by WSDL2Java...


- Or I can add the object in the first parameter (the vector), but the 
CourseInfo class still won't be in the files generated by WSDL2Java...


I don't know how to do...
I don't if using attachments limits the number of parameters to only one...

Thanks,
PhilPhil


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Axis2 wsdl2java : Overriding the existing generated files

2007-04-02 Thread Gul Onural

Is there any way to force the wsdl2java to override generated files even
if they are already exists ?




RE: [Axis2] ClassNotFoundException when executing axis2server.bat on W2K - %AXIS2_CLASS_PATH% cut off ?

2007-04-02 Thread Ted Jones
You could extract all the jars and create a single Axis2.jar. An ANT
script would be the way to go if you chose this route.

Good luck,
Ted 

-Original Message-
From: Heiko Korndorf [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 02, 2007 10:09 AM
To: axis-user@ws.apache.org
Subject: [Axis2] ClassNotFoundException when executing axis2server.bat
on W2K - %AXIS2_CLASS_PATH% cut off ?

Hi,

I have downloaded Axis2 1.1.1 (standard binary distribution) and I can
start the Axis2 Standalone Server (axis2server.bat) without a problem on
my WinXP machine.  When I execute the same procedure on my Win2000
computer, startup of axis2server.bat fails with a
ClassNotFoundException, though.  The reason seems to be that the
%AXIS2_CLASS_PATH% only contains the last 7 jar files in
%AXIS2_HOME%\lib, instead of all of the 43 jar files in the lib folder.

The FOR loop in axis2server.bat which concatenates all the lib/*.jar
files into %AXIS2_HOME% seems to work fine, but I suspect that under
Win2000 there is a length constraint for windows environment variables
which causes the rest of the string to be cut off.

Any hints on how to resolve that issue ?

Thanks & Best regards,
Heiko




 


Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axix2] java.lang.RuntimeException: Unexpected subelement value

2007-04-02 Thread Ted Jones
More info...

The cell element is returned as part of an array. Not sure if this makes
any difference or not.

Thanks,
Ted

-Original Message-
From: Ted Jones [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 31, 2007 11:56 AM
To: axis-user@ws.apache.org
Subject: RE: [Axix2] java.lang.RuntimeException: Unexpected subelement
value

That is how Axis2 generated the schema in my wsdl. I have a POJO (Cell)
which has a field (Value) of type Object. Here is the schema generated
by Axis2 that seems to be causing the issue:

 
 
  

This cell element is used in the response and the stub tries to compare
it's namespace (http://helper.mywebservice.soap.widget.com/xsd) to
create a QName to compare to the "value" element which uses the
"http://www.w3.org/2001/XMLSchema"; namespace and causes the "Unexpected
subelement value" exception.

Here is my POJO:

public class Cell {

protected java.lang.Object value;

public java.lang.Object getValue() {
return value;
}

public void setValue(java.lang.Object value) {
this.value = value;
}
}

I have also attached my full wsdl.

Thanks for your help,
Ted

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 31, 2007 10:27 AM
To: axis-user@ws.apache.org
Subject: Re: [Axix2] java.lang.RuntimeException: Unexpected subelement
value

Why do you have an element in your message in the
"http://www.w3.org/2001/XMLSchema"; namespace? Does your message include
a schema? If so, have you defined a  element as an element
within your message structure? Or did you perhaps specify
"http://www.w3.org/2001/XMLSchema"; as the targetNamespace for your
schema?

An example would help us identify the problem.

Anne

On 3/30/07, Ted Jones <[EMAIL PROTECTED]> wrote:
>
>
> Thanks for your response Amila. The SOAP response looks correct when 
> validating against the wsdl. The issue seems to be in the generated 
> stub code when a check is done comparing the QName of the element. The

> WSDL targetnamespace http://helper.webservice.soap.test.com/xsd
> is used to compare against an element that has 
> http://www.w3.org/2001/XMLSchema as it's namespace so they don't match

> up and consequently the "java.lang.RuntimeException: Unexpected 
> subelement value" exception is thrown.
>
> Here is the line I am referring to:
>
> if (reader.isStartElement() && new
>
javax.xml.namespace.QName("http://helper.mywebservice.soap.widget.com/xs
d"
> ,"value").equals(reader.getName())){
>
> Is this a limitation of ADB, an error in the stub generation, an error

> in the wsdl generation, or something I can control in my stub
generation?
>
> Thanks for any insight you can offer.
>
> Ted
>
>  
>  From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 29, 2007 11:48 PM
> To: axis-user@ws.apache.org
> Subject: Re: [Axix2] java.lang.RuntimeException: Unexpected subelement

> value
>
>
> we have discussed this senario in many times.
>
> First thing you have to do is to check the received soap message using

> the tcp mon.
> then validate the that received response message with the generated 
> wsdl (wsdl you used to generate the code)
>
> Amila.
>
>
> On 3/30/07, Ted Jones <[EMAIL PROTECTED]> wrote:
> >
> >
> > I am receiving the following exception in my ADB generated stub 
> > while
> processing my soap response: java.lang.RuntimeException: Unexpected 
> subelement value
> >
> > The WSDL used to generate my stub is auto generated (Axis2 1.1.1).
> >
> > Any ideas?
> >
> > TIA,
> > Ted
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Axis2 POJO using transportsession not thread safe

2007-04-02 Thread Peter Niemann


There is another email thread on this posted on March 12, 2007 which I 
believe

is the same problem I am seeing.

As soon as there is more than one user, or concurrent useage of the axis2 
engine,
the soap messages for the request/responses are not alligned properly 
causing the system
to become unusable.  Clients receive null for responses when this occurs and 
as

more concurrency is encountered than there is an increase in null responses.

I ran the soap monitor utility and am providing an example of the problem.
The data returned in the response of a request/response pair is correct 
however

the name of the response is not correct.

Example:
A performSearch request returns a loginResponse message.
The data in the loginResponse is correct however the name of the response is
wrong causing the client to receive a null for the response or a failed 
response.


Request
--


xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; 
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xop="http://www.w3.org/2004/08/xop/include"; 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>

 
   urn:performSearch
   
urn:uuid:8838bf27-e989-4c9d-b710-b4c4a57edeba

   
 
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous

   
   http://localhost:8081/axis2/services/BiPlus
   
 wsu:Id="Timestamp-b6e4d86f-25ec-407f-a548-cb2249637d34">

   2007-03-30T22:10:20Z
   2007-03-30T22:15:20Z
 
   
 
 
   xmlns="http://impl.biplusservice.webservices.biplus.hyperion.com/xsd";>

 
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>false
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>false
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>0
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>false
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>false
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>0
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>

 REPORTMART
   
 
   
 



Response
---




http://schemas.xmlsoap.org/soap/envelope/";>
 
 
   xmlns:ns="http://impl.biplusservice.webservices.biplus.hyperion.com/xsd";>

 
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>Contains 
sample data loaded up at install time.
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>false
   xmlns:ax21="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>
 xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>0ad7225c--040a-00efd485b810

   
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>1173992209717
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>Category
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>Sample 
Content
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>0

 
 
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>job 
test
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>false
   xmlns:ax21="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>
 xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>0110c6b2ed5c--0591-ac1b103f

   
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>1171564900257
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>BrioQueryJob
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>Brio 
8.0 Sample 2
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>3

 
 
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>bqy 
3
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>false
   xmlns:ax21="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>
 xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>0110b79cee28--08c0-ac1b103f

   
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>1174936316090
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.com/xsd";>application/x-brioquery
   xmlns="http://info.common.biplusservice.webservices.biplus.hyperion.

Re: [Axis2] Cached jar files cleanup

2007-04-02 Thread Davanum Srinivas

yes, we are trying to fix this for 1.2

-- dims

On 4/2/07, Ryan Nelsestuen <[EMAIL PROTECTED]> wrote:





I recently noticed that Axis appears to deploy some jar files to my
java.io.tmpdir and relies on "deleteOnExit()" for cleanup.  I'm not sure if
other platforms have this problem, but I noticed that with Weblogic/Windows
XP/jdk 5.0, if I kill the server command window with control-C, the files
never get cleaned up, and I found I had 7 GB of axis jars in that directory.
 Just thought I'd pass it along in case others find themselves suspiciously
low on HD space.





Ryan Nelsestuen







--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] Cached jar files cleanup

2007-04-02 Thread Ryan Nelsestuen
I recently noticed that Axis appears to deploy some jar files to my
java.io.tmpdir and relies on "deleteOnExit()" for cleanup.  I'm not sure if
other platforms have this problem, but I noticed that with Weblogic/Windows
XP/jdk 5.0, if I kill the server command window with control-C, the files
never get cleaned up, and I found I had 7 GB of axis jars in that directory.
Just thought I'd pass it along in case others find themselves suspiciously
low on HD space.

 

 

Ryan Nelsestuen



 



Re: [Axis2] Sesion management [soapsession]

2007-04-02 Thread Rajith Attapattu

Here is an example

serviceClient.engageModule(new QName("addressing"));

Rajith

On 4/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


 Rajith,

How to engage addressing for Client? I have engaged the same for Server.

_
Thanks & Regards,
Vinodh


 --
*From:* Rajith Attapattu [mailto:[EMAIL PROTECTED]
*Sent:* Monday, April 02, 2007 9:48 PM
*To:* axis-user@ws.apache.org
*Subject:* Re: [Axis2] Sesion management [soapsession]

Hi Kumar,

Have u enabled addressing?
Axis2 uses WS-Addressing to exchange the service group id to manage the
soap session.
So unless u have addressing engaged in both the client and service u want
have session support.

regards,

Rajith

On 4/2/07, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
>
>  Hi,
>
> I was trying out session management in Axis2 throught the help of doc
> posted in 
developers.com(http://www.developer.com/java/web/article.php/10935_3620661_2).
>
>
> I deployed application in Soap session scope in Service Context.
>
> I made followng changes as suugested in the article
>
> 1. Made change in service.xml to include soapsession.
>
> 2. Have included method init(), destroy() and a method for getting
> ServiceContext in skelton class.
>
> public void init(ServiceContext serviceContext)
> {
>System.out.println("In init() method");
>serviceContext.setProperty("conferenceId" , new
> Integer(1000));
>   }
>
>   public void destroy(ServiceContext serviceContext)
>   {
> System.out.println("In destroy method");
>serviceContext.getProperties().remove("conferenceId");
>   }
>
>
>   private ServiceContext getServiceContext() {
> MessageContext messageContext = MessageContext
>   .getCurrentMessageContext();
> ServiceContext serviceContext = messageContext.getServiceContext
> ();
> return serviceContext;
>}
>
>
>
>
> 3. In the client stub I have added below line for managing the session
>
> stub._getServiceClient().getOptions().setManageSession(true);
>
>
> I used the stub(same instance)  to invoke a functionality multiple
> times. Each time functionality is invoked, init() method is getting called
> (i,e) new instance of service is created for each request with the same
> client instance in soap session.
>
> Are there any more changes required to support soapsession.
>
> Please let me know how to proceed further for acheiving soap session
> scope.
>
>
>
> _
> Thanks & Regards,
> Vinodh
>
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
> www.wipro.com
>


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com



GetABCResponse with Two Direct Children

2007-04-02 Thread Bill Treuman
We are currently testing Axis2 with JiBX.  One of our web service method
calls expects two direct children, as follows:

  

  


  

  

This response is certainly WS-I compliant.  Our objective in this case is to
obtain a Soap message in which the TypeAObject element and the TypeBObject
element are direct children of the getABCResponse element.

It would be much more common in all Axis2 and JiBX examples to see something
like the following doubly-wrapped method, which is also WS-I compliant:

  

  

  

  

The ABCReturn element would then contain the TypeAObject and the
TypeBObject.  In the Soap message, there would be an intermediate-level xml
element representing the ABCReturn.

When we run WSDL2Java with the –uw switch with the former method call,
WSDL2Java throws the following Exception:

[java] Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException
: Cannot unwrap element
{http://ws.sosnoski.com/library/wsdl}findVehicleResponse: only one child
element allowed in sequence for wrapped output

Is there a way to produce the type of Soap message described above, without
any intermediate-level wrapping element?  If not, is the need for the
intervening element some type of standard, or is it something which Axis2 or
JiBX requires?

Thanks very much.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axis2] Sesion management [soapsession]

2007-04-02 Thread kumar.vinodh

Rajith,
 
How to engage addressing for Client? I have engaged the same for Server.
 
_
Thanks & Regards,
Vinodh
 



From: Rajith Attapattu [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 02, 2007 9:48 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Sesion management [soapsession]


Hi Kumar,

Have u enabled addressing?
Axis2 uses WS-Addressing to exchange the service group id to manage the
soap session.
So unless u have addressing engaged in both the client and service u
want have session support. 

regards,

Rajith


On 4/2/07, [EMAIL PROTECTED] < [EMAIL PROTECTED]
 > wrote: 

Hi,
 
I was trying out session management in Axis2 throught the help
of doc posted in developers.com(
http://www.developer.com/java/web/article.php/10935_3620661_2
 ). 
 
I deployed application in Soap session scope in Service Context.
 
I made followng changes as suugested in the article
 
1. Made change in service.xml to include soapsession.
 
2. Have included method init(), destroy() and a method for
getting ServiceContext in skelton class.

public void init(ServiceContext serviceContext) 
{
   System.out.println("In init() method");   
   serviceContext.setProperty("conferenceId" , new
Integer(1000));   
  }
 
  public void destroy(ServiceContext serviceContext) 
  {
System.out.println("In destroy method");

serviceContext.getProperties().remove("conferenceId");
  }
  
  
  private ServiceContext getServiceContext() {
MessageContext messageContext = MessageContext
  .getCurrentMessageContext();
ServiceContext serviceContext =
messageContext.getServiceContext();
return serviceContext;
   } 
 
 
 
 
3. In the client stub I have added below line for managing the
session
 
stub._getServiceClient().getOptions().setManageSession(true);  
 
 
I used the stub(same instance)  to invoke a functionality
multiple times. Each time functionality is invoked, init() method is
getting called (i,e) new instance of service is created for each request
with the same client instance in soap session.
 
Are there any more changes required to support soapsession. 
 
Please let me know how to proceed further for acheiving soap
session scope.
 
 
 
_
Thanks & Regards,
Vinodh
 

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email. 

www.wipro.com






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Re: [Axis2] Sesion management [soapsession]

2007-04-02 Thread Rajith Attapattu

Hi Kumar,

Have u enabled addressing?
Axis2 uses WS-Addressing to exchange the service group id to manage the soap
session.
So unless u have addressing engaged in both the client and service u want
have session support.

regards,

Rajith

On 4/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


 Hi,

I was trying out session management in Axis2 throught the help of doc
posted in developers.com(
http://www.developer.com/java/web/article.php/10935_3620661_2).

I deployed application in Soap session scope in Service Context.

I made followng changes as suugested in the article

1. Made change in service.xml to include soapsession.

2. Have included method init(), destroy() and a method for getting
ServiceContext in skelton class.

public void init(ServiceContext serviceContext)
{
   System.out.println("In init() method");
   serviceContext.setProperty("conferenceId" , new
Integer(1000));
  }

  public void destroy(ServiceContext serviceContext)
  {
System.out.println("In destroy method");
   serviceContext.getProperties().remove("conferenceId");
  }


  private ServiceContext getServiceContext() {
MessageContext messageContext = MessageContext
  .getCurrentMessageContext();
ServiceContext serviceContext = messageContext.getServiceContext
();
return serviceContext;
   }




3. In the client stub I have added below line for managing the session

stub._getServiceClient().getOptions().setManageSession(true);


I used the stub(same instance)  to invoke a functionality multiple times.
Each time functionality is invoked, init() method is getting called (i,e)
new instance of service is created for each request with the same client
instance in soap session.

Are there any more changes required to support soapsession.

Please let me know how to proceed further for acheiving soap session
scope.



_
Thanks & Regards,
Vinodh


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com



[Axis2] XMLBeans not generating default values

2007-04-02 Thread Masin, Valerie
Hello,
 
I don't pretend to know a thing about xmlbeans but I was thinking I
might use them as my databinding when I discovered that adb doesn't
handle default values in the schema, and the castor databinding isn't
available in axis2. However, when I generate the code from wsdl2java
using xmlbeans I don't see my default values show up in any of the
generated files. 
 
Is this a bug or is it because I don't understand xmlbeans and the
defaults come about through some other mechanism?
 
Here is an example of my schema:
 
 
   
   
 
 
Thanks, Valerie


Is it possible to migrate from Axis1.3 to Axis 2 without a WSDL and client change?

2007-04-02 Thread Shaoguang Cong
Ideally we don't need to modify the WSDL or the client while migrating to AXIS 
2.  But I found that seems inevitable.  Hope someone can verify this is indeed 
true.  And I have to tell my .NET client for the change.
   
  In server-config.wsdd of Axis 1.3, the  tag has a name attribute 
that is using the WSDL port name ("MyServicePort" as in ).
   
  In services.xml of AXIS 2,  the  tag has a name attribute that is 
using the WSDL service name ("MyService" as in ).
   
  So an Axis 1.3 client will have the endpoint address specified with the port 
name ("MyServicePort").  This won't work for invoking the same service (same 
WSDL)  implemented with an AXIS 2.
   
  Is this imcompatible feature just a little negligence or an improvement over 
1.3?  I do like the AXIS 2 approach (using WSDL:service name), though it's a 
bit headache for the migration effort.
   
  Thanks.
  Shaoguang
   
   
   
   

 
-
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.

Re: [Axis2] War file from nightly build

2007-04-02 Thread Steven E. Harris
[EMAIL PROTECTED] writes:

> In current state it cannot be used, because many libraries are
> missing.

I noticed this too. I tried taking the libraries present in the
axis2-1.1.1 WAR file and dropping them into the nightly build's lib
directory (as exploded upon deployment), but I still ran into several
class loading problems related the HTTP Core library.

-- 
Steven E. Harris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Asynchronous processing - client/server requirements

2007-04-02 Thread Michele Mazzucco
Yes,

that's what I meant. Spawning new threads is not a good idea if the load
is high.

Michele

On Mon, 2007-04-02 at 18:14 +0300, Angel Todorov wrote:
> Hi Michelle,
> 
> well, as far as I see in the AbstractInOutAsyncMessageReceiver.java
> code, the request is processed asynchronously, i.e. a new thread is
> spawn via a thread pool to do that.
> 
> so maybe what you mean by "on the server side requests are processed in a
> synchronous way" is related to transport synchronous processing, right ?
> 
> Regards,
> Angel
> 
> On 4/2/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
> > Angel,
> >
> > I'd suggest you to read these 2 threads
> > http://www.nabble.com/asynchronous-messaging-question-tf3219718.html#a8941644
> > http://www.nabble.com/Axis2-question-about-async.-invocation-of-web-services-tf3364140.html#a9359642
> >
> > Michele
> >
> >
> > On Mon, 2007-04-02 at 17:49 +0300, Angel Todorov wrote:
> > > Hi Michelle,
> > >
> > > Thanks. Then what is the purpose of asynchronous message receivers ?
> > >
> > > Regards,
> > > Angel
> > >
> > > On 4/2/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
> > > > Angel,
> > > >
> > > > as far as I know on the server side requests are processed in a
> > > > synchronous way (I think only the sun implementation allows for
> > > > asynchronous processing on the server side [1]).
> > > > If the client is asynchronous a 200 (ok) code is sent back to the
> > > > client, then the server processes the request. When the response is
> > > > ready it will be sent using ws-addressing information.
> > > >
> > > > Michele
> > > >
> > > > [1] https://jax-ws.dev.java.net/nonav/2.1/docs/asyncprovider.html
> > > >
> > > > On Mon, 2007-04-02 at 17:38 +0300, Angel Todorov wrote:
> > > > > On the other hand, on the
> > > > > server-side there is the concept of asynchronous message receivers
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Asynchronous processing - client/server requirements

2007-04-02 Thread Angel Todorov

Hi Michelle,

well, as far as I see in the AbstractInOutAsyncMessageReceiver.java
code, the request is processed asynchronously, i.e. a new thread is
spawn via a thread pool to do that.

so maybe what you mean by "on the server side requests are processed in a
synchronous way" is related to transport synchronous processing, right ?

Regards,
Angel

On 4/2/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Angel,

I'd suggest you to read these 2 threads
http://www.nabble.com/asynchronous-messaging-question-tf3219718.html#a8941644
http://www.nabble.com/Axis2-question-about-async.-invocation-of-web-services-tf3364140.html#a9359642

Michele


On Mon, 2007-04-02 at 17:49 +0300, Angel Todorov wrote:
> Hi Michelle,
>
> Thanks. Then what is the purpose of asynchronous message receivers ?
>
> Regards,
> Angel
>
> On 4/2/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
> > Angel,
> >
> > as far as I know on the server side requests are processed in a
> > synchronous way (I think only the sun implementation allows for
> > asynchronous processing on the server side [1]).
> > If the client is asynchronous a 200 (ok) code is sent back to the
> > client, then the server processes the request. When the response is
> > ready it will be sent using ws-addressing information.
> >
> > Michele
> >
> > [1] https://jax-ws.dev.java.net/nonav/2.1/docs/asyncprovider.html
> >
> > On Mon, 2007-04-02 at 17:38 +0300, Angel Todorov wrote:
> > > On the other hand, on the
> > > server-side there is the concept of asynchronous message receivers
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] ClassNotFoundException when executing axis2server.bat on W2K - %AXIS2_CLASS_PATH% cut off ?

2007-04-02 Thread Heiko Korndorf
Hi,

I have downloaded Axis2 1.1.1 (standard binary distribution) and I can start 
the Axis2 Standalone Server (axis2server.bat) without a problem on my WinXP 
machine.  When I execute the same procedure on my Win2000 computer, startup of 
axis2server.bat fails with a ClassNotFoundException, though.  The reason seems 
to be that the %AXIS2_CLASS_PATH% only contains the last 7 jar files in 
%AXIS2_HOME%\lib, instead of all of the 43 jar files in the lib folder.

The FOR loop in axis2server.bat which concatenates all the lib/*.jar files into 
%AXIS2_HOME% seems to work fine, but I suspect that under Win2000 there is a 
length constraint for windows environment variables which causes the rest of 
the string to be cut off.

Any hints on how to resolve that issue ?

Thanks & Best regards,
Heiko




 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Asynchronous processing - client/server requirements

2007-04-02 Thread Michele Mazzucco
Angel,

I'd suggest you to read these 2 threads
http://www.nabble.com/asynchronous-messaging-question-tf3219718.html#a8941644
http://www.nabble.com/Axis2-question-about-async.-invocation-of-web-services-tf3364140.html#a9359642

Michele


On Mon, 2007-04-02 at 17:49 +0300, Angel Todorov wrote:
> Hi Michelle,
> 
> Thanks. Then what is the purpose of asynchronous message receivers ?
> 
> Regards,
> Angel
> 
> On 4/2/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
> > Angel,
> >
> > as far as I know on the server side requests are processed in a
> > synchronous way (I think only the sun implementation allows for
> > asynchronous processing on the server side [1]).
> > If the client is asynchronous a 200 (ok) code is sent back to the
> > client, then the server processes the request. When the response is
> > ready it will be sent using ws-addressing information.
> >
> > Michele
> >
> > [1] https://jax-ws.dev.java.net/nonav/2.1/docs/asyncprovider.html
> >
> > On Mon, 2007-04-02 at 17:38 +0300, Angel Todorov wrote:
> > > On the other hand, on the
> > > server-side there is the concept of asynchronous message receivers
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Asynchronous processing - client/server requirements

2007-04-02 Thread Angel Todorov

Hi Michelle,

Thanks. Then what is the purpose of asynchronous message receivers ?

Regards,
Angel

On 4/2/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Angel,

as far as I know on the server side requests are processed in a
synchronous way (I think only the sun implementation allows for
asynchronous processing on the server side [1]).
If the client is asynchronous a 200 (ok) code is sent back to the
client, then the server processes the request. When the response is
ready it will be sent using ws-addressing information.

Michele

[1] https://jax-ws.dev.java.net/nonav/2.1/docs/asyncprovider.html

On Mon, 2007-04-02 at 17:38 +0300, Angel Todorov wrote:
> On the other hand, on the
> server-side there is the concept of asynchronous message receivers


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get parameter name of a method in a class compiled with -g option

2007-04-02 Thread Xinjun Chen

Hi Ognjen,

Thanks for the info. I was trying to find how Axis 1.4 extracts the
parameter name. But anyhow your answer also give the similar effect. I
looked into the ClassReader in that package. It does something similar to
the BCEL. I will directly use BCEL.

Regards,
Xinjun


On 3/30/07, Ognjen Blagojevic <[EMAIL PROTECTED]> wrote:


Hi Chen,

> This question is about Axis 1.4. I know Axis can extract the parameter
> names of a method in a class compiled with -g option. During Java2WSDL,
> Axis does extract the parameter names to generate WSDL.
> Does anyone know how Axis achieve this?

As far as I can see, it uses ClassReader from package
org.apache.ws.java2wsdl.bytecode, to parse a .class file and obtain
parameter names. Class files must be compiled with "debug" option.

You can always download source and see for yourself.


Regards,
Ognjen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [Axis2] Asynchronous processing - client/server requirements

2007-04-02 Thread Michele Mazzucco
Angel,

as far as I know on the server side requests are processed in a
synchronous way (I think only the sun implementation allows for
asynchronous processing on the server side [1]). 
If the client is asynchronous a 200 (ok) code is sent back to the
client, then the server processes the request. When the response is
ready it will be sent using ws-addressing information.

Michele

[1] https://jax-ws.dev.java.net/nonav/2.1/docs/asyncprovider.html

On Mon, 2007-04-02 at 17:38 +0300, Angel Todorov wrote:
> On the other hand, on the
> server-side there is the concept of asynchronous message receivers 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] memory issues on the client side

2007-04-02 Thread Michele Mazzucco
Hi all,

it looks like the memory keeps growing only if the response is received.
If there's a firewall in the middle which prevents the client from
receiving the response (i.e. the server processes the request, but the
response is not delivered) the memory does not grow.


Michele

On Wed, 2007-03-28 at 11:43 -0400, Davanum Srinivas wrote:
> Michele,
> 
> Could i pester you to attach a profiler to see where the memory gets
> accumulated? So that we can fix it in time for 1.2..
> 
> thanks,
> dims
> 
> On 3/28/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I've reopened JIRA 2328 because, even if the Callback object is removed
> > from the hash map when the asynchronous response is received, I still
> > see a big memory usage.
> > I'm using two ServiceClient objects, configured using the same
> > configuration context. After they have sent a few thousands messages
> > (while the number of waiting responses is low, say about 10) the
> > applications is using more that 1 GB of memory.
> >
> > Any clue?
> >
> > Michele
> >
> >
> > p.s. The cleanup is called only when all responses are received
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Operation Not found EPR...

2007-04-02 Thread Michele Mazzucco
Milan,

are you using WS-addressing? If so you have to specify the SOAP action
on the client side (use options.setAction()), which is the value
specified in services.xml as actionMapping element.

Michele

On Mon, 2007-04-02 at 06:55 -0700, Milan Tomic wrote:
> I got this error message:
> 
> "javax.xml.rpc.soap.SOAPFaultException: Operation Not found EPR is 
> http://localhost:8080/axis2/services/MyWebService and WSA Action =  "
> 
> 
> but I don't know what does it mean? What went wrong? :(
> 
> 
> Thank you in advance,
> Milan
> 
> 
> 
> 
>  
> 
> Get your own web address.  
> Have a HUGE year through Yahoo! Small Business.
> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] Asynchronous processing - client/server requirements

2007-04-02 Thread Angel Todorov

Hi Guys,

I have a question regarding the asynchronous processing of service
requests : As far as i know, one can enable client-side asynchronous
execution, even using different channels. On the other hand, on the
server-side there is the concept of asynchronous message receivers. Do
both of these have to be enabled in order to have asyncrhonous
processing?

What are the consequences if I make the client asyncrhonous-aware, but
use a normal sync messasge receiver?


Thanks.

Regards,
Angel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Returning Collection (List) objects from web services

2007-04-02 Thread Sreenath Nampally
I am a newbie to WebServices and I am trying to figure out how to return
a List object
from a WebService.

Could someone help me out ? Any code samples would be helpful.

thanks
Sree


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fwd: Fwd: Axis2 : Savan vs. Muse for WS-Notification

2007-04-02 Thread José Antonio Sánchez

This is the response from the Muse team:

-- Forwarded message --
From: Daniel Jemiolo <[EMAIL PROTECTED]>
Date: Apr 2, 2007 4:15 PM
Subject: Re: Fwd: Axis2 : Savan vs. Muse for WS-Notification
To: muse-user@ws.apache.org


Gul,

Muse implements WS-Notification 1.3, which became the OASIS standard last
year. The team has a plan in place to support the reconciliation spec,
WS-EventNotification, as part of a 'tech preview' while that spec goes
through its initial drafts (the first draft is due to be released shortly,
but I am not privy to the exact date).

Dan



"José Antonio Sánchez" <[EMAIL PROTECTED]> wrote on 04/02/2007 07:12:39
AM:


I'm forwarding it to muse list.

-- Forwarded message --
From: Gul Onural <[EMAIL PROTECTED]>
Date: Apr 2, 2007 1:03 PM
Subject: RE: Axis2 : Savan vs. Muse for WS-Notification
To: axis-user@ws.apache.org




Thanks Chamikara. Do you know when Savan will be distributed as part
of Axis2 module ?

 
 From: Chamikara Jayalath [mailto:[EMAIL PROTECTED]
Sent: Monday, April 02, 2007 3:54 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 : Savan vs. Muse for WS-Notification


Hi Gul,

Here is the corret SVN URL for Savan.
https://svn.apache.org/repos/asf/webservices/savan/trunk/java/

The new home page is http://ws.apache.org/savan/ (but this is not
fully complete yet).

Chamikara




On 4/2/07, Gul Onural <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Looks like both Savan and Muse are the implementation of

WS-Notification/Eventing.

>
> None of these two is listed under Axis2 modules ( http://ws.apache.
org/axis2/modules/index.html).
>
> I was wondering :
>
> 1.) Are they (Savan and Muse) active projects ?
> 2.) Is there any plans to integrate any of them to Axis2 as module ?
> 3.) Are their functionality equivalent ? (the version of the

WS-Notification

spec. they implement, etc)
> 4.) Is there anyone using either of them with Axis2 ?
>
> The only information I was able to find about Savan is at http://wso2.
org/projects/savan/java, however
> link to the Savan source code repository in that page is broken.
>
> And http://www.apachenews.org/archives/000932.html says; "Modules

supporting

WS-Eventing (Apache Savan)
> & WS-Transactions (Apache Kandula2) will be available soon after the

Apache

Axis2 1.1.1 release.".
> But I haven't seen any recent news on Savan in Axis2 web site, yet.
>
> I would greatly appreciate any information on this subject.
>
> Gul





--
Saludos.
José Antonio Sánchez

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Saludos.
José Antonio Sánchez

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Operation Not found EPR...

2007-04-02 Thread Milan Tomic

I got this error message:

"javax.xml.rpc.soap.SOAPFaultException: Operation Not found EPR is 
http://localhost:8080/axis2/services/MyWebService and WSA Action =  "


but I don't know what does it mean? What went wrong? :(


Thank you in advance,
Milan




 

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] Sesion management [soapsession]

2007-04-02 Thread kumar.vinodh

Hi,
 
I was trying out session management in Axis2 throught the help of doc
posted in
developers.com(http://www.developer.com/java/web/article.php/10935_36206
61_2). 
 
I deployed application in Soap session scope in Service Context.
 
I made followng changes as suugested in the article
 
1. Made change in service.xml to include soapsession.
 
2. Have included method init(), destroy() and a method for getting
ServiceContext in skelton class.

public void init(ServiceContext serviceContext) 
{
   System.out.println("In init() method");   
   serviceContext.setProperty("conferenceId" , new Integer(1000));

  }
 
  public void destroy(ServiceContext serviceContext) 
  {
System.out.println("In destroy method");
   serviceContext.getProperties().remove("conferenceId");
  }
  
  
  private ServiceContext getServiceContext() {
MessageContext messageContext = MessageContext
  .getCurrentMessageContext();
ServiceContext serviceContext =
messageContext.getServiceContext();
return serviceContext;
   } 
 
 
 
 
3. In the client stub I have added below line for managing the session
 
stub._getServiceClient().getOptions().setManageSession(true);  
 
 
I used the stub(same instance)  to invoke a functionality multiple
times. Each time functionality is invoked, init() method is getting
called (i,e) new instance of service is created for each request with
the same client instance in soap session.
 
Are there any more changes required to support soapsession. 
 
Please let me know how to proceed further for acheiving soap session
scope.
 
 
 
_
Thanks & Regards,
Vinodh
 



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Re: java.lang.NoClassDefFoundError: org/apache/axiom/om/OMElement

2007-04-02 Thread Vikas
Thanks Philipp,

It's working,
I copied
axiom-*.jar,
axis2-*.jar,
commons-*.jar
stax-api-1.0.1.jar & some other jar files in Tomcat/lib directory.

We can copy that file in to out application/lib folder also.

Once again thanks for your help



With best regards

From
Vikas R. Khengare

- Original Message - 
From: "Philipp Leitner" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 02, 2007 4:25 PM
Subject: Re: java.lang.NoClassDefFoundError: org/apache/axiom/om/OMElement


> most probably you are missing the axiom jar in the classpath when
> running your servlet. try to copy the Axis2 jars into the "lib"
> directory of your application server.
>
> /philipp
>
> Vikas schrieb:
> > Hi Friends,
> >
> > I have written a simple web service which returns "Hello World" string
> > using AXIOM. I also wrote client which access that service using AXIOM.
> > When I run my client program on console, it works very fine. But when
> > tried to access client from JSP/Servlet I am getting
> > "java.lang.NoClassDefFoundError: org/apache/axiom/om/OMElement" error.
> >
> > I am confused that when i run same code on console it work fine but why
> > not with JSP/Servlet?
> >
> >
> > With best regards
> >
> > From
> > Vikas R. Khengare
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.24/742 - Release Date: 4/1/2007
8:49 PM
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-n2sp not working with xmlbeans

2007-04-02 Thread FURTADO, Murray, GBM
Hi,
 
I want to override the default package my xml beans get generated in. 
 
I issue my wsdl2java command with eg -ns2p http://www.xyx.com=com.abc.efg
   or -ns2p www.xyx.com=com.abc.efg
  
When I do so, my classes get generated in a package com.xyx.www.impl 
 
Am I doing something wrong?
 
Regards,
 
Murray
 
Murray Furtado
Currency Options Sales Technology
RBS Global Banking and Markets 
280 Bishopsgate, London EC2M 4RB / 135 Bishopsgate, London EC2M 3TP 
 ( +44 207 085 0748 | * [EMAIL PROTECTED]
 
 

***
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered 
Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 
Visit our websites at: 
www.rbs.com
www.rbsgc.com
www.rbsmarkets.com
***


RE: Specify JAXB generated complex types to Axis web service

2007-04-02 Thread Masin, Valerie
Can you tell me which of these bindings in Axis2 is JAXB? Thanks

C:\>%AXIS2_HOME%/bin/wsdl2java
...
 -d  Valid databinding(s) are adb, xmlbeans, jibx,
jaxme and jaxbri (Default: adb). 

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 02, 2007 9:18 AM
To: axis-user@ws.apache.org
Subject: Re: Specify JAXB generated complex types to Axis web service

1- I recommend you use Axis2 rather than Axis. It supports plug-in
databindings, including JAXB (also the Axis2 databinding [ADB],
XMLBeans, and JiBX)
2- If you insist on using Axis, then you might consider using the Axis
databinding rather than JAXB.
3- If you insist on using Axis and the JAXB databinding, then you need
to use the Messaging API (provider="java:MSG").
4- In all cases, don't use SOAP encoding.

Anne

On 4/2/07, Tim Scofield <[EMAIL PROTECTED]> wrote:
> Hi,
>I have a stack of newbie questions and would greatly appreciate 
> answers from anyone. How do I specify to Axis that complex types 
> generated using JAXB2.0 need to be serialized/deserialized using the 
> JAXB data binding? I am trying to deploy a JAX-RPC style webservice
onto Axis 1.4 on JBoss 4.0.4.
> JRE is 1.5.0_06.
>
> I have done the following so far:
>
> 1. Created a XSD and then generated the complex types using JAXB2.0.
> 2. Compiled the complex types.
> 3. Created a Service endpoint which uses the complex types for both 
> input and output parameters.
> 4. Compiled the service (with JAXB jars in the classpath) 5. Created 
> the following WSDD:
>
> http://xml.apache.org/axis/wsdd/ "
>
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
> ">
>
>  
>
>   
> languageSpecificType="java:generated.PartyType"
> serializer="java:generated.ObjectFactory"
>  deserializer="java:generated.ObjectFactory"
> encodingStyle="
> http://schemas.xmlsoap.org/soap/encoding/"/>
>languageSpecificType="java:generated.AddressType"
> serializer="java: generated.ObjectFactory"
> deserializer="java:generated.ObjectFactory"
>
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
>languageSpecificType="java:generated.PhoneType"
> serializer="java: generated.ObjectFactory"
> deserializer="java:generated.ObjectFactory"
>
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
>  
>
> 
>
> 6. Ran JBOSS and then deployed the service using AdminClient.
>
> This resulted in the following exception:
>
> 00:16:15,265 ERROR [WSDDDeployableItem] Unable to deploy typemapping:
> {urn:MathUtil}PartyType
>  java.lang.ClassNotFoundException:
> java:generated.ObjectFactory
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1352)
> at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1198)
>  at
> org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
>
> Questions:
>
> 1. What is the correct Serializer/Deserializer that needs to be 
> specified in the WSDD? I guess ObjectFactory is not the correct class.
> 2. The class generated.ObjectFactory is present in the 
> WEB-INF/classes/ directory in axis.war. Is this related to ClassLoader

> issues in JBOSS? Does it have any bearing on specifying the JAXB
mapping?
> 3. Is it necessary to specify the JAXB binding to the generated WSDL? 
> If so what parameters need to be passed to specify the binding? I 
> checked the reference and saw a "-b" option for Java2WSDL but could 
> not figure out the exact usage.
> 4. Is it necessary to include the original XSD in the .war file? If 
> yes, where?
> 5. When I invoke this service, how do I create the complex datatypes 
> on the client side and correctly pass them? Currently I get a nice 
> stacktrace on the client side saying that there is no registered
serializer/deserializer.
> This occured both before and after I included the s in 
> the WSDD.
>
> Whew, thats lots of questions... but I wasted my entire weekend trying

> to get this stuff running!!! Appreciate all readers'/responders'
patience ...
> thanks a ton in advance!!!
>
> Cheers all,
> Tim
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Will There Be an Axis 1.5 for JDK1.5?

2007-04-02 Thread Davanum Srinivas

Yes Anne. Please see my previous email on Axis 1.5 and Bjorn's email
on helping out with that release. Am going to keep using the same
generic answer to a generic question :)

thanks,
dims

On 4/2/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

The community appears to want to maintain Axis 1.x for at least a
little while longer. It's still used in quite a few places. And it is
the JAX-RPC implementation...

Anne

On 4/2/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> Axis2 has replaced Axis1
>
> thanks,
> dims
>
> On 4/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Will both Axis 1.x for Java and Axis 2.x for Java continue to be developed, 
or has the latter simply replaced the former?
> >
> > Is this documented somewhere on either the Axis 1 or Axis2 sites?
> >
> > Thanks very much.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Will There Be an Axis 1.5 for JDK1.5?

2007-04-02 Thread Anne Thomas Manes

The community appears to want to maintain Axis 1.x for at least a
little while longer. It's still used in quite a few places. And it is
the JAX-RPC implementation...

Anne

On 4/2/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

Axis2 has replaced Axis1

thanks,
dims

On 4/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Will both Axis 1.x for Java and Axis 2.x for Java continue to be developed, 
or has the latter simply replaced the former?
>
> Is this documented somewhere on either the Axis 1 or Axis2 sites?
>
> Thanks very much.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Specify JAXB generated complex types to Axis web service

2007-04-02 Thread Anne Thomas Manes

1- I recommend you use Axis2 rather than Axis. It supports plug-in
databindings, including JAXB (also the Axis2 databinding [ADB],
XMLBeans, and JiBX)
2- If you insist on using Axis, then you might consider using the Axis
databinding rather than JAXB.
3- If you insist on using Axis and the JAXB databinding, then you need
to use the Messaging API (provider="java:MSG").
4- In all cases, don't use SOAP encoding.

Anne

On 4/2/07, Tim Scofield <[EMAIL PROTECTED]> wrote:

Hi,
   I have a stack of newbie questions and would greatly appreciate answers
from anyone. How do I specify to Axis that complex types generated using
JAXB2.0 need to be serialized/deserialized using the JAXB data binding? I am
trying to deploy a JAX-RPC style webservice onto Axis 1.4 on JBoss 4.0.4.
JRE is 1.5.0_06.

I have done the following so far:

1. Created a XSD and then generated the complex types using JAXB2.0.
2. Compiled the complex types.
3. Created a Service endpoint which uses the complex types for both input
and output parameters.
4. Compiled the service (with JAXB jars in the classpath)
5. Created the following WSDD:

http://xml.apache.org/axis/wsdd/ "

xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
">

 
   
  
  http://schemas.xmlsoap.org/soap/encoding/"/>
  http://schemas.xmlsoap.org/soap/encoding/"/>
  http://schemas.xmlsoap.org/soap/encoding/"/>
 



6. Ran JBOSS and then deployed the service using AdminClient.

This resulted in the following exception:

00:16:15,265 ERROR [WSDDDeployableItem] Unable to deploy typemapping:
{urn:MathUtil}PartyType
 java.lang.ClassNotFoundException:
java:generated.ObjectFactory
at
org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1352)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
 at
org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)

Questions:

1. What is the correct Serializer/Deserializer that needs to be specified in
the WSDD? I guess ObjectFactory is not the correct class.
2. The class generated.ObjectFactory is present in the WEB-INF/classes/
directory in axis.war. Is this related to ClassLoader issues in JBOSS? Does
it have any bearing on specifying the JAXB mapping?
3. Is it necessary to specify the JAXB binding to the generated WSDL? If so
what parameters need to be passed to specify the binding? I checked the
reference and saw a "-b" option for Java2WSDL but could not figure out the
exact usage.
4. Is it necessary to include the original XSD in the .war file? If yes,
where?
5. When I invoke this service, how do I create the complex datatypes on the
client side and correctly pass them? Currently I get a nice stacktrace on
the client side saying that there is no registered serializer/deserializer.
This occured both before and after I included the s in the
WSDD.

Whew, thats lots of questions... but I wasted my entire weekend trying to
get this stuff running!!! Appreciate all readers'/responders' patience ...
thanks a ton in advance!!!

Cheers all,
Tim



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Will There Be an Axis 1.5 for JDK1.5?

2007-04-02 Thread Davanum Srinivas

Axis2 has replaced Axis1

thanks,
dims

On 4/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Will both Axis 1.x for Java and Axis 2.x for Java continue to be developed, or 
has the latter simply replaced the former?

Is this documented somewhere on either the Axis 1 or Axis2 sites?

Thanks very much.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Filecaching with servlet specification temporary dir?

2007-04-02 Thread Davanum Srinivas

Jochen,

that's a good idea. Please create a JIRA enchancement issue.

-- dims

On 4/2/07, Jochen Zink <[EMAIL PROTECTED]> wrote:

Hello,

At the moment, for large attachments is it possible to cache the attachment in 
a specific dir, configured in axis2.xml. But this can run into problems, if the 
security configuration of the applicationserver does not allow writing directly 
to hard disk. For this case, there exists a tempdirectory since servlet spec 
2.2. Every Servletcontainer has to provide a temp directory to the servlet, 
where they can store tempory files. To get access to this directory, the 
servlet has to read out the javax.servlet.context.tempdir variable.

Is there a possibility to configure axis2, that this directory is used for 
filecaching?

Thanks for help!

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WebServices client

2007-04-02 Thread Anne Thomas Manes

Can you post the schema for your elements? WSDL2Java should be able to
map your elements to Java types unless you're using fairly esoteric
schema structures.

Anne

On 4/2/07, Milan Tomic <[EMAIL PROTECTED]> wrote:


I did used WSDL2Java, but it issued an warning that it can't map my elements 
into Java types, so it mapped it into SOAPElement. I was expecting WSDL2Java to 
generate classes from my WSDL and schema. It generated proxy class(es).

As my web service expect SOAPElement as input, I tried to load my XML from a 
file:

DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(new InputSource("files/request_body.xml"));
Element request = doc.getDocumentElement();

GetCertificatePortProxy gc = new GetCertificatePortProxy();
SOAPElement response = gc.getCertificate(request);

but compiler doesn't compile that. :(

Any help? :)

Best regards,
Milan



- Original Message 
From: Philipp Leitner <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, April 2, 2007 1:49:19 PM
Subject: Re: WebServices client

wsdl2java should encapsulate the complex types for you, so you could
call the WS as if it was a local object. you should not need to deal
with SOAPElements in this case. If you are not experienced with WS this
might be the easier starting point.

/philipp


Milan Tomic schrieb:
>> * my best guess is that you wanted to say that the service uses an
>> IN-OUT MEP, and that it takes a parameter as complex type for IN and
>> returns another complex type as OUT
>
> Yes, that exactly describes what I wanted to say, using all those "fancy" words like 
"MEP" and "complex type". :-)
>
> As my service takes an complex type element as input, I need to pass 
SOAPElement and to receive SOAPElement. I don't know how to fill SOAPElement. I 
will try to use XFire for the client.
>
> Thank you very much for your help,
> Milan
>
>
>
> - Original Message 
> From: Philipp Leitner <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Sent: Friday, March 30, 2007 2:48:46 PM
> Subject: Re: WebServices client
>
> Although I have to confess that I lack any idea of what you mean by
> "takes an XSD element and returns an XSD element"* I think that the
> easiest way of testing a Web Service is to create client stubs using
> wsdl2java (comes along with your Axis2 distribution) and use this stubs
> to test the service. The whole process should not take < 30 minutes in
> general.
>
> Alternatively I have often used XFire (http://xfire.codehaus.org/) to
> quickly test services ...
>
> /philipp
>
> * my best guess is that you wanted to say that the service uses an
> IN-OUT MEP, and that it takes a parameter as complex type for IN and
> returns another complex type as OUT
>
> Milan Tomic schrieb:
>> I would like to test my web service, so I need a client. My web service 
takes an XSD Element and returns an XSD Element. Is there some example of such a 
client? Since input argument is large XML, I would like to load it from a file, 
rather then building it in code.
>>
>> Thank you in advance,
>> Milan
>>
>>
>>
>>
>>
>> 

>> Don't pick lemons.
>> See all the new 2007 cars at Yahoo! Autos.
>> http://autos.yahoo.com/new_cars.html
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
> 

> Never miss an email again!
> Yahoo! Toolbar alerts you the instant new Mail arrives.
> http://tools.search.yahoo.com/toolbar/features/mail/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Custom WSDL Not Displaying

2007-04-02 Thread Callner, David A.
I added the true and I
have the {service name}.wsdl and service name is defined in the wsdl as
{service name}.  The Service name in the service.xml is the same name
as well, but I still do not see the wsdl.   

-Original Message-
From: Krishnamoorthy J (HCL Financial Services)
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 01, 2007 11:57 PM
To: axis-user@ws.apache.org
Subject: RE: Custom WSDL Not Displaying



The solution is in the mailing list.

http://www.mail-archive.com/axis-user@ws.apache.org/msg26280.html

http://www.mail-archive.com/axis-user@ws.apache.org/msg25700.html


-Original Message-
From: Callner, David A. [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 30, 2007 6:09 PM
To: axis-user@ws.apache.org
Subject: Custom WSDL Not Displaying

 I have the name of the service name in the wsdl and the service name
in the service.xml exactly the same but when I go to access the website
I get the standard unable to generate wsdl page.  I've looked online
that many people have this same issue but have not seen a solution.
Does anyone have one?

Thanks in advanced,
David Callner
Senior Software Systems Engineer
The MITRE Corporation
Center for Advanced Aviation System Development
7515 Colshire Dr.
McLean, VA. 22102
[EMAIL PROTECTED] 
703.983.6431 (work) 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DISCLAIMER:
---

The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily
reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of 
this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender
immediately. Before opening any mail and 
attachments please check them for viruses and defect.
---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Axis2-1.1.1 WSDL2JAVA not creating subclasses!!!

2007-04-02 Thread FURTADO, Murray, GBM
Ok,

I regenerated with xml beans and it generated the appropriate subclasses, so
it must be an issue with ADB.

Regards,

Murray

 


Murray Furtado
Currency Options Sales Technology
RBS Global Banking and Markets 
280 Bishopsgate, London EC2M 4RB / 135 Bishopsgate, London EC2M 3TP 
 ( +44 207 085 0748 | * [EMAIL PROTECTED]

-Original Message-
From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] 
Sent: 02 April 2007 12:48
To: axis-user@ws.apache.org
Subject: Re: Axis2-1.1.1 WSDL2JAVA not creating subclasses!!!

Hi,
ADB did not support extensions before but AFAIK all such issues were taken
care of. would it be possible to run codegen with XMLBeans just to see
whether its a problem with ADB or the schema ?

On 4/2/07, FURTADO, Murray, GBM <[EMAIL PROTECTED]> wrote:
>
>
> Hello again...
>
> Can anyone help me with my question? I can't imagine I am the only 
> person trying to use subclasses with Axis2.
> Could it be a bug in Axis2 - perhaps it is not handling the tns 
> namespace prefix in   
> correctly, and skipping the generation of subclasses because it 
> doesn't realise that tns means 'this name space'?
>
> Any thoughts???
>
> Many thanks,
>
> Murray
>
>
>  
>  From: FURTADO, Murray, GBM
> Sent: 30 March 2007 12:36
> To: 'axis-user@ws.apache.org'
> Subject: Axis2-1.1.1 WSDL2JAVA not creating subclasses!!!
>
>
>
> Hi,
>
> we have a class XPortfolioProduct, defined by the following wsdl:
>
>   
> 
> 
>  type="s:double"/>
>  type="s:string"/>
> ...
> 
> 
>
> We have a number of subclasses of XPortfolioProduct, a couple of which 
> are shown defined below:
>
> 
>  
>  
>  
>  type="s:double"/>
>  type="s:string"/>
>  type="s:string"/>
>  type="s:dateTime"/>
>  type="s:string"/>
>   
> 
> 
> 
>
>mixed="false">
> 
>  type="s:string"/>
>  type="s:string"/>
>  type="s:string"/>
>  type="s:string"/>
>  type="s:double"/>
>  type="tns:DavroFixingElement"/>
>  type="s:double"/>
> 
> 
> 
> 
>
> When using wsdl2java using the adb databinding, this generates a 
> Stub.XPortfolioProduct inner class, but no Stub.FVADetails and 
> Stub.DoubleAverageRateDetails classes.
>
> Can anyone tell me why this is happening? This wsdl generates the 
> correct classes using Axis 1.4, but not with Axis2.-1.1.1
>
> Thanks in advance,
>
> Murray
>
>
> Murray Furtado
> Currency Options Sales Technology
> RBS Global Banking and Markets
> 280 Bishopsgate, London EC2M 4RB / 135 Bishopsgate, London EC2M 3TP  ( 
> +44 207 085 0748 | * [EMAIL PROTECTED]
> **
> * The Royal Bank of Scotland plc. Registered in Scotland 
> No 90312. Registered
> Office: 36 St Andrew Square, Edinburgh EH2 2YB.
> Authorised and regulated by the Financial Services Authority
>
> This e-mail message is confidential and for use by the addressee only. 
> If the message is received by anyone other than the addressee, please 
> return the message to the sender by replying to it and then delete the 
> message from your computer. Internet e-mails are not necessarily 
> secure. The Royal Bank of Scotland plc does not accept responsibility 
> for changes made to this message after it was sent.
>
> Whilst all reasonable care has been taken to avoid the transmission of 
> viruses, it is the responsibility of the recipient to ensure that the 
> onward transmission, opening or use of this message and any 
> attachments will not adversely affect its systems or data. No 
> responsibility is accepted by The Royal Bank of Scotland plc in this 
> regard and the recipient should carry out such virus and other checks 
> as it considers appropriate.
> Visit our websites at:
> www.rbs.com
> www.rbsgc.com
> www.rbsmarkets.com
> **
> *
>
>


--
Ajith Ranabahu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WebServices client

2007-04-02 Thread Milan Tomic

I did used WSDL2Java, but it issued an warning that it can't map my elements 
into Java types, so it mapped it into SOAPElement. I was expecting WSDL2Java to 
generate classes from my WSDL and schema. It generated proxy class(es).

As my web service expect SOAPElement as input, I tried to load my XML from a 
file:

DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(new InputSource("files/request_body.xml"));
Element request = doc.getDocumentElement();

GetCertificatePortProxy gc = new GetCertificatePortProxy();
SOAPElement response = gc.getCertificate(request);

but compiler doesn't compile that. :(

Any help? :)

Best regards,
Milan



- Original Message 
From: Philipp Leitner <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, April 2, 2007 1:49:19 PM
Subject: Re: WebServices client

wsdl2java should encapsulate the complex types for you, so you could 
call the WS as if it was a local object. you should not need to deal 
with SOAPElements in this case. If you are not experienced with WS this 
might be the easier starting point.

/philipp


Milan Tomic schrieb:
>> * my best guess is that you wanted to say that the service uses an 
>> IN-OUT MEP, and that it takes a parameter as complex type for IN and 
>> returns another complex type as OUT
> 
> Yes, that exactly describes what I wanted to say, using all those "fancy" 
> words like "MEP" and "complex type". :-)
> 
> As my service takes an complex type element as input, I need to pass 
> SOAPElement and to receive SOAPElement. I don't know how to fill SOAPElement. 
> I will try to use XFire for the client.
> 
> Thank you very much for your help,
> Milan
> 
> 
> 
> - Original Message 
> From: Philipp Leitner <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Sent: Friday, March 30, 2007 2:48:46 PM
> Subject: Re: WebServices client
> 
> Although I have to confess that I lack any idea of what you mean by 
> "takes an XSD element and returns an XSD element"* I think that the 
> easiest way of testing a Web Service is to create client stubs using 
> wsdl2java (comes along with your Axis2 distribution) and use this stubs 
> to test the service. The whole process should not take < 30 minutes in 
> general.
> 
> Alternatively I have often used XFire (http://xfire.codehaus.org/) to 
> quickly test services ...
> 
> /philipp
> 
> * my best guess is that you wanted to say that the service uses an 
> IN-OUT MEP, and that it takes a parameter as complex type for IN and 
> returns another complex type as OUT
> 
> Milan Tomic schrieb:
>> I would like to test my web service, so I need a client. My web service 
>> takes an XSD Element and returns an XSD Element. Is there some example of 
>> such a client? Since input argument is large XML, I would like to load it 
>> from a file, rather then building it in code.
>>
>> Thank you in advance,
>> Milan
>>
>>
>>
>>
>>  
>> 
>> Don't pick lemons.
>> See all the new 2007 cars at Yahoo! Autos.
>> http://autos.yahoo.com/new_cars.html 
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
>  
> 
> Never miss an email again!
> Yahoo! Toolbar alerts you the instant new Mail arrives.
> http://tools.search.yahoo.com/toolbar/features/mail/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






 

The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WebServices client

2007-04-02 Thread Philipp Leitner
wsdl2java should encapsulate the complex types for you, so you could 
call the WS as if it was a local object. you should not need to deal 
with SOAPElements in this case. If you are not experienced with WS this 
might be the easier starting point.


/philipp


Milan Tomic schrieb:
* my best guess is that you wanted to say that the service uses an 
IN-OUT MEP, and that it takes a parameter as complex type for IN and 
returns another complex type as OUT


Yes, that exactly describes what I wanted to say, using all those "fancy" words like 
"MEP" and "complex type". :-)

As my service takes an complex type element as input, I need to pass 
SOAPElement and to receive SOAPElement. I don't know how to fill SOAPElement. I 
will try to use XFire for the client.

Thank you very much for your help,
Milan



- Original Message 
From: Philipp Leitner <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, March 30, 2007 2:48:46 PM
Subject: Re: WebServices client

Although I have to confess that I lack any idea of what you mean by 
"takes an XSD element and returns an XSD element"* I think that the 
easiest way of testing a Web Service is to create client stubs using 
wsdl2java (comes along with your Axis2 distribution) and use this stubs 
to test the service. The whole process should not take < 30 minutes in 
general.


Alternatively I have often used XFire (http://xfire.codehaus.org/) to 
quickly test services ...


/philipp

* my best guess is that you wanted to say that the service uses an 
IN-OUT MEP, and that it takes a parameter as complex type for IN and 
returns another complex type as OUT


Milan Tomic schrieb:

I would like to test my web service, so I need a client. My web service takes 
an XSD Element and returns an XSD Element. Is there some example of such a 
client? Since input argument is large XML, I would like to load it from a file, 
rather then building it in code.

Thank you in advance,
Milan




 


Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






 


Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis2-1.1.1 WSDL2JAVA not creating subclasses!!!

2007-04-02 Thread Ajith Ranabahu

Hi,
ADB did not support extensions before but AFAIK all such issues were
taken care of. would it be possible to run codegen with XMLBeans just
to see whether its a problem with ADB or the schema ?

On 4/2/07, FURTADO, Murray, GBM <[EMAIL PROTECTED]> wrote:



Hello again...

Can anyone help me with my question? I can't imagine I am the only person
trying to use subclasses with Axis2.
Could it be a bug in Axis2 - perhaps it is not handling the tns namespace
prefix in   correctly, and
skipping the generation of subclasses because it doesn't realise that tns
means 'this name space'?

Any thoughts???

Many thanks,

Murray


 
 From: FURTADO, Murray, GBM
Sent: 30 March 2007 12:36
To: 'axis-user@ws.apache.org'
Subject: Axis2-1.1.1 WSDL2JAVA not creating subclasses!!!



Hi,

we have a class XPortfolioProduct, defined by the following wsdl:


 




...



We have a number of subclasses of XPortfolioProduct, a couple of which are
shown defined below:


 
 
 





  





 
 
 












When using wsdl2java using the adb databinding, this generates a
Stub.XPortfolioProduct inner class, but no Stub.FVADetails and
Stub.DoubleAverageRateDetails classes.

Can anyone tell me why this is happening? This wsdl generates the correct
classes using Axis 1.4, but not with Axis2.-1.1.1

Thanks in advance,

Murray


Murray Furtado
Currency Options Sales Technology
RBS Global Banking and Markets
280 Bishopsgate, London EC2M 4RB / 135 Bishopsgate, London EC2M 3TP
 ( +44 207 085 0748 | * [EMAIL PROTECTED]
***
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered
Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised and regulated by the Financial Services Authority

This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The
Royal Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
www.rbs.com
www.rbsgc.com
www.rbsmarkets.com
***





--
Ajith Ranabahu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java.util.Map and more specifically HashMap

2007-04-02 Thread Borislav Kirilov
Hello! I'm trying to generate code for a method with the following 
signature :

public Map listQueries()

I tried with the code generator plug-in for Eclipse available from 
http://ws.apache.org/axis2/tools/index.html
The first problem that I have is that for returning the Map type, the 
tool generates from the WSDL additional package which name is 
java.util.xsd that contains the Map type description, but this is a 
wrong class name, because java, sun and javax are reserved for the Java 
Virtual Machine!
The other problem is that this Map description has nothing in common 
with the original java.util.Map type and hence gives me the following 
exception:

org.apache.axis2.AxisFault: java.util.HashMap
   at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
   at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
   at 
clark.webinterface.webadapter.ClarkWebServiceStub.listQueries(ClarkWebServiceStub.java:4413)


I have attached the generated classes from the java.util.xsd package.

Has anyone met the same problem? If you have please share your experience!


/**
* ExtensionMapper.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: #axisVersion# #today#
*/

package clark.webinterface.util.xsd;
/**
*  ExtensionMapper class
*/

public  class ExtensionMapper{

  public static java.lang.Object getTypeObject(java.lang.String 
namespaceURI,
   java.lang.String 
typeName,
   
javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{

  
  if (
  "http://util.java/xsd".equals(namespaceURI) &&
  "Map".equals(typeName)){
   
return  
clark.webinterface.util.xsd.Map.Factory.parse(reader);


  }

  
 throw new java.lang.RuntimeException("Unsupported type " + 
namespaceURI + " " + typeName);
  }

}

/**
* Map2.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: #axisVersion# #today#
*/

package clark.webinterface.util.xsd;
/**
*  Map2 bean class
*/

public  class Map2
implements org.apache.axis2.databinding.ADBBean{

public static final javax.xml.namespace.QName MY_QNAME = new 
javax.xml.namespace.QName(
"http://util.java/xsd";,
"Map",
"ns1");



/**
* field for Map
*/

protected clark.webinterface.util.xsd.Map localMap ;


   /**
   * Auto generated getter method
   * @return java.util.xsd.Map
   */
   public  clark.webinterface.util.xsd.Map getMap(){
   return localMap;
   }

   

/**
   * Auto generated setter method
   * @param param Map
   */
   public void 
setMap(clark.webinterface.util.xsd.Map param){

this.localMap=param;


   }


 /**
 * isReaderMTOMAware
 * @return true if the reader supports MTOM
 */
   public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader 
reader) {
boolean isReaderMTOMAware = false;

try{
  isReaderMTOMAware = 
java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
}catch(java.lang.IllegalArgumentException e){
  isReaderMTOMAware = false;
}
return isReaderMTOMAware;
   }
 
 
/**
*
* @param parentQName
* @param factory
* @return org.apache.axiom.om.OMElement
*/
   public org.apache.axiom.om.OMElement getOMElement(
   final javax.xml.namespace.QName parentQName,
   final org.apache.axiom.om.OMFactory factory){

org.apache.axiom.om.OMDataSource dataSource = 
getOMDataSource(parentQName, factory);


   return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
   MY_QNAME,factory,dataSource);

  

RE: Axis2-1.1.1 WSDL2JAVA not creating subclasses!!!

2007-04-02 Thread FURTADO, Murray, GBM
Hello again...
 
Can anyone help me with my question? I can't imagine I am the only person
trying to use subclasses with Axis2. 
Could it be a bug in Axis2 - perhaps it is not handling the tns namespace
prefix in   correctly, and 
skipping the generation of subclasses because it doesn't realise that tns
means 'this name space'?
 
Any thoughts???
 
Many thanks,
 
Murray
 

  _  

From: FURTADO, Murray, GBM 
Sent: 30 March 2007 12:36
To: 'axis-user@ws.apache.org'
Subject: Axis2-1.1.1 WSDL2JAVA not creating subclasses!!!


Hi,
 
we have a class XPortfolioProduct, defined by the following wsdl:
 

 




...


 
We have a number of subclasses of XPortfolioProduct, a couple of which are
shown defined below:
 

 
 
 





  



 

 
 
 











 
When using wsdl2java using the adb databinding, this generates a
Stub.XPortfolioProduct inner class, but no Stub.FVADetails and
Stub.DoubleAverageRateDetails classes.  
 
Can anyone tell me why this is happening? This wsdl generates the correct
classes using Axis 1.4, but not with Axis2.-1.1.1  
 
Thanks in advance,
 
Murray
 
Murray Furtado
Currency Options Sales Technology
RBS Global Banking and Markets 
280 Bishopsgate, London EC2M 4RB / 135 Bishopsgate, London EC2M 3TP 
 ( +44 207 085 0748 | * [EMAIL PROTECTED]
 
 

***

The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered
Office: 36 St Andrew Square, Edinburgh EH2 2YB. 

Authorised and regulated by the Financial Services Authority 

 

This e-mail message is confidential and for use by the 

addressee only. If the message is received by anyone other 

than the addressee, please return the message to the sender 

by replying to it and then delete the message from your 

computer. Internet e-mails are not necessarily secure. The 

Royal Bank of Scotland plc does not accept responsibility for 

changes made to this message after it was sent. 



Whilst all reasonable care has been taken to avoid the 

transmission of viruses, it is the responsibility of the recipient to 

ensure that the onward transmission, opening or use of this 

message and any attachments will not adversely affect its 

systems or data. No responsibility is accepted by The 

Royal Bank of Scotland plc in this regard and the recipient should carry 

out such virus and other checks as it considers appropriate. 

Visit our websites at: 

www.rbs.com

www.rbsgc.com

www.rbsmarkets.com


***


Re: WebServices client

2007-04-02 Thread Milan Tomic

> * my best guess is that you wanted to say that the service uses an 
> IN-OUT MEP, and that it takes a parameter as complex type for IN and 
> returns another complex type as OUT

Yes, that exactly describes what I wanted to say, using all those "fancy" words 
like "MEP" and "complex type". :-)

As my service takes an complex type element as input, I need to pass 
SOAPElement and to receive SOAPElement. I don't know how to fill SOAPElement. I 
will try to use XFire for the client.

Thank you very much for your help,
Milan



- Original Message 
From: Philipp Leitner <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, March 30, 2007 2:48:46 PM
Subject: Re: WebServices client

Although I have to confess that I lack any idea of what you mean by 
"takes an XSD element and returns an XSD element"* I think that the 
easiest way of testing a Web Service is to create client stubs using 
wsdl2java (comes along with your Axis2 distribution) and use this stubs 
to test the service. The whole process should not take < 30 minutes in 
general.

Alternatively I have often used XFire (http://xfire.codehaus.org/) to 
quickly test services ...

/philipp

* my best guess is that you wanted to say that the service uses an 
IN-OUT MEP, and that it takes a parameter as complex type for IN and 
returns another complex type as OUT

Milan Tomic schrieb:
> I would like to test my web service, so I need a client. My web service takes 
> an XSD Element and returns an XSD Element. Is there some example of such a 
> client? Since input argument is large XML, I would like to load it from a 
> file, rather then building it in code.
> 
> Thank you in advance,
> Milan
> 
> 
> 
> 
>  
> 
> Don't pick lemons.
> See all the new 2007 cars at Yahoo! Autos.
> http://autos.yahoo.com/new_cars.html 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






 

Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Axis2 : Savan vs. Muse for WS-Notification

2007-04-02 Thread Gul Onural
Thanks Chamikara. Do you know when Savan will be distributed as part of
Axis2 module ?



From: Chamikara Jayalath [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 02, 2007 3:54 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 : Savan vs. Muse for WS-Notification


Hi Gul,

Here is the corret SVN URL for Savan.
https://svn.apache.org/repos/asf/webservices/savan/trunk/java/

The new home page is http://ws.apache.org/savan/ (but this is not fully
complete yet).

Chamikara




On 4/2/07, Gul Onural <[EMAIL PROTECTED]> wrote: 


Looks like both Savan and Muse are the implementation of
WS-Notification/Eventing. 

None of these two is listed under Axis2 modules (
http://ws.apache.org/axis2/modules/index.html
 ). 

I was wondering : 

1.) Are they (Savan and Muse) active projects ? 
2.) Is there any plans to integrate any of them to Axis2 as
module ? 
3.) Are their functionality equivalent ? (the version of the
WS-Notification spec. they implement, etc) 
4.) Is there anyone using either of them with Axis2 ? 

The only information I was able to find about Savan is at
http://wso2.org/projects/savan/java
 , however 
link to the Savan source code repository in that page is broken.


And http://www.apachenews.org/archives/000932.html
 says; "Modules
supporting WS-Eventing (Apache Savan) 
& WS-Transactions (Apache Kandula2) will be available soon after
the Apache Axis2 1.1.1 release.". 
But I haven't seen any recent news on Savan in Axis2 web site,
yet. 

I would greatly appreciate any information on this subject. 

Gul 






Re: java.lang.NoClassDefFoundError: org/apache/axiom/om/OMElement

2007-04-02 Thread Philipp Leitner
most probably you are missing the axiom jar in the classpath when 
running your servlet. try to copy the Axis2 jars into the "lib" 
directory of your application server.


/philipp

Vikas schrieb:

Hi Friends,
 
I have written a simple web service which returns "Hello World" string 
using AXIOM. I also wrote client which access that service using AXIOM. 
When I run my client program on console, it works very fine. But when 
tried to access client from JSP/Servlet I am getting 
"java.lang.NoClassDefFoundError: org/apache/axiom/om/OMElement" error.
 
I am confused that when i run same code on console it work fine but why 
not with JSP/Servlet?
 
 
With best regards
 
From

Vikas R. Khengare


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



java.lang.NoClassDefFoundError: org/apache/axiom/om/OMElement

2007-04-02 Thread Vikas
Hi Friends,

I have written a simple web service which returns "Hello World" string using 
AXIOM. I also wrote client which access that service using AXIOM. When I run my 
client program on console, it works very fine. But when tried to access client 
from JSP/Servlet I am getting "java.lang.NoClassDefFoundError: 
org/apache/axiom/om/OMElement" error.

I am confused that when i run same code on console it work fine but why not 
with JSP/Servlet?


With best regards

From
Vikas R. Khengare


[Axis2] Filecaching with servlet specification temporary dir?

2007-04-02 Thread Jochen Zink
Hello,

At the moment, for large attachments is it possible to cache the attachment in 
a specific dir, configured in axis2.xml. But this can run into problems, if the 
security configuration of the applicationserver does not allow writing directly 
to hard disk. For this case, there exists a tempdirectory since servlet spec 
2.2. Every Servletcontainer has to provide a temp directory to the servlet, 
where they can store tempory files. To get access to this directory, the 
servlet has to read out the javax.servlet.context.tempdir variable.

Is there a possibility to configure axis2, that this directory is used for 
filecaching?

Thanks for help!

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Will There Be an Axis 1.5 for JDK1.5?

2007-04-02 Thread treumanw
Will both Axis 1.x for Java and Axis 2.x for Java continue to be developed, or 
has the latter simply replaced the former?

Is this documented somewhere on either the Axis 1 or Axis2 sites?

Thanks very much.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Specify JAXB generated complex types to Axis web service

2007-04-02 Thread Tim Scofield

Hi,
  I have a stack of newbie questions and would greatly appreciate answers
from anyone. How do I specify to Axis that complex types generated using
JAXB2.0 need to be serialized/deserialized using the JAXB data binding? I am
trying to deploy a JAX-RPC style webservice onto Axis 1.4 on JBoss 4.0.4.
JRE is 1.5.0_06.

I have done the following so far:

1. Created a XSD and then generated the complex types using JAXB2.0.
2. Compiled the complex types.
3. Created a Service endpoint which uses the complex types for both input
and output parameters.
4. Compiled the service (with JAXB jars in the classpath)
5. Created the following WSDD:

http://xml.apache.org/axis/wsdd/";
   xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>


 
 
 http://schemas.xmlsoap.org/soap/encoding/"/>
 http://schemas.xmlsoap.org/soap/encoding/"/>
 http://schemas.xmlsoap.org/soap/encoding/"/>




6. Ran JBOSS and then deployed the service using AdminClient.

This resulted in the following exception:

00:16:15,265 ERROR [WSDDDeployableItem] Unable to deploy typemapping:
{urn:MathUtil}PartyType
java.lang.ClassNotFoundException: java:generated.ObjectFactory
   at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1352)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1198)
   at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)

Questions:

1. What is the correct Serializer/Deserializer that needs to be specified in
the WSDD? I guess ObjectFactory is not the correct class.
2. The class generated.ObjectFactory is present in the WEB-INF/classes/
directory in axis.war. Is this related to ClassLoader issues in JBOSS? Does
it have any bearing on specifying the JAXB mapping?
3. Is it necessary to specify the JAXB binding to the generated WSDL? If so
what parameters need to be passed to specify the binding? I checked the
reference and saw a "-b" option for Java2WSDL but could not figure out the
exact usage.
4. Is it necessary to include the original XSD in the .war file? If yes,
where?
5. When I invoke this service, how do I create the complex datatypes on the
client side and correctly pass them? Currently I get a nice stacktrace on
the client side saying that there is no registered serializer/deserializer.
This occured both before and after I included the s in the
WSDD.

Whew, thats lots of questions... but I wasted my entire weekend trying to
get this stuff running!!! Appreciate all readers'/responders' patience ...
thanks a ton in advance!!!

Cheers all,
Tim


Re: Axis2 : Savan vs. Muse for WS-Notification

2007-04-02 Thread Chamikara Jayalath

Hi Gul,

Here is the corret SVN URL for Savan.
https://svn.apache.org/repos/asf/webservices/savan/trunk/java/

The new home page is http://ws.apache.org/savan/ (but this is not fully
complete yet).

Chamikara



On 4/2/07, Gul Onural <[EMAIL PROTECTED]> wrote:



Looks like both Savan and Muse are the implementation of
WS-Notification/Eventing.

None of these two is listed under Axis2 modules (*
http://ws.apache.org/axis2/modules/index.html*
).

I was wondering :

1.) Are they (Savan and Muse) active projects ?
2.) Is there any plans to integrate any of them to Axis2 as module ?
3.) Are their functionality equivalent ? (the version of the
WS-Notification spec. they implement, etc)
4.) Is there anyone using either of them with Axis2 ?

The only information I was able to find about Savan is at  *
http://wso2.org/projects/savan/java* ,
however
link to the Savan source code repository in that page is broken.

And 
*http://www.apachenews.org/archives/000932.html*says;
 "
***Modules supporting WS-Eventing (Apache Savan) *
*& WS-Transactions (Apache Kandula2) will be available soon after the
Apache Axis2 1.1.1 release*.".
But I haven't seen any recent news on Savan in Axis2 web site, yet.

I would greatly appreciate any information on this subject.

Gul