RE: Enum type in Axis2

2007-05-08 Thread Nicolas Rouiller
Hi Deepal,

Here my wsdl. I didn't try to codegen in Axis2 for that wsdl.

http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:ns0="http://mesfilesprovider.mes.softcomponent.ch/xsd";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:ns1="http://org.apache.axis2/xsd";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
targetNamespace="ch.softcomponent.mes">
  MESFilesProvider
  
http://mesfilesprovider.mes.softcomponent.ch/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://mesfilesprovider.mes.softcomponent.ch/xsd";>
  

  



  
  

  
  
  
  
  
  
  
  
  

  

  
  
  

  

  
  

  
  
  
  

  

  
  
  
  

  
  

  
  

  http://www.w3.org/2006/05/addressing/wsdl";
message="axis2:getFilesMessage" wsaw:Action="urn:getFiles" />
  

  
  
http://schemas.xmlsoap.org/soap/http";
style="document" />

  
  

  
  

  

  
  
http://schemas.xmlsoap.org/soap/http";
style="document" />

  
  

  
  

  

  
  


  
  

  
  

  

  
  

  http://192.168.111.1:8080/axis2/services/MESFilesProvider"; />


  http://192.168.111.1:8080/axis2/services/MESFilesProvider"; />


  http://192.168.111.1:8080/axis2/services/MESFilesProvider"; />

  


-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: mercredi, 9. mai 2007 08:18
To: axis-user@ws.apache.org
Subject: Re: Enum type in Axis2

Hi Nicolas ,
Do you have the wsdl ?

did you try to codegen in Axis2 for that wsdl ?

Thanks
Deepal

>Hi,
> 
>I want to use an enumerate type in my web service. I uses this web 
>serice from a .NET client. My problem is : when Visual Studio generate 
>the client stub, the enumerate type is converted in the following class :
> 
>[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mesfilespr
>ovide
>r.mes.softcomponent.ch/xsd")]
>public class MediaType {
>
>   /// 
>   [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
>   public MediaType AUDIO;
>
>   /// 
>   [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
>   public MediaType VIDEO;
>
>}
>
>Have you an idea? That would help me great!!!
>
>Nicolas
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

--
Thanks,
Deepal

"The highest tower is built one brick at a time"



-
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] issue when using wsdl2code to generate service [SEC=UNCLASSIFIED]

2007-05-08 Thread greg . lee-shoy
Hi,

In addition to the scenario in the previous email, the setup below seems 
to result in ExtensionMapper classes being generated with the same package 
name:

-A and B are two separate maven projects
-A and B both use the wsdl2code maven plugin, but contain different wsdls
-Both A and B are sub projects of parent project C. 

Running mvn compile on parent project C results in the ExtensionMappers 
generated in A and B having the same package name. 

With reference to the code, it seems like this behaviour is due to the 
extensionMapperPackageName variable in 
org.apache.axis2.schema.writer.JavaBeanWriter not being reset after the 
wsdl2code maven plugin is invoked.  Is it feasible to have the extension 
mapper packageName reset each time, or for some other similar change to be 
made?

Cheers,
Greg





[EMAIL PROTECTED] 
08/05/2007 09:58 AM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
[Axis2] issue when using wsdl2code to generate service [SEC=UNCLASSIFIED]
Reference


 Expires 







Hi, 

Our team is currently using Axis2 v1.2, and we have a maven2 project that 
requires java source code to be generated for 2 different wsdls.  We are 
using the wsdl2code maven plugin to generate the java code, with one 
execution for each wsdl.  e.g. 

 
org.apache.axis2 
axis2-wsdl2code-maven-plugin 
1.2 
 
 
 
xQuotes 
 
 src/main/wsdl/xQuotes.wsdl 
 au.gov.centrelink.jfs.servicemanager.service 
 
${project.build.directory}/generated-sources/axis2/wsdl2code/xQuotes
 

 
 
wsdl2code 
 
 
 
 
 
 
email 
 
 src/main/wsdl/Emailvernotestemail.wsdl 
 au.gov.centrelink.jfs.isislocation.service 
 
${project.build.directory}/generated-sources/axis2/wsdl2code/email
 

 
 
wsdl2code 
 
 
 
 
 
true 
 
 


However we are getting a problem during the compile phase, caused by 
duplicates of the generated ExtensionMapper class.  i.e. output from mvn 
compile is 


[INFO] 
 
[ERROR] BUILD FAILURE 
[INFO] 
 
[INFO] Compilation failure 
C:\Java\test\target\generated-sources\axis2\wsdl2code\xQuotes\src\com\xignite\www
 

\services\ExtensionMapper.java:[14,16] duplicate class: 
com.xignite.www.services 
.ExtensionMapper 



C:\Java\test\target\generated-sources\axis2\wsdl2code\xQuotes\src\com\xignite\www
 

\services\ExtensionMapper.java:[14,16] duplicate class: 
com.xignite.www.services 
.ExtensionMapper 


[INFO] 
 
[DEBUG] Trace 
org.apache.maven.BuildFailureException: Compilation failure 
C:\Java\test\target\generated-sources\axis2\wsdl2code\xQuotes\src\com\xignite\www
 

\services\ExtensionMapper.java:[14,16] duplicate class: 
com.xignite.www.services 
.ExtensionMapper 


It seems that the ExtensionMapper class for the second wsdl is generated 
into the same package as the ExtensionMapper class for the first wsdl.   

What I am unsure of is why this is happening.  Is this an issue with 
maven2 or with the wsdl2code plugin?  Or is it due to the approach we have 
used to generate code for 2 services within a single project?  I can't 
think of any other way to do this... 

I have attached the wsdls and pom.xml.  I was testing using the jdk 
version 1.4.2, maven version 2.0.6, and axis2 1.2 



Thanks in advance for any help, 
Greg** 
IMPORTANT: This e-mail is intended for the use of the addressee and may 
contain information that is confidential, commercially valuable or subject 
to legal or parliamentary privilege. If you are not the intended recipient 
you are notified that any review, re-transmission, disclosure, use or 
dissemination of this communication is strictly prohibited by several 
Commonwealth Acts of Parliament. If you have received this communication 
in error please notify the sender immediately and delete all copies of 
this transmission together with any attachments. 
** 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

**
IMPORTANT:  This e-mail is intended for the use of the addressee and may 
contain information that is confidential, commercially valuable or subject to 
legal or parliamentary privilege.

Dynamic Proxies

2007-05-08 Thread etoom etoom

Hi all,

New SOAP kits can generate proxies at runtime, the user provide an
Interface and a WSDL and the kit returns an object that can be used to
call the service. No stubs needed. Is their something similar for
Axis?

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



Re: Enum type in Axis2

2007-05-08 Thread Deepal Jayasinghe
Hi Nicolas ,
Do you have the wsdl ?

did you try to codegen in Axis2 for that wsdl ?

Thanks
Deepal

>Hi,
> 
>I want to use an enumerate type in my web service. I uses this web serice
>from a .NET client. My problem is : when Visual Studio generate the client
>stub, the enumerate type is converted in the following class :
> 
>[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mesfilesprovide
>r.mes.softcomponent.ch/xsd")]
>public class MediaType {
>
>   /// 
>   [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
>   public MediaType AUDIO;
>
>   /// 
>   [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
>   public MediaType VIDEO;
>
>}
>
>Have you an idea? That would help me great!!!
>
>Nicolas
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



Enum type in Axis2

2007-05-08 Thread Nicolas Rouiller
Hi,
 
I want to use an enumerate type in my web service. I uses this web serice
from a .NET client. My problem is : when Visual Studio generate the client
stub, the enumerate type is converted in the following class :
 
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mesfilesprovide
r.mes.softcomponent.ch/xsd")]
public class MediaType {

/// 
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public MediaType AUDIO;

/// 
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public MediaType VIDEO;

}

Have you an idea? That would help me great!!!

Nicolas


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



Re: [Axis2] WS-RM and Axis2 Asynch Client not Returning

2007-05-08 Thread Samisa Abeysinghe

Ted Jones wrote:

I am using Sandesha2 with an asynch Axis2 client. Using the example 
that comes with Sandesha2 (the asynch echo client), the onComplete() 
method of my callback is never hit. It appears the response is not 
returning.
 
Any ideas?


Did you try capturing message sequences with TCPMON and chek the message 
sequence?


Also, have a look into the server and client logs.

Samisa...


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



[Axis2 1.2] Java2WSDL with support of SwA and/or MTOM

2007-05-08 Thread Xinjun Chen

Hi,

I am trying to write a web service with attachment support.
The method signature is as follows:
String uploadFile(String userID, String fileName) {}
When the client invoke this uploadFile operation, he/she will upload a file
whose file name is "fileName".
The implementation of uploadFile send the client another attachment file,
and send the file name to the client as the response.

As can be seen, the Java class contains no information about the
attachments.
Using Java2WSDL, how can I generate a WSDL which mentions attachments? Do I
need to change the method signature?

My second question is:
What will be the differences between MTOM and SwA in terms of Web Service
implementation class (the signature) and the WSDL?

Another question about attachment is about interoperability.

From Axis2 user guide, MTOM is much better than SwA. However, MTOM is not

WS-I Basic Profile 1.0 or 1.1 compliant. Will there be any issue if my web
service uses MTOM and the client uses .NET or other non-Axis2 SOAP toolkit?


Regards,
Xinjun


Re: [axis2] help with binary attachments

2007-05-08 Thread LuCa



Thilina, 

I've disabled the MTOM at the axis2.xml, and, now the client worked fine
(even if at the client the MTOM kept enabled)!
The image  file was saved, and it was ok!

How can you explain it

tks,
LuCa




At 07:30 8/5/2007, you
wrote:Hi Luca,
Looking at the message traces it seems that your attachment is
transmitted inline.. Not as a MTOM attachment... It seems like you
do
not have MTOM enabled in the Axis2 server (Notice that the MIME
boundaries are missing)... Please check the axis2.xml of your axis2
server..
Following is an alternative quick fix to get this work...
 OMText
binaryNode = (OMText)
element.getFirstOMChild();binaryNode.setBinary(true);

//Extracting the data and saving
thanks,
Thilina
-- 
Thilina Gunarathne  - 
http://www.wso2.com -

http://thilinag.blogspot.com
-
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] help with binary attachments

2007-05-08 Thread LuCa


I was using axis2-1.1.1,so I've downloaded the 1.2 version, installed and
set the MTOM enabled at axis2.xml.
Of course, I've recompiled the service and the client
application...,
Now the error messaging is (when running the client):
 ERROR
===

java.lang.RuntimeException:
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: 
Unexpected EOF; was expecting a close tag for element

 at [row,col {unknown-source}]: [1,14236]

===

The TCPMONITOR messagins
are:
= REQUEST
===
POST
/axis2/services/GetImageService HTTP/1.1
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_29847B40D998EE2D421178658131132;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml"; charset=UTF-8
SOAPAction: "urn:receiveImage"
User-Agent: Axis2
Host: 127.0.0.1:
Transfer-Encoding: chunked
1d1
--MIMEBoundaryurn_uuid_29847B40D998EE2D421178658131132
Content-Type: application/xop+xml; charset=UTF-8;
type="text/xml"
Content-Transfer-Encoding: binary
Content-ID:
<0.urn:uuid:[EMAIL PROTECTED]>

--MIMEBoundaryurn_uuid_29847B40D998EE2D421178658131132--
0
= REQUEST
===

= RESPONSE
===
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_FFC36B12EF782CBABF1178658131946;
type="application/xop+xml";
start="<0.urn:uuid:[EMAIL PROTECTED]>";
start-info="text/xml";charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 08 May 2007 21:02:12 GMT
2000
--MIMEBoundaryurn_uuid_FFC36B12EF782CBABF1178658131946
Content-Type: application/xop+xml; charset=UTF-8;
type="text/xml"
Content-Transfer-Encoding: binary
Content-ID:
<0.urn:uuid:[EMAIL PROTECTED]>
/9j/4AAQSkZJRgABAQEASABIAAD//gAMQXBwbGVNYXJrDf/bAIQAIRcZHRkVIR0bHSUjIScxUTUxLS0xY0dLO1F1Z3t5c2dxb4KSup6CirCMb3Gi3KSwwMbQ0tB9nOT04sryuszQyAEjJSUxKzFfNTVfyIZxhsjIy
. snip ...
TdK/487r/dP/AKCaBJ6GrZ6wt1deT5RQEHYxbO7HtjilvtXitJkjEZkyAxOcYBrH0f8A4/4Px/nSaz/x+L/1yX+VAXOkuLpYLRrjBZQoIA75qnba3BPJsdWiJ+7nnP5Uuof8gI/9c0/pXPWn/H3D9aAbN5NbRr3yBCRGXKeZu/XGKLvUdOjuGSWJZHXhiY88/lWLD/yEF/67H+ZqPU/+Qlcf9dDQNO5//9k=38

--MIMEBoundaryurn_uuid_FFC36B12EF782CBABF1178658131946
2
--
2000
--MIMEBoundaryurn_uuid_FFC36B12EF782CBABF1178658131946
Content-Type: application/xop+xml; charset=UTF-8;
type="text/xml"
Content-Transfer-Encoding: binary
Content-ID:
<0.urn:uuid:[EMAIL PROTECTED]>

http://www.dees.ufmg.br
">/9j/4AAQSkZJRgABAQEASABIAAD//gAMQXBwbGVNYXJrDf/bAIQAIRcZHRkVIR0bHSUjIScxUTUxLS0xY0dLO1F1Z3t5c2dxb4KSup6CirCMb3Gi3KSwwMbQ0tB9nOT04sryuszQyAEjJSUxKzFfNTVfyIZxhsjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjI/8QBogAAAQUBAQEBAQEAAAECAwQFBgcICQoLAQADAQEBAQEBAQEBAQIDBAUGB
snip.
XhiY88/lWLD/yEF/67H+ZqPU/+Qlcf9dDQNO5//9k=
38
--MIMEBoundaryurn_uuid_FFC36B12EF782CBABF1178658131946
2
--
0
= RESPONSE
===

Debbuging with eclipse, I've noted that the exception happens when
executing the client line command:
OMElement element =
stub.receiveImage().get_return();
what should I do now? Ath the tcpmon messages now we can see the
word "binary"
Please, anyone help me
remembering, my client code source is:
= CLIENT SOURCE CODE
===

public

static

void
 main(String [] args)
throws
 Exception {
// create the
stub 
GetImageServiceStub stub =
new
 GetImageServiceStub();
  
// Enable MTOM
in the client side

stub._getServiceClient().getOptions().setProperty(
Constants.Configuration.
ENABLE_MTOM
,
Constants.
VALUE_TRUE);
//Increase the
time out when sending large attachments

stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(20);

// result
string
String
resultMsg=
"";
try
 {
// invoking the
service and getting the response 
// getting the OMelement from the response  of the webService 
OMElement element =
stub.receiveImage().get_return();
OMText binaryNode = (OMText) element.getFirstOMChild();
   
binaryNode.setBinary(
true
);
    String fileName =

"test.jpg";
   
//Extracting the
data and saving
    DataHandler
actualDH=(DataHandler) binaryNode.getDataHandler();
   
    
   
//DataSource ds
= new inp
   
FileOutputStream imageOutStream =
new
 FileOutputStream(fileName);
   

//binaryNode.serializeAndConsume(imageOutStream);
   
actualDH.writeTo(imageOutStream);
    resultMsg =
"File
received!!! Name:
"+fileName;
}
catch
 (Exception e) {
resultMsg
=
"error\n"
+e.getMessage();
}
System.out
.println(

"Done!\n"
+resultMsg);
}
= CLIENT SOURCE CODE
===

At 07:30 8

Re: AxisServlet NullPointerException

2007-05-08 Thread Jeremy

Jack Sprat wrote:

*/Jeremy <[EMAIL PROTECTED]>/* wrote:

Jack Sprat wrote:
> I believe I found the bug in the
> org.apache.axis2.transport.http.HTTPTransportUtils class. The
> following "if" condition lacks a set of parentheses:
>
> if ((msgContext.getEnvelope() == null) && soapVersion !=
> VERSION_SOAP11) {
> msgContext.setEnvelope(new
> SOAP12Factory().getDefaultEnvelope());
> }
>

The != operator takes precedence over the && operator. So the
parentheses are not necessary (actually, the first set isn't
necessary
either - it just helps with readability).

Jeremy

OK. But why was the condition satisfied when the envelope was *NOT* 
null and the soapVersion was equal to 1?
I have inspected and re-inspected these variables in the Eclipse WTP 
debugger but I just cannot see why this condition would be satisfied.
I try to step into the SOAP12Factory().getDefaultEnvelope() method and 
the exception is immediately thrown.


What is the value of the constant VERSION_SOAP11?  Are you sure it's 1?  
Check and make sure.


Before the if block, try logging a statement like soapVersion == 
VERSION_SOAP11.  (or assign it to a bool variable and inspect it in the 
debugger).  If it's true, then the if condition is firing incorrectly 
and you have something really weird going on.  If it's false, then 
things are not as you expect them to be (which is almost always the case 
when debugging :-))


JEremy

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



Re: [Axis2] WS-RM and Axis2 Asynch Client not Returning

2007-05-08 Thread Deepal Jayasinghe
Yes  it is wrong , please create a JIRA

Thanks
Deepal

Martin Gainty wrote:

> yes That worked ..thanks for the suggestion Deepal
>
> I thini I've found a bug with messageReceiver spec in the
> \src\modules\samples\userguide\example\META-INF\services.xml
> messageReceiver for WsaMappingTest service
> 
>
>
>Sample to via WSA Mapping
>
> locked="false">userguide.example3.MyService
>
>
> http://www.w3.org/2004/08/wsdl/in-only";
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
> http://www.w3.org/2004/08/wsdl/in-out";
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>urn:sample/echo
>
>
> 
>
> Is this in JIRA???
> Thanks/
> Martin--
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
> - Original Message - From: "Deepal Jayasinghe"
> <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, May 08, 2007 1:21 PM
> Subject: Re: [Axis2] WS-RM and Axis2 Asynch Client not Returning
>
>
>> Hi Martin,
>>
>> You need to change your axis2.xml to fix this issue. For that please add
>> following element into axis2.xml/PhaseOrder
>>
>> 
>>
>> Thanks
>> Deepal
>>
>>> Good Afternoon Ted
>>>
>>> Downloading the sandesha2 distro from
>>> http://people.apache.org/repo/m1-snapshot-repository/org.apache.sandesha2/mars/
>>>
>>>
>>> While attempting to engage the sandesha2 module globally i see this
>>>
>>> Invalid phases please recheck axis2.xml RMPhase for the handler
>>> SandeshaInHandler
>>>
>>> where the module.xml for sandesha defined the InHandler as
>>>   >> class="org.apache.sandesha2.handlers.SandeshaInHandler">
>>> 
>>> 
>>>
>>> (Hope you dont mind Blue)
>>>
>>> Which distro/mar are we supposed to be implementing?
>>> Thanks,
>>> Martin--
>>>
>>> This email message and any files transmitted with it contain
>>> confidential
>>> information intended only for the person(s) to whom this email
>>> message is
>>> addressed.  If you have received this email message in error, please
>>> notify
>>> the sender immediately by telephone or email and destroy the original
>>> message without making a copy.  Thank you.
>>>
>>> - Original Message -
>>> *From:* Ted Jones 
>>> *To:* axis-user@ws.apache.org 
>>> *Sent:* Tuesday, May 08, 2007 12:17 PM
>>> *Subject:* [Axis2] WS-RM and Axis2 Asynch Client not Returning
>>>
>>> I am using Sandesha2 with an asynch Axis2 client. Using the
>>> example that comes with Sandesha2 (the asynch echo client), the
>>> onComplete() method of my callback is never hit. It appears the
>>> response is not returning.
>>>
>>> Any ideas?
>>>
>>> Thanks,
>>> Ted
>>>
>>
>> -- 
>> Thanks,
>> Deepal
>> 
>> "The highest tower is built one brick at a time"
>>
>>
>>
>> -
>> 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]
>
>
>

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



Re: Axis2/POJO: Caveats with data classes?

2007-05-08 Thread Deepal Jayasinghe
It is addition of getters and setters which fix the problem,

Thanks
Deepal

Jeremy wrote:

> Deepal Jayasinghe wrote:
>
>> Hi Jeremy ,
>> by changing your SomeType  as shown below, I was able to fix the issue.
>>   
>
> Hey Deepal,
> Thanks for looking into the problem.  It's interesting that this fixes
> it.  I wonder if it's the change from object-based fields (e.g.
> Integer) to native language typed fields (e.g. int), or the addition
> of the getter/setter methods?  In any case, I suppose I should have
> adhered to JavaBean-ish standards in the first place.  Thanks for the
> solution!
>
> Jeremy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



Re: AxisServlet NullPointerException

2007-05-08 Thread Jack Sprat
Jeremy <[EMAIL PROTECTED]> wrote: Jack Sprat wrote:
> I believe I found the bug in the 
> org.apache.axis2.transport.http.HTTPTransportUtils class.  The 
> following "if" condition lacks a set of parentheses:
>
> if ((msgContext.getEnvelope() == null) && soapVersion != 
> VERSION_SOAP11) {
> msgContext.setEnvelope(new 
> SOAP12Factory().getDefaultEnvelope());
> }
>
> There needs to be a set of parenteses around the 2nd condition 
> (soapVersion != VERSION_SOAP11) condition.
> The soapVersion variable had a value of 1 in this case so the 
> condition should *NOT* have been satisfied.  The operation within the 
> "if" statement caused the exception.

The != operator takes precedence over the && operator.  So the 
parentheses are not necessary (actually, the first set isn't necessary 
either - it just helps with readability).

Jeremy

OK. But why was the condition satisfied when the envelope was *NOT* null and 
the soapVersion was equal to 1?
I have inspected and re-inspected these variables in the Eclipse WTP debugger 
but I just cannot see why this condition would be satisfied.
I try to step into the SOAP12Factory().getDefaultEnvelope() method and the 
exception is immediately thrown.


 
-
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.

Re: [Axis2] axis2-aar-maven-plugin - Specifying classifier

2007-05-08 Thread Martin Gainty
Good Afternoon Eddiewhat happens when you request maven to specifically use 
the devel classifier e.g.mvn compile -Dclassifier=dvel
?M--NB:feel free to email offline as this is pretty close to O/T to axis and 
probably related more to mavenThis email message and any files transmitted 
with it contain confidential

information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Edward Bush" <[EMAIL PROTECTED]>

To: ; "Martin Gainty" <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2007 2:12 PM
Subject: RE: [Axis2] axis2-aar-maven-plugin - Specifying classifier


Martin,

Please ... Call me Eddie.  Edward is too formal :-)


From which Axis src folder am I executing?

- I'm not sure I'm clear what you mean here.
- I run 'mvn clean compile' in the dir where
 my project's pom.xml is located.

Which Axis maven file am I executing?
- I'm not sure I'm clear what you mean here.
- Maven 2.0.4 / Axis 1.2 / Plugin v.1.2 also
- MAVEN_HOME points to my Maven2 2.0.4 install.
- AXIS2_HOME points to my Axis2 1.2 install.

Which target/goals am I specifying?
- mvn clean compile
- axis2-aar-maven-plugin is configured for
 compile phase
- aar file is created
- aar file contents seem fine
- aar file name does not reflect classifier.
- Currently artifact-version.aar
- SHOULD be artifact-classifier-version.aar

Have I customized maven.xml or pom.xml from src distro?
- Maven2 installation was done via binary.
- No customizations beyond having mirrors in my
 settings.xml for our local repositories.

Eddie Bush
Software Analyst
Clinical Reference Laboratory
bushe at crlcorp dot com

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 08, 2007 10:42 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] axis2-aar-maven-plugin - Specifying classifier

Hello Edward


From which AXIS src folder are you executing?

Which AXIS maven file are you executing?
How are you executing the maven file?
Which target/goals are you specifying?
Have you customised either the maven.xml and or pom.xml from src
distro..if so how?

Thx/
M--
This email message and any files transmitted with it contain
confidential information intended only for the person(s) to whom this
email message is addressed.  If you have received this email message in
error, please notify the sender immediately by telephone or email and
destroy the original message without making a copy.  Thank you.

- Original Message -
From: "Edward Bush" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 08, 2007 10:55 AM
Subject: [Axis2] axis2-aar-maven-plugin - Specifying classifier


Team,

I'm trying to use the classifier parameter to influence the generated
artifact name.  Doesn't seem to be working - I've even tried a
hard-coded value in lieu of a dynamic property.  Is this a bug, or am I
doing something wrong?

Here's how I have the plugin configured:


org.apache.axis2
axis2-aar-maven-plugin
1.2


compile

aar


dvel

target/generated-sources/axis2/wsdl2code/resources/serv
ices.xml

target/generated-sources/axis2/wsdl2code/resources/TestService
wsdl

TestService.wsdl





Thanks in advance!

Eddie Bush
Software Analyst
Clinical Reference Laboratory
bushe at crlcorp dot com

-
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: AxisServlet NullPointerException

2007-05-08 Thread Jeremy

Jack Sprat wrote:
I believe I found the bug in the 
org.apache.axis2.transport.http.HTTPTransportUtils class.  The 
following "if" condition lacks a set of parentheses:


if ((msgContext.getEnvelope() == null) && soapVersion != 
VERSION_SOAP11) {
msgContext.setEnvelope(new 
SOAP12Factory().getDefaultEnvelope());

}

There needs to be a set of parenteses around the 2nd condition 
(soapVersion != VERSION_SOAP11) condition.
The soapVersion variable had a value of 1 in this case so the 
condition should *NOT* have been satisfied.  The operation within the 
"if" statement caused the exception.


The != operator takes precedence over the && operator.  So the 
parentheses are not necessary (actually, the first set isn't necessary 
either - it just helps with readability).


Jeremy

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



Re: [Axis2] WS-RM and Axis2 Asynch Client not Returning

2007-05-08 Thread Martin Gainty

yes That worked ..thanks for the suggestion Deepal

I thini I've found a bug with messageReceiver spec in the 
\src\modules\samples\userguide\example\META-INF\services.xml 
messageReceiver for WsaMappingTest service


   
   
   Sample to via WSA Mapping
   
   locked="false">userguide.example3.MyService

   
   
http://www.w3.org/2004/08/wsdl/in-only"; 
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
http://www.w3.org/2004/08/wsdl/in-out"; 
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>

   urn:sample/echo
   
   


Is this in JIRA???
Thanks/
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Deepal Jayasinghe" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, May 08, 2007 1:21 PM
Subject: Re: [Axis2] WS-RM and Axis2 Asynch Client not Returning



Hi Martin,

You need to change your axis2.xml to fix this issue. For that please add
following element into axis2.xml/PhaseOrder



Thanks
Deepal


Good Afternoon Ted

Downloading the sandesha2 distro from
http://people.apache.org/repo/m1-snapshot-repository/org.apache.sandesha2/mars/

While attempting to engage the sandesha2 module globally i see this

Invalid phases please recheck axis2.xml RMPhase for the handler
SandeshaInHandler

where the module.xml for sandesha defined the InHandler as
  



(Hope you dont mind Blue)

Which distro/mar are we supposed to be implementing?
Thanks,
Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message -
*From:* Ted Jones 
*To:* axis-user@ws.apache.org 
*Sent:* Tuesday, May 08, 2007 12:17 PM
*Subject:* [Axis2] WS-RM and Axis2 Asynch Client not Returning

I am using Sandesha2 with an asynch Axis2 client. Using the
example that comes with Sandesha2 (the asynch echo client), the
onComplete() method of my callback is never hit. It appears the
response is not returning.

Any ideas?

Thanks,
Ted



--
Thanks,
Deepal

"The highest tower is built one brick at a time"



-
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: AxisServlet NullPointerException

2007-05-08 Thread Jack Sprat
I believe I found the bug in the 
org.apache.axis2.transport.http.HTTPTransportUtils class.  The following "if" 
condition lacks a set of parentheses:

if ((msgContext.getEnvelope() == null) && soapVersion != 
VERSION_SOAP11) {
msgContext.setEnvelope(new 
SOAP12Factory().getDefaultEnvelope());
}

There needs to be a set of parenteses around the 2nd condition (soapVersion != 
VERSION_SOAP11) condition.
The soapVersion variable had a value of 1 in this case so the condition should 
*NOT* have been satisfied.  The operation within the "if" statement caused the 
exception.

Should a JIRA be raised for this?

Thanks,
T.


Jack Sprat <[EMAIL PROTECTED]> wrote: I have a web application to which I added 
Axis 1.2.  The Java class stubs were generated using he WSDL2Java tool using 
XMLBeans data binding.
 Everything appears to be configured right since the methods in the skeleton 
class are being invoked correctly.
 The echo method works fine.  However, when I try another operation I always 
get a NullPointerException thrown from the doPost method of the 
org.apache.axis2.transport.http.AxisServlet class.  The error says only:
 
 May 8, 2007 1:40:01 PM org.apache.axis2.transport.http.AxisServlet doPost
 SEVERE: java.lang.NullPointerException
 
 I can't seem to find any more info. than that.  Tracing the code in the 
Eclipse WTP I see the call go through the skeleton class and then return to the 
MessageReceiverInOut class.  Stepping into that class yields no errors.
 The code then steps into the AbstractInOutSynchMessageReceiver and that is 
where the error occurs.  That class is in the  axis2-kernel-1.2.jar file.
 
 Can anyone *please* point me in the right direction?
 
 Thanks.
 T.
 


   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Re: Axis2/POJO: Caveats with data classes?

2007-05-08 Thread Jeremy

Deepal Jayasinghe wrote:

Hi Jeremy ,
by changing your SomeType  as shown below, I was able to fix the issue.
  

Hey Deepal,
Thanks for looking into the problem.  It's interesting that this fixes 
it.  I wonder if it's the change from object-based fields (e.g. Integer) 
to native language typed fields (e.g. int), or the addition of the 
getter/setter methods?  In any case, I suppose I should have adhered to 
JavaBean-ish standards in the first place.  Thanks for the solution!


Jeremy

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



AxisServlet NullPointerException

2007-05-08 Thread Jack Sprat
I have a web application to which I added Axis 1.2.  The Java class stubs were 
generated using he WSDL2Java tool using XMLBeans data binding.
 Everything appears to be configured right since the methods in the skeleton 
class are being invoked correctly.
 The echo method works fine.  However, when I try another operation I always 
get a NullPointerException thrown from the doPost method of the 
org.apache.axis2.transport.http.AxisServlet class.  The error says only:
 
 May 8, 2007 1:40:01 PM org.apache.axis2.transport.http.AxisServlet doPost
 SEVERE: java.lang.NullPointerException
 
 I can't seem to find any more info. than that.  Tracing the code in the 
Eclipse WTP I see the call go through the skeleton class and then return to the 
MessageReceiverInOut class.  Stepping into that class yields no errors.
 The code then steps into the AbstractInOutSynchMessageReceiver and that is 
where the error occurs.  That class is in the axis2-kernel-1.2.jar file.
 
 Can anyone *please* point me in the right direction?
 
 Thanks.
 T.
 
 
 
-
Don't get soaked.  Take a quick peak at the forecast 
 with theYahoo! Search weather shortcut.

Re: Telling when a client disconnects

2007-05-08 Thread Wayne Johnson
OK, it looks like if my SoapBindingSkeleton is an implementation of 
ServiceLifecycle then JavaProvider.java will call a destroy() method when a 
session is ended.

My question: Is there a way to cause wsdl2java (et al) to create
my skeleton with this interface without resorting to manually changing the code 
whenever we regen the skeleton?  

Is there a better way to do this?  Is there a way to register a 
AxisHTTPSessionListener so I can get notified?

Wayne Johnson <[EMAIL PROTECTED]> wrote: I have an Axis WSDD service that needs 
to tell if and when a client disconnects, so that we can clean up session 
information.  I can't simply rely on a logoff method getting called, because 
the disconnect might be based on external factors, like loss of network, etc.

We also appear to have a problem with the client timing out.  Is there a way to 
detect when this happens before we try to send the next packet?  Or of 
preventing timeouts?

Thanks.




--- 
Wayne Johnson, | There are two kinds of people: Those 
3943 Penn Ave. N.  | who  say to God, "Thy will be done," 
Minneapolis, MN 55412-1908 | and those to whom God says, "All right, 
(612) 522-7003 | then,  have it your way." --C.S. Lewis
   

-
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.


--- 
Wayne Johnson, | There are two kinds of people: Those 
3943 Penn Ave. N.  | who say to God, "Thy will be done," 
Minneapolis, MN 55412-1908 | and those to whom God says, "All right, 
(612) 522-7003 | then,  have it your way." --C.S. Lewis

 
-
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.

Re: Axis2/POJO: Caveats with data classes?

2007-05-08 Thread Deepal Jayasinghe
Hi Jeremy ,
by changing your SomeType  as shown below, I was able to fix the issue.

public class SomeType {
public int foo;
public int bar;
public float baz;


public int getFoo() {
return foo;
}

public void setFoo(int foo) {
this.foo = foo;
}

public int getBar() {
return bar;
}

public void setBar(int bar) {
this.bar = bar;
}

public float getBaz() {
return baz;
}

public void setBaz(float baz) {
this.baz = baz;
}
}

> Martin Gainty wrote:
>
>> Hello Jeremy
>>
>> here is one an example which identifies a POJO named
>> sample.pojo.service.WeatherService.
>>> name="ServiceClass">sample.pojo.service.WeatherService
>>
> I did set up the services.xml, and the web service is fine except that
> the parameters are not being passed properly.
>
> I came up with this example to show what I'm doing; maybe someone can
> tell me where I went wrong.  There is one service class (BasicExample)
> and one auxiliary class that essentially functions as a struct (or a
> ComplexType in SOAP).
>
> //---BasicExample.java
>
> package guy.jeremy.examples;
>
> public class BasicExample
> {
>  public Boolean doomedToFail(SomeType parameter)
>{
>if(parameter == null)
>return Boolean.FALSE;
>  return Boolean.TRUE;
>}
>  public BasicExample()
>{
>  }
> }
> //-
>
> //---SomeType.java
>
> package guy.jeremy.examples;
>
> public class SomeType
> {
>public Integer foo;
>public Integer bar;
>public Float baz;
> }
>
> //---
>
>
> I send this SOAP message:
>
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>   
>xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
>  xmlns:ns="http://examples.jeremy.guy/xsd";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> 
>52.2
>78
>95
> 
>  
>   
> 
>
>
> and get back a "false", meaning the parameter was recieved as null
> even though it was clearly passed in.
>
>
> What am I doing wrong here?
>
>
> Thanks,
> Jeremy
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



Re: Rampart compatibility with non-Axis libs

2007-05-08 Thread Collin Peters

Can you recommend a .NET client that I can test with?

I have yet to find any examples of this or really even any references
which is why I ask the question.  Looking through the Rampart examples
there are a ton of options and what I'm trying to figure out is if all
of these options are compatible with an Axis2 server and a NON-Axis2
client.

The features I would like to use are authentication and encryption.
Is it easier to just use SSL to encrypt these messages?

Regards,
Collin

On 5/7/07, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote:

Collin Peters wrote:
> I'm using Axis2 and am wondering how compatible it is with non-Axis
> web service libraries.  So for example, I have some web services on my
> server that are built on Axis2.  I want these web services to be
> secured with a login and encryption (via Rampart).  Can a non-Axis
> client access these web services?
Yes you should be able to. Just try a .NET client with Axis2.

Samisa...


-
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] axis2-aar-maven-plugin - Specifying classifier

2007-05-08 Thread Edward Bush
Martin,

Please ... Call me Eddie.  Edward is too formal :-) 

>From which Axis src folder am I executing?
- I'm not sure I'm clear what you mean here.
- I run 'mvn clean compile' in the dir where
  my project's pom.xml is located.

Which Axis maven file am I executing?
- I'm not sure I'm clear what you mean here.
- Maven 2.0.4 / Axis 1.2 / Plugin v.1.2 also
- MAVEN_HOME points to my Maven2 2.0.4 install.
- AXIS2_HOME points to my Axis2 1.2 install.

Which target/goals am I specifying?
- mvn clean compile
- axis2-aar-maven-plugin is configured for
  compile phase
- aar file is created
- aar file contents seem fine
- aar file name does not reflect classifier.
- Currently artifact-version.aar
- SHOULD be artifact-classifier-version.aar

Have I customized maven.xml or pom.xml from src distro?
- Maven2 installation was done via binary.
- No customizations beyond having mirrors in my
  settings.xml for our local repositories.

Eddie Bush
Software Analyst
Clinical Reference Laboratory
bushe at crlcorp dot com

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 08, 2007 10:42 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] axis2-aar-maven-plugin - Specifying classifier

Hello Edward

>From which AXIS src folder are you executing?
Which AXIS maven file are you executing?
How are you executing the maven file?
Which target/goals are you specifying?
Have you customised either the maven.xml and or pom.xml from src
distro..if so how?

Thx/
M--
This email message and any files transmitted with it contain
confidential information intended only for the person(s) to whom this
email message is addressed.  If you have received this email message in
error, please notify the sender immediately by telephone or email and
destroy the original message without making a copy.  Thank you.

- Original Message -
From: "Edward Bush" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 08, 2007 10:55 AM
Subject: [Axis2] axis2-aar-maven-plugin - Specifying classifier


Team,

I'm trying to use the classifier parameter to influence the generated
artifact name.  Doesn't seem to be working - I've even tried a
hard-coded value in lieu of a dynamic property.  Is this a bug, or am I
doing something wrong?

Here's how I have the plugin configured:


org.apache.axis2
axis2-aar-maven-plugin
1.2


compile

aar


dvel

target/generated-sources/axis2/wsdl2code/resources/serv
ices.xml

target/generated-sources/axis2/wsdl2code/resources/TestService
wsdl

TestService.wsdl





Thanks in advance!

Eddie Bush
Software Analyst
Clinical Reference Laboratory
bushe at crlcorp dot com

-
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/POJO: Caveats with data classes?

2007-05-08 Thread Jeremy

Martin Gainty wrote:

Hello Jeremy

here is one an example which identifies a POJO named 
sample.pojo.service.WeatherService.
   name="ServiceClass">sample.pojo.service.WeatherService


I did set up the services.xml, and the web service is fine except that 
the parameters are not being passed properly.


I came up with this example to show what I'm doing; maybe someone can 
tell me where I went wrong.  There is one service class (BasicExample) 
and one auxiliary class that essentially functions as a struct (or a 
ComplexType in SOAP).


//---BasicExample.java

package guy.jeremy.examples;

public class BasicExample
{
  
   public Boolean doomedToFail(SomeType parameter)

   {
   if(parameter == null)
   return Boolean.FALSE;
  
   return Boolean.TRUE;

   }
  
   public BasicExample()

   {
  
   }

}
//-

//---SomeType.java

package guy.jeremy.examples;

public class SomeType
{
   public Integer foo;
   public Integer bar;
   public Float baz;
}

//---


I send this SOAP message:

http://schemas.xmlsoap.org/soap/envelope/";>
  
 http://schemas.xmlsoap.org/soap/encoding/";
 xmlns:ns="http://examples.jeremy.guy/xsd";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

   52.2
   78
   95

 
  



and get back a "false", meaning the parameter was recieved as null even though 
it was clearly passed in.


What am I doing wrong here?


Thanks,
Jeremy 








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



Re: Keystore in Axis2 war

2007-05-08 Thread Martin Gainty
Sridhar--
did you try
$JBOSS_HOME/server/default/conf/props
?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

  - Original Message - 
  From: sridhar vudutha 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, May 08, 2007 1:08 PM
  Subject: Keystore in Axis2 war


  Hello,
  I'm having trouble taking out the KeyStore or the properties file from 
the Axis2 war file. As long as they are in the Axis2.war/WEB-INF/classes 
directory, everything works fine. I'm using JBoss 4.0.5 and would like to put 
KeyStore or the properties file outside the Axis2.war file. I tried putting it 
in Jboss/server/default/lib ; Jboss/server/conf and also manually updated the 
JBoss CLASSPATH in the run.bat file but doesn't work. 
   
  The properties  file (test.properties) in Axis2.war/WEB-INF/classes folder 
has the following contents.

  
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
  org.apache.ws.security.components.crypto.Merlin
  org.apache.ws.security.crypto.merlin.keystore.type=jks
  org.apache.ws.security.crypto.merlin.keystore.password=password
  org.apache.ws.security.crypto.merlin.keystore.alias=uattest 
  org.apache.ws.security.crypto.merlin.alias.password=password
  org.apache.ws.security.crypto.merlin.file=TestKeyStore

  If I keep both the TestKeyStore and test.properties files in the 
Axis2.war/WEB-INF/classes folder, it works fine. 

  Can someone please suggest me how to put make the properties file or the 
KeyStore file available to Axis2.war after it is deployed?

  I'm putting Axis2.war in an ear which contains some jars and 2 other war 
files.

  Any help would be greatly appreciated.

  Thanks,
  Sridhar.

Re: [Axis2] WS-RM and Axis2 Asynch Client not Returning

2007-05-08 Thread Paul Fremantle

Ted

Can I suggest you turn logging on for Axis2 and Sandesha2 in your
log4j.properties?

Paul

On 5/8/07, Ted Jones <[EMAIL PROTECTED]> wrote:



I am using Sandesha2 with an asynch Axis2 client. Using the example that
comes with Sandesha2 (the asynch echo client), the onComplete() method of my
callback is never hit. It appears the response is not returning.

Any ideas?

Thanks,
Ted



--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: [Axis2] WS-RM and Axis2 Asynch Client not Returning

2007-05-08 Thread Deepal Jayasinghe
Hi Martin,

You need to change your axis2.xml to fix this issue. For that please add
following element into axis2.xml/PhaseOrder



Thanks
Deepal

> Good Afternoon Ted
>
> Downloading the sandesha2 distro from
> http://people.apache.org/repo/m1-snapshot-repository/org.apache.sandesha2/mars/
>
> While attempting to engage the sandesha2 module globally i see this
>
> Invalid phases please recheck axis2.xml RMPhase for the handler
> SandeshaInHandler
>
> where the module.xml for sandesha defined the InHandler as
>class="org.apache.sandesha2.handlers.SandeshaInHandler">
> 
> 
>
> (Hope you dont mind Blue)
>
> Which distro/mar are we supposed to be implementing?
> Thanks,
> Martin--
>
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
> - Original Message -
> *From:* Ted Jones 
> *To:* axis-user@ws.apache.org 
> *Sent:* Tuesday, May 08, 2007 12:17 PM
> *Subject:* [Axis2] WS-RM and Axis2 Asynch Client not Returning
>
> I am using Sandesha2 with an asynch Axis2 client. Using the
> example that comes with Sandesha2 (the asynch echo client), the
> onComplete() method of my callback is never hit. It appears the
> response is not returning.
>  
> Any ideas?
>  
> Thanks,
> Ted
>

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



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



Re: [Axis2] WS-RM and Axis2 Asynch Client not Returning

2007-05-08 Thread Martin Gainty
Good Afternoon Ted

Downloading the sandesha2 distro from 
http://people.apache.org/repo/m1-snapshot-repository/org.apache.sandesha2/mars/

While attempting to engage the sandesha2 module globally i see this

Invalid phases please recheck axis2.xml RMPhase for the handler 
SandeshaInHandler

where the module.xml for sandesha defined the InHandler as
  



(Hope you dont mind Blue)

Which distro/mar are we supposed to be implementing?
Thanks,
Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

  - Original Message - 
  From: Ted Jones 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, May 08, 2007 12:17 PM
  Subject: [Axis2] WS-RM and Axis2 Asynch Client not Returning


  I am using Sandesha2 with an asynch Axis2 client. Using the example that 
comes with Sandesha2 (the asynch echo client), the onComplete() method of my 
callback is never hit. It appears the response is not returning.

  Any ideas?

  Thanks,
  Ted

Keystore in Axis2 war

2007-05-08 Thread sridhar vudutha

Hello,
   I'm having trouble taking out the KeyStore or the properties file from
the Axis2 war file. As long as they are in the Axis2.war/WEB-INF/classes
directory, everything works fine. I'm using JBoss 4.0.5 and would like to
put KeyStore or the properties file outside the Axis2.war file. I tried
putting it in Jboss/server/default/lib ; Jboss/server/conf and also manually
updated the JBoss CLASSPATH in the run.bat file but doesn't work.

The properties  file (test.properties) in Axis2.war/WEB-INF/classes
folder has the following contents.

org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=password
org.apache.ws.security.crypto.merlin.keystore.alias=uattest
org.apache.ws.security.crypto.merlin.alias.password=password
org.apache.ws.security.crypto.merlin.file=TestKeyStore

If I keep both the TestKeyStore and test.properties files in the
Axis2.war/WEB-INF/classes
folder, it works fine.

Can someone please suggest me how to put make the properties file or the
KeyStore file available to Axis2.war after it is deployed?

I'm putting Axis2.war in an ear which contains some jars and 2 other war
files.

Any help would be greatly appreciated.

Thanks,
Sridhar.


Re: NumerFormatException when sending a null int

2007-05-08 Thread Collin Peters

Hmm I upgraded to Axis2 1.2 (recently released) and it seems to
have fixed this problem.

On 5/7/07, Collin Peters <[EMAIL PROTECTED]> wrote:

Hmm no, it was auto-mapped to 

How do I set this nillable to be true?  Must I not use auto-generated
WSDL?  For this particular class (which has 50+ variables) nearly all
of the variables can be null.  Is there some easy way to set all
fields to be nillable?

On 5/7/07, Martin Gainty <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> 
> 
> 
> 
>
> have you verified the element has nillable="true" attribute??
> M--
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
> - Original Message -
> From: "Collin Peters" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, May 07, 2007 6:21 PM
> Subject: NumerFormatException when sending a null int
>
>
> > There has to be a simple answer for this that I haven't been able to
> > find.  This is one of those difficult things to search for because all
> > the terms are very common.
> >
> > I have a simple value object class that is being sent via a simple web
> > service call.  Inside the class are some Integer variables that may
> > not be set when sent.  So I can easily create a new VO class, and send
> > it from my client to the server.
> >
> > The problem is that on the server I get a NumberFormatException
> > because it is trying to create an Integer from an empty string.  The
> > exact error is:
> > java.lang.NumberFormatException: For input string: ""
> > at java.lang.NumberFormatException.forInputString(Unknown Source)
> > at java.lang.Integer.parseInt(Unknown Source)
> > ...
> >
> > Using tcpmon I see that the SOAP being sent is:
> > ...
> > http://dataimport.processes.ix/xsd";>
> >
> >   hank
> >   hank
> >> xmlns:nil="http://ww.w3.org/2001/XMLSchema-instance"; nil:nil="true" />
> >
> > 
> > ...
> >
> > So my question is... why is it taking a null value, and trying to call
> > parseInt on an empty string?  What I thought would have happened is
> > that it would correctly deserialize into a null value, or that it
> > wouldn't even send the null value in the SOAP call.
> >
> > There has to be something simple that I am missing here.  I am using
> > Axis 2 and can provide code if necessary.  Please point me to any docs
> > that are applicable to this subject.
> >
> > Regards,
> > Collin Peters
> >
> > -
> > 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] WS-RM and Axis2 Asynch Client not Returning

2007-05-08 Thread Ted Jones
I am using Sandesha2 with an asynch Axis2 client. Using the example that
comes with Sandesha2 (the asynch echo client), the onComplete() method
of my callback is never hit. It appears the response is not returning.
 
Any ideas?
 
Thanks,
Ted


Re: [Axis2] Web service with no implementation

2007-05-08 Thread Daniel Feist

RawXMLInOutMessageReceiver "as is" will not work for my scenario as it
requires a service implementation with service methods that take OMElement
parameters.  I don't want to invoke anything i just want the payload to put
onto a message queue in order to completely decouple my web service
interfaces from their implementation using messaging.

I assume I would need to implement my own receiver..? I need to work out if
the serviceClass is optional in axis core and only used in reciever
implementations allowing me swap out receiver implementation and not
define/use server implementation.

Dan

On 5/8/07, Daniel Feist <[EMAIL PROTECTED]> wrote:


I don't mind the sales pitch, just i was ideally looking for a lightweight
solution using axis2 as a transport for esb with the option of using and
passing on raw xml rather than binding and invoking.

I am planning to use mule, but i don't quite see what axis2/synapse/mule
would give me over and above axis2/mule apart from more config files and
more dependencies, yet neither have i looked into synapse much.

If there any doc or information or wiki page on using axis2/synapse/mule?
Is the book on using Synapse and Mule available yet?

I saw the RawXMLInOutMessageReceiver receiver, I can try this out.. i was
just wondering before going down that path it is was possible to configure
and start up an axis engine with null service implementation? In other web
services stacks the definition of service implementation is integral and not
optional which would be a problem for the approach i want to take.


thanks



On 5/8/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:
>
> Sorry I wasn't very clear!!!
>
> > Take a look at the RawXMLInOutMessageReceiver.
>
> This is an Axis2 MessageReceiver that can give you the body of the
> message as an XML.
>
> Paul
>
> >
> > But even if you are looking at using another ESB, it might still be
> > useful to use Synapse.
> >
> > Here's my sales pitch:
> >
> > 1) Its really not that big. Its a 20Mb download but the core Synapse
> > code is about 300k over and above Axis2.
> > 2) You might end up using some of the features later.
> > 3) We have tested our code a lot, so we're pretty sure that its going
> > to work well in your case.
> > 4) One of our committers is writing a book on using Synapse and Mule.
> > So you wouldn't be alone in using Synapse as a way of adding really
> > top rate XML and WS handling to your existing ESBs.
> >
> > Paul
> >
> > On 5/8/07, Daniel Feist <[EMAIL PROTECTED]> wrote:
> > > I will have a look at synapse...
> > >
> > > If i was starting from scratch it seems that would be the best
> option but as
> > > I am planning to integrate with an esb solution I am already use
> that
> > > provide message routing, transformation etc. I think the best option
> would
> > > be to extend axis to achieve what I need rather than using synapse
> which has
> > > functionality that i already have in my esb.
> > >
> > > I need to use axis as a SOAP stack that receives SOAP messages,
> processes
> > > them using phases/pipelines and then spits out the xml message
> payload
> > > rather than binding to java objects and invoking a service that has
> been
> > > configured.
> > >
> > > How would I go about doing this with axis2, using axis
> programaticaly if
> > > needed?
> > >
> > > - What the implementation of a custom Reciever allow me to output
> xml rather
> > > than bind and invoke?
> > > - Is it possible to configure axis engine that works without
> configuring a
> > > server implementation?
> > > - Can i specifiy wsdl instead of generating from service
> interface/class (i
> > > wouldn't have a service interface/class)
> > > - Any others things I should take into account?
> > >
> > > thanks,
> > > Dan
> > >
> > >
> > >  On 5/8/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Dan
> > > >
> > > > As Chathura also said, Synapse basically does what you want -
> > > > out-of-the-box. We already have built and tested samples where we
> do:
> > > >
> > > > XML/JMS->SOAP mapping
> > > > and SOAP/WSRM->XML/JMS
> > > >
> > > > We have also done plain-text/JMS -> XML/SOAP.
> > > >
> > > > Synapse is simply configured using an XML config file. If you send
> me
> > > > an example message or two I can help you create the config to test
> it.
> > > >
> > > > Paul
> > > >
> > > > On 5/8/07, Daniel Feist < [EMAIL PROTECTED]> wrote:
> > > > > Hi,
> > > > >
> > > > > I am attempting to implement a web-services using a web service
> stack
> > > such
> > > > > as axis in order to export functionality through a web service
> defined
> > > by
> > > > > wsdl but with a twist...I want to integrate this into a message
> based
> > > esb
> > > > > type architecture.
> > > > >
> > > > > What i want to do is the following:
> > > > > 1) WSDL first development
> > > > > 2) Http transport
> > > > > 3) Phase/handlers as normal
> > > > > 4) BUT receiver does not invoke a service but rather forwards
> message
> > > (SOAP
> > > > > payload, as defined 

Re: Problems with Axis2 1.1.1 and XMLBeans

2007-05-08 Thread Paul Fremantle

Great!

Thanks for the update.

Paul

On 5/8/07, Stefan Dragnev <[EMAIL PROTECTED]> wrote:


Paul,

I did some digging in Tomcat logs and my code and discovered that the
problem
was not caused by Axis2. I was using Axis2 1.1.1 Eclipse plugin and when I
build the
aar file some class files ended up in the wrong directory. As a result it
didn't deploy
correctly and the error I reported yesterday was coming from my old aar file
which
was generated from WSDL containing soap encoding. So I think the unsupported
encoding soap encoding was the real culprit for the errors I was seeing. Now
things seem to work as expected and I get a normal response from my service.

Thanks,
Stefan



pzfreo wrote:
>
> Stefan
>
> Please can you post the WSDL as well.
>
> Thanks,
> Paul
>
> On 5/7/07, Stefan Dragnev <[EMAIL PROTECTED]> wrote:
>>
>> I'm trying to implement several web services using Axis2 and XMLBeans. I
>> successfully generated stub and skeletons and services.xml files from my
>> WSDL (had to remove all rpc and soap encodings first) and then filled the
>> business logic and deployed on Tomcat. When I tried to invoke the service
>> thought I got the error below.
>>
>> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>>
>>
>>   
>>  soapenv:Client
>>  ServiceClass does not implement required method of
>> the
>> form OMElement DataReq(OMElement e)
>>  
>> org.apache.axis2.AxisFault: ServiceClass does not
>> implement required method of the form OMElement BPDataReq(OMElement e)
>> at
>> 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:99)
>> at
>> 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
>> at
>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
>> at
>> 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328)
>> at
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> at
>> 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> at
>> 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> at
>> 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> at
>> 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> at
>> 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>> at
>> 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>> at
>> 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> at
>> 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>> at
>> 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> at java.lang.Thread.run(Thread.java:595)
>>  
>>   
>>
>> 
>>
>> Any idea what might be causing this error? I'm using Axis2 1.1.1 and java
>> 1.5 and Tomcat 5.5.23. I'll appreciate any ideas on how I can resolve the
>> problem.
>>
>>
>> I used SOAP UI to test the service and this is how I invoked it
>>
>> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>> xmlns:open="http://www.openuri.org/";>
>>
>>
>>   
>>  100
>>  1234567890
>>   
>>
>> 
>>
>> What is strange to me is that the service is defined like that in my
>> skeleton file
>>
>> public DataReqResponseDocument DataReq (DataReqDocument request)
>>
>> and I have not modified it in any way other that filling in my business
>> logic.
>>
>> Thanks,
>> Stefan
>> --
>> View this message in context:
>> 
http://www.nabble.com/Problems-with-Axis2-1.1.1-and-XMLBeans-tf3706297.html#a10365520
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> [EMAIL PROTECTED]
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---

Re: [Axis2] Web service with no implementation

2007-05-08 Thread Paul Fremantle

Daniel

You'd probably have to create your own dispatcher that basically sends
everything to the RawXMLMessageReceiver. You can do all this
programmatically or you can just have a simple config that defines the
single messagereceiver and the dispatcher.

We don't yet have any doc on using Synapse with Mule, but here is a
simple config which will get Synapse sending all requests to a JMS
queue:

http://ws.apache.org/ns/synapse";>
   
   
   
   
   
   
   
   
   


This will send any XML message coming into the SOAP endpoint
(http://localhost:8080/* by default) onto the specified queue.

Paul

On 5/8/07, Daniel Feist <[EMAIL PROTECTED]> wrote:

I don't mind the sales pitch, just i was ideally looking for a lightweight
solution using axis2 as a transport for esb with the option of using and
passing on raw xml rather than binding and invoking.

I am planning to use mule, but i don't quite see what axis2/synapse/mule
would give me over and above axis2/mule apart from more config files and
more dependencies, yet neither have i looked into synapse much.

If there any doc or information or wiki page on using axis2/synapse/mule?
Is the book on using Synapse and Mule available yet?

I saw the RawXMLInOutMessageReceiver receiver, I can try this out.. i was
just wondering before going down that path it is was possible to configure
and start up an axis engine with null service implementation? In other web
services stacks the definition of service implementation is integral and not
optional which would be a problem for the approach i want to take.


thanks




On 5/8/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:
> Sorry I wasn't very clear!!!
>
> > Take a look at the RawXMLInOutMessageReceiver.
>
> This is an Axis2 MessageReceiver that can give you the body of the
> message as an XML.
>
> Paul
>
> >
> > But even if you are looking at using another ESB, it might still be
> > useful to use Synapse.
> >
> > Here's my sales pitch:
> >
> > 1) Its really not that big. Its a 20Mb download but the core Synapse
> > code is about 300k over and above Axis2.
> > 2) You might end up using some of the features later.
> > 3) We have tested our code a lot, so we're pretty sure that its going
> > to work well in your case.
> > 4) One of our committers is writing a book on using Synapse and Mule.
> > So you wouldn't be alone in using Synapse as a way of adding really
> > top rate XML and WS handling to your existing ESBs.
> >
> > Paul
> >
> > On 5/8/07, Daniel Feist <[EMAIL PROTECTED]> wrote:
> > > I will have a look at synapse...
> > >
> > > If i was starting from scratch it seems that would be the best option
but as
> > > I am planning to integrate with an esb solution I am already use that
> > > provide message routing, transformation etc. I think the best option
would
> > > be to extend axis to achieve what I need rather than using synapse
which has
> > > functionality that i already have in my esb.
> > >
> > > I need to use axis as a SOAP stack that receives SOAP messages,
processes
> > > them using phases/pipelines and then spits out the xml message payload
> > > rather than binding to java objects and invoking a service that has
been
> > > configured.
> > >
> > > How would I go about doing this with axis2, using axis programaticaly
if
> > > needed?
> > >
> > > - What the implementation of a custom Reciever allow me to output xml
rather
> > > than bind and invoke?
> > > - Is it possible to configure axis engine that works without
configuring a
> > > server implementation?
> > > - Can i specifiy wsdl instead of generating from service
interface/class (i
> > > wouldn't have a service interface/class)
> > > - Any others things I should take into account?
> > >
> > > thanks,
> > > Dan
> > >
> > >
> > >  On 5/8/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Dan
> > > >
> > > > As Chathura also said, Synapse basically does what you want -
> > > > out-of-the-box. We already have built and tested samples where we
do:
> > > >
> > > > XML/JMS->SOAP mapping
> > > > and SOAP/WSRM->XML/JMS
> > > >
> > > > We have also done plain-text/JMS -> XML/SOAP.
> > > >
> > > > Synapse is simply configured using an XML config file. If you send
me
> > > > an example message or two I can help you create the config to test
it.
> > > >
> > > > Paul
> > > >
> > > > On 5/8/07, Daniel Feist < [EMAIL PROTECTED]> wrote:
> > > > > Hi,
> > > > >
> > > > > I am attempting to implement a web-services using a web service
stack
> > > such
> > > > > as axis in order to export functionality through a web service
defined
> > > by
> > > > > wsdl but with a twist...I want to integrate this into a message
based
> > > esb
> > > > > type architecture.
> > > > >
> > > > > What i want to do is the following:
> > > > > 1) WSDL first development
> > > > > 2) Http transport
> > > > > 3) Phase/handlers as normal
> > > > > 4) BUT receiver does not invoke a service but rather forwards
message
> > > (SOAP
> > > > > payload, as defined in WSDL) t

Re: Returning database result set

2007-05-08 Thread Deepal Jayasinghe
If you return arrayList then it should work with Axis2 with out any
problem. but make sure the arrayList contains simple type objects or
java beans.

Thanks
Deepal

sharath srinivas wrote:

> I remember making use of vectors..but the best method would be to
> create your own bean and return it back.
>
> -Sharath
>
> On 5/8/07, *Kencana* < [EMAIL PROTECTED]
> > wrote:
>
>
> Hi all,
>
> just wondering how you guys deal in returning more than 1
> resultset in axis
> 2?
> basically I use arrayList since axis 2 doesn't support arrayList
> how to
> return all the
> result (search from database e.g. select * from table will return
> more than
> 1 result set)
> any idea of this?
>
> Thank you very much
>
> Regards,
> Kencana
> --
> View this message in context:
> 
> http://www.nabble.com/Returning-database-result-set-tf3708516.html#a10372431
> 
> 
> Sent from the Axis - User mailing list archive at Nabble.com
> .
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
>
>
>
> -- 
> Regards,
> Sharath 



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



Re: [Axis2] axis2-aar-maven-plugin - Specifying classifier

2007-05-08 Thread Martin Gainty

Hello Edward


From which AXIS src folder are you executing?

Which AXIS maven file are you executing?
How are you executing the maven file?
Which target/goals are you specifying?
Have you customised either the maven.xml and or pom.xml from src distro..if 
so how?


Thx/
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Edward Bush" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, May 08, 2007 10:55 AM
Subject: [Axis2] axis2-aar-maven-plugin - Specifying classifier


Team,

I'm trying to use the classifier parameter to influence the generated
artifact name.  Doesn't seem to be working - I've even tried a
hard-coded value in lieu of a dynamic property.  Is this a bug, or am I
doing something wrong?

Here's how I have the plugin configured:


org.apache.axis2
axis2-aar-maven-plugin
1.2


compile

aar


dvel

target/generated-sources/axis2/wsdl2code/resources/serv
ices.xml

target/generated-sources/axis2/wsdl2code/resources/TestService
wsdl

TestService.wsdl





Thanks in advance!

Eddie Bush
Software Analyst
Clinical Reference Laboratory
bushe at crlcorp dot com

-
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: Problems with Axis2 1.1.1 and XMLBeans

2007-05-08 Thread Stefan Dragnev

Paul,

I did some digging in Tomcat logs and my code and discovered that the
problem
was not caused by Axis2. I was using Axis2 1.1.1 Eclipse plugin and when I
build the
aar file some class files ended up in the wrong directory. As a result it
didn't deploy 
correctly and the error I reported yesterday was coming from my old aar file
which 
was generated from WSDL containing soap encoding. So I think the unsupported 
encoding soap encoding was the real culprit for the errors I was seeing. Now
things seem to work as expected and I get a normal response from my service.

Thanks,
Stefan



pzfreo wrote:
> 
> Stefan
> 
> Please can you post the WSDL as well.
> 
> Thanks,
> Paul
> 
> On 5/7/07, Stefan Dragnev <[EMAIL PROTECTED]> wrote:
>>
>> I'm trying to implement several web services using Axis2 and XMLBeans. I
>> successfully generated stub and skeletons and services.xml files from my
>> WSDL (had to remove all rpc and soap encodings first) and then filled the
>> business logic and deployed on Tomcat. When I tried to invoke the service
>> thought I got the error below.
>>
>> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>>
>>
>>   
>>  soapenv:Client
>>  ServiceClass does not implement required method of
>> the
>> form OMElement DataReq(OMElement e)
>>  
>> org.apache.axis2.AxisFault: ServiceClass does not
>> implement required method of the form OMElement BPDataReq(OMElement e)
>> at
>> org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:99)
>> at
>> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
>> at
>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
>> at
>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328)
>> at
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>> at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>> at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>> at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> at java.lang.Thread.run(Thread.java:595)
>>  
>>   
>>
>> 
>>
>> Any idea what might be causing this error? I'm using Axis2 1.1.1 and java
>> 1.5 and Tomcat 5.5.23. I'll appreciate any ideas on how I can resolve the
>> problem.
>>
>>
>> I used SOAP UI to test the service and this is how I invoked it
>>
>> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>> xmlns:open="http://www.openuri.org/";>
>>
>>
>>   
>>  100
>>  1234567890
>>   
>>
>> 
>>
>> What is strange to me is that the service is defined like that in my
>> skeleton file
>>
>> public DataReqResponseDocument DataReq (DataReqDocument request)
>>
>> and I have not modified it in any way other that filling in my business
>> logic.
>>
>> Thanks,
>> Stefan
>> --
>> View this message in context:
>> http://www.nabble.com/Problems-with-Axis2-1.1.1-and-XMLBeans-tf3706297.html#a10365520
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> 
> http://bloglines.com/blog/paulfremantle
> [EMAIL PROTECTED]
> 
> "Oxygenating the Web Service Platform", www.wso2.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 

Re: Returning database result set

2007-05-08 Thread sharath srinivas

I remember making use of vectors..but the best method would be to create
your own bean and return it back.

-Sharath

On 5/8/07, Kencana <[EMAIL PROTECTED]> wrote:



Hi all,

just wondering how you guys deal in returning more than 1 resultset in
axis
2?
basically I use arrayList since axis 2 doesn't support arrayList how to
return all the
result (search from database e.g. select * from table will return more
than
1 result set)
any idea of this?

Thank you very much

Regards,
Kencana
--
View this message in context:
http://www.nabble.com/Returning-database-result-set-tf3708516.html#a10372431
Sent from the Axis - User mailing list archive at Nabble.com.


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





--
Regards,
Sharath


[Axis2] axis2-aar-maven-plugin - Specifying classifier

2007-05-08 Thread Edward Bush
Team,

I'm trying to use the classifier parameter to influence the generated
artifact name.  Doesn't seem to be working - I've even tried a
hard-coded value in lieu of a dynamic property.  Is this a bug, or am I
doing something wrong?

Here's how I have the plugin configured:


org.apache.axis2
axis2-aar-maven-plugin
1.2


compile

aar


dvel

target/generated-sources/axis2/wsdl2code/resources/serv
ices.xml

target/generated-sources/axis2/wsdl2code/resources/TestService
.wsdl

TestService.wsdl





Thanks in advance!

Eddie Bush
Software Analyst
Clinical Reference Laboratory
bushe at crlcorp dot com

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



Re: [Axis2] Web service with no implementation

2007-05-08 Thread Daniel Feist

I don't mind the sales pitch, just i was ideally looking for a lightweight
solution using axis2 as a transport for esb with the option of using and
passing on raw xml rather than binding and invoking.

I am planning to use mule, but i don't quite see what axis2/synapse/mule
would give me over and above axis2/mule apart from more config files and
more dependencies, yet neither have i looked into synapse much.

If there any doc or information or wiki page on using axis2/synapse/mule?
Is the book on using Synapse and Mule available yet?

I saw the RawXMLInOutMessageReceiver receiver, I can try this out.. i was
just wondering before going down that path it is was possible to configure
and start up an axis engine with null service implementation? In other web
services stacks the definition of service implementation is integral and not
optional which would be a problem for the approach i want to take.


thanks



On 5/8/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:


Sorry I wasn't very clear!!!

> Take a look at the RawXMLInOutMessageReceiver.

This is an Axis2 MessageReceiver that can give you the body of the
message as an XML.

Paul

>
> But even if you are looking at using another ESB, it might still be
> useful to use Synapse.
>
> Here's my sales pitch:
>
> 1) Its really not that big. Its a 20Mb download but the core Synapse
> code is about 300k over and above Axis2.
> 2) You might end up using some of the features later.
> 3) We have tested our code a lot, so we're pretty sure that its going
> to work well in your case.
> 4) One of our committers is writing a book on using Synapse and Mule.
> So you wouldn't be alone in using Synapse as a way of adding really
> top rate XML and WS handling to your existing ESBs.
>
> Paul
>
> On 5/8/07, Daniel Feist <[EMAIL PROTECTED]> wrote:
> > I will have a look at synapse...
> >
> > If i was starting from scratch it seems that would be the best option
but as
> > I am planning to integrate with an esb solution I am already use that
> > provide message routing, transformation etc. I think the best option
would
> > be to extend axis to achieve what I need rather than using synapse
which has
> > functionality that i already have in my esb.
> >
> > I need to use axis as a SOAP stack that receives SOAP messages,
processes
> > them using phases/pipelines and then spits out the xml message payload
> > rather than binding to java objects and invoking a service that has
been
> > configured.
> >
> > How would I go about doing this with axis2, using axis programaticaly
if
> > needed?
> >
> > - What the implementation of a custom Reciever allow me to output xml
rather
> > than bind and invoke?
> > - Is it possible to configure axis engine that works without
configuring a
> > server implementation?
> > - Can i specifiy wsdl instead of generating from service
interface/class (i
> > wouldn't have a service interface/class)
> > - Any others things I should take into account?
> >
> > thanks,
> > Dan
> >
> >
> >  On 5/8/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:
> > >
> > > Dan
> > >
> > > As Chathura also said, Synapse basically does what you want -
> > > out-of-the-box. We already have built and tested samples where we
do:
> > >
> > > XML/JMS->SOAP mapping
> > > and SOAP/WSRM->XML/JMS
> > >
> > > We have also done plain-text/JMS -> XML/SOAP.
> > >
> > > Synapse is simply configured using an XML config file. If you send
me
> > > an example message or two I can help you create the config to test
it.
> > >
> > > Paul
> > >
> > > On 5/8/07, Daniel Feist < [EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I am attempting to implement a web-services using a web service
stack
> > such
> > > > as axis in order to export functionality through a web service
defined
> > by
> > > > wsdl but with a twist...I want to integrate this into a message
based
> > esb
> > > > type architecture.
> > > >
> > > > What i want to do is the following:
> > > > 1) WSDL first development
> > > > 2) Http transport
> > > > 3) Phase/handlers as normal
> > > > 4) BUT receiver does not invoke a service but rather forwards
message
> > (SOAP
> > > > payload, as defined in WSDL) to a message broker ( e.g. JMS queue)
where
> > it
> > > > will be routed to the service implementation.
> > > >
> > > > I don't want to attempt to do this with axis1, and at having
quickly
> > looking
> > > > at other web service stacks it doesn't look particularly easy.  I
was
> > > > wondering if with the new more open, message based architecture of
axis2
> > > > this could be implemented, even if it means using axis2
programatically
> > > > instead of via config file and where I should start looking...?
> > > >
> > > > thanks,
> > > > Dan
> > > >
> > >
> > >
> > > --
> > > Paul Fremantle
> > > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> > >
> > > http://bloglines.com/blog/paulfremantle
> > > [EMAIL PROTECTED]
> > >
> > > "Oxygenating the Web Service Platform", www.wso2.com
> > >
> > >
> > 

WSDL2Java with HTTPS

2007-05-08 Thread Gilles Delaby

Hello all,

I'm currently facing the following problem : the wsdl2java does not work
when the wsdl is located on an https server.

Here below the way I'm calling the tool :
-
set JAVA_HOME=C:\jdk1.5.0_11
set JAVA_OPTS="-Djavax.net.ssl.trustStore=c:\docume~1\gde\old.keystore"

wsdl2java -uri https://localhost:8443/ws/services/ImportService?wsdl -p
com.test.services.client -d adb -s

And here the error :

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
   at org.apache.axis2.wsdl.codegen.CodeGenerationEngine
.(CodeGenerat
ionEngine.java:114)
   at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
   at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL:
IO E
rror: java.io.IOException: HTTPS hostname wrong:  should be 
   at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:273)
   at org.apache.axis2.wsdl.codegen.CodeGenerationEngine
.(CodeGenerat
ionEngine.java:97)
   ... 2 more
Caused by: java.io.IOException: HTTPS hostname wrong:  should be 
   at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(
HttpsClient.j
ava:490)
   at sun.net.www.protocol.https.HttpsClient.afterConnect(
HttpsClient.java:
415)
   at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:170)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLCon
nection.java:938)
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream
(Http
sURLConnectionImpl.java:234)
   at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
So
urce)
   at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion
(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
   at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:191)
   at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:236)
   at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:219)
   at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:262)
   ... 3 more


The wsdl looks to be correct as it works with http.
Maybe something wrong with the key ?

Thanks for help !
Gilles


Re: [Axis2] Web service with no implementation

2007-05-08 Thread Paul Fremantle

Sorry I wasn't very clear!!!


Take a look at the RawXMLInOutMessageReceiver.


This is an Axis2 MessageReceiver that can give you the body of the
message as an XML.

Paul



But even if you are looking at using another ESB, it might still be
useful to use Synapse.

Here's my sales pitch:

1) Its really not that big. Its a 20Mb download but the core Synapse
code is about 300k over and above Axis2.
2) You might end up using some of the features later.
3) We have tested our code a lot, so we're pretty sure that its going
to work well in your case.
4) One of our committers is writing a book on using Synapse and Mule.
So you wouldn't be alone in using Synapse as a way of adding really
top rate XML and WS handling to your existing ESBs.

Paul

On 5/8/07, Daniel Feist <[EMAIL PROTECTED]> wrote:
> I will have a look at synapse...
>
> If i was starting from scratch it seems that would be the best option but as
> I am planning to integrate with an esb solution I am already use that
> provide message routing, transformation etc. I think the best option would
> be to extend axis to achieve what I need rather than using synapse which has
> functionality that i already have in my esb.
>
> I need to use axis as a SOAP stack that receives SOAP messages, processes
> them using phases/pipelines and then spits out the xml message payload
> rather than binding to java objects and invoking a service that has been
> configured.
>
> How would I go about doing this with axis2, using axis programaticaly if
> needed?
>
> - What the implementation of a custom Reciever allow me to output xml rather
> than bind and invoke?
> - Is it possible to configure axis engine that works without configuring a
> server implementation?
> - Can i specifiy wsdl instead of generating from service interface/class (i
> wouldn't have a service interface/class)
> - Any others things I should take into account?
>
> thanks,
> Dan
>
>
>  On 5/8/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:
> >
> > Dan
> >
> > As Chathura also said, Synapse basically does what you want -
> > out-of-the-box. We already have built and tested samples where we do:
> >
> > XML/JMS->SOAP mapping
> > and SOAP/WSRM->XML/JMS
> >
> > We have also done plain-text/JMS -> XML/SOAP.
> >
> > Synapse is simply configured using an XML config file. If you send me
> > an example message or two I can help you create the config to test it.
> >
> > Paul
> >
> > On 5/8/07, Daniel Feist < [EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I am attempting to implement a web-services using a web service stack
> such
> > > as axis in order to export functionality through a web service defined
> by
> > > wsdl but with a twist...I want to integrate this into a message based
> esb
> > > type architecture.
> > >
> > > What i want to do is the following:
> > > 1) WSDL first development
> > > 2) Http transport
> > > 3) Phase/handlers as normal
> > > 4) BUT receiver does not invoke a service but rather forwards message
> (SOAP
> > > payload, as defined in WSDL) to a message broker ( e.g. JMS queue) where
> it
> > > will be routed to the service implementation.
> > >
> > > I don't want to attempt to do this with axis1, and at having quickly
> looking
> > > at other web service stacks it doesn't look particularly easy.  I was
> > > wondering if with the new more open, message based architecture of axis2
> > > this could be implemented, even if it means using axis2 programatically
> > > instead of via config file and where I should start looking...?
> > >
> > > thanks,
> > > Dan
> > >
> >
> >
> > --
> > Paul Fremantle
> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >
> > http://bloglines.com/blog/paulfremantle
> > [EMAIL PROTECTED]
> >
> > "Oxygenating the Web Service Platform", www.wso2.com
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com




--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: [Axis2] Web service with no implementation

2007-05-08 Thread Paul Fremantle

Dan

Take a look at the RawXMLInOutMessageReceiver.

But even if you are looking at using another ESB, it might still be
useful to use Synapse.

Here's my sales pitch:

1) Its really not that big. Its a 20Mb download but the core Synapse
code is about 300k over and above Axis2.
2) You might end up using some of the features later.
3) We have tested our code a lot, so we're pretty sure that its going
to work well in your case.
4) One of our committers is writing a book on using Synapse and Mule.
So you wouldn't be alone in using Synapse as a way of adding really
top rate XML and WS handling to your existing ESBs.

Paul

On 5/8/07, Daniel Feist <[EMAIL PROTECTED]> wrote:

I will have a look at synapse...

If i was starting from scratch it seems that would be the best option but as
I am planning to integrate with an esb solution I am already use that
provide message routing, transformation etc. I think the best option would
be to extend axis to achieve what I need rather than using synapse which has
functionality that i already have in my esb.

I need to use axis as a SOAP stack that receives SOAP messages, processes
them using phases/pipelines and then spits out the xml message payload
rather than binding to java objects and invoking a service that has been
configured.

How would I go about doing this with axis2, using axis programaticaly if
needed?

- What the implementation of a custom Reciever allow me to output xml rather
than bind and invoke?
- Is it possible to configure axis engine that works without configuring a
server implementation?
- Can i specifiy wsdl instead of generating from service interface/class (i
wouldn't have a service interface/class)
- Any others things I should take into account?

thanks,
Dan


 On 5/8/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:
>
> Dan
>
> As Chathura also said, Synapse basically does what you want -
> out-of-the-box. We already have built and tested samples where we do:
>
> XML/JMS->SOAP mapping
> and SOAP/WSRM->XML/JMS
>
> We have also done plain-text/JMS -> XML/SOAP.
>
> Synapse is simply configured using an XML config file. If you send me
> an example message or two I can help you create the config to test it.
>
> Paul
>
> On 5/8/07, Daniel Feist < [EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am attempting to implement a web-services using a web service stack
such
> > as axis in order to export functionality through a web service defined
by
> > wsdl but with a twist...I want to integrate this into a message based
esb
> > type architecture.
> >
> > What i want to do is the following:
> > 1) WSDL first development
> > 2) Http transport
> > 3) Phase/handlers as normal
> > 4) BUT receiver does not invoke a service but rather forwards message
(SOAP
> > payload, as defined in WSDL) to a message broker ( e.g. JMS queue) where
it
> > will be routed to the service implementation.
> >
> > I don't want to attempt to do this with axis1, and at having quickly
looking
> > at other web service stacks it doesn't look particularly easy.  I was
> > wondering if with the new more open, message based architecture of axis2
> > this could be implemented, even if it means using axis2 programatically
> > instead of via config file and where I should start looking...?
> >
> > thanks,
> > Dan
> >
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> [EMAIL PROTECTED]
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: [Axis2] Web service with no implementation

2007-05-08 Thread Daniel Feist

I will have a look at synapse...

If i was starting from scratch it seems that would be the best option but as
I am planning to integrate with an esb solution I am already use that
provide message routing, transformation etc. I think the best option would
be to extend axis to achieve what I need rather than using synapse which has
functionality that i already have in my esb.

I need to use axis as a SOAP stack that receives SOAP messages, processes
them using phases/pipelines and then spits out the xml message payload
rather than binding to java objects and invoking a service that has been
configured.

How would I go about doing this with axis2, using axis programaticaly if
needed?

- What the implementation of a custom Reciever allow me to output xml rather
than bind and invoke?
- Is it possible to configure axis engine that works without configuring a
server implementation?
- Can i specifiy wsdl instead of generating from service interface/class (i
wouldn't have a service interface/class)
- Any others things I should take into account?

thanks,
Dan

On 5/8/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:


Dan

As Chathura also said, Synapse basically does what you want -
out-of-the-box. We already have built and tested samples where we do:

XML/JMS->SOAP mapping
and SOAP/WSRM->XML/JMS

We have also done plain-text/JMS -> XML/SOAP.

Synapse is simply configured using an XML config file. If you send me
an example message or two I can help you create the config to test it.

Paul

On 5/8/07, Daniel Feist <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am attempting to implement a web-services using a web service stack
such
> as axis in order to export functionality through a web service defined
by
> wsdl but with a twist...I want to integrate this into a message based
esb
> type architecture.
>
> What i want to do is the following:
> 1) WSDL first development
> 2) Http transport
> 3) Phase/handlers as normal
> 4) BUT receiver does not invoke a service but rather forwards message
(SOAP
> payload, as defined in WSDL) to a message broker ( e.g. JMS queue) where
it
> will be routed to the service implementation.
>
> I don't want to attempt to do this with axis1, and at having quickly
looking
> at other web service stacks it doesn't look particularly easy.  I was
> wondering if with the new more open, message based architecture of axis2
> this could be implemented, even if it means using axis2 programatically
> instead of via config file and where I should start looking...?
>
> thanks,
> Dan
>


--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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




Re: [Axis] Rampart examples - Username token password verification

2007-05-08 Thread Ruchith Fernando

Hi,

On 5/8/07, Stefan Magnus Landrø <[EMAIL PROTECTED]> wrote:

Thanks for your reply. I believe I got a bit confused by a
callbackhandler that performs two totally different tasks.

I believe it would be a good idea to restructure some of the examples
in rampart to clarify this. In my opinion it would also be smart to
use maven2 for building the examples instead of ant. Using maven would
make it easier to understand the difference between client and server.
Would you be interested in a contribution of examples ported to
maven2?


Sure ! please create a JIRA [1] issue and send in the patches!

Thanks,
Ruchith

[1] https://issues.apache.org/jira/browse/RAMPART


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





--
www.ruchith.org
www.wso2.org

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



Re: [Axis2] AXIOM Custom Serializer/Deserializer

2007-05-08 Thread Glen Mazza
Am Dienstag, den 08.05.2007, 14:46 +0800 schrieb Xinjun Chen:
>  
> 4) Comment the line SOAPEnvelope.toStringWithConsume(). Test the
> application again. The application works properly. 
>  
> 5) Change the line to SOAPEnvelope.toString(). Test the application.
> It works properly. 
>  
> Previously I think the toStringWithConsume and toString will differ in
> terms of performance since one is cached but the other is not. This
> difference should not cause a program to run incorrectly. 
>  

Or more precisely (according to the fourth paragraph of this article[1])
toStringWithConsume() caches only if you set the caching flag to "true".

I'm not knowledgable enough about the source code to know if this is an
Axis error (but it is good that this thread is part of the searchable
archives)--but it appears that toString() is the only function your
logger should be calling, as toStringWithConsume() would cause you to
lose part of your input stream.

Glen

[1] http://wso2.org/library/351




> Regards, 
> Xinjun
>  
> 
>  
> On 5/4/07, Xinjun Chen <[EMAIL PROTECTED]> wrote: 
> Hi Glen, 
>  
> Thanks for the pointer. 
>  
> I agree with your point 1), 2), and 3). 
> Regarding your guess, I need to do in-server debugging to
> confirm. 
>  
> If "needToThrowEndDocument" is different for two different
> scenarios, it is possible that hasNext() return different
> boolean values. But the problem I face below is that hasNext()
> in two scenarios return the same boolean value (TRUE),
> but next() in different scenario executes different logic.  
>  
> Anyway, I will download the source of AXIOM 1.2.2 to do the in
> server debugging and revert to this forum.
>  
>  
> Regards,
> Xinjun 
> 
>  
> On 5/4/07, Glen Mazza <[EMAIL PROTECTED] > wrote: 
> Here is the source code of OMStAXWrapper:
> http://tinyurl.com/33k5m7 
> 
> Here are some things I noticed:
> 1.)  The NPE occurs at generateEvents on line 1115
> because the passed-in
> "node" parameter is null.
> 
> 2.)  Method next(), which calls generateEvents() at
> line 911, does not 
> check to see if the currentNode parameter is null.  So
> apparently we
> have a case where the state is NAVIGABLE but
> currentNode is null.  (This
> I believe is OK, because client code should call
> hasNext() before
> calling next().)
> 
> 3.)  Your code calls method hasNext() at line 797
> before calling next().
> But you can see the AXIOM implementation of hasNext()
> has a different
> business logic depending on the boolean value of 
> "needToThrowEndDocument".
> 
> So my guess would be that the needToThrowEndDocument
> value is different
> between standalone usage and web service usage, which
> changes the
> business logic of hasNext().  Further, the business
> logic for standalone 
> is correct but not working properly under certain
> circumstances for web
> service usage (i.e., it returns true when it should be
> false, causing
> your code to call next() erroneously, causing the
> NPE.)
> 
> Glen
> 
> 
> Am Freitag, den 04.05.2007, 11:36 +0800 schrieb Xinjun
> Chen:
> > I have tried to invoke the EPaymentHandler from JSP
> directly, it works
> > fine. The EPaymentHandler.execute() invokes
> > CreditCardPaymentRequestBinder.toObject .
> >
> > But when I invoke the EPaymentHandler from inside a
> child class of
> >
> org.apache.axis2.receivers.RawXMLINOutMessageReceiver,
> then I get the
> > NPE.
> > The child class of RawXMLINOutMessageReceiver
> override the 
> > invokeBusinessLogic method as follows:
> >
> >  public void invokeBusinessLogic(MessageContext
> msgContext,
> > MessageContext newmsgContext) throws AxisFault {
> >
> >log.debug("EPaymentHandler invoked."); 
> >try {
> >epayHandler.execute (msgContext,
> newmsgContext);
> >   

Re: [axis2] help with binary attachments

2007-05-08 Thread Thilina Gunarathne

Hi Luca,
Looking at the message traces it seems that your attachment is
transmitted inline.. Not as a MTOM attachment... It seems like you do
not have MTOM enabled in the Axis2 server (Notice that the MIME
boundaries are missing)... Please check the axis2.xml of your axis2
server..

Following is an alternative quick fix to get this work...

 OMText binaryNode = (OMText) element.getFirstOMChild();

binaryNode.setBinary(true);

 //Extracting the data and saving


thanks,
Thilina

--
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: New to AXIS

2007-05-08 Thread Glen Mazza
What is the (xmlstring) parameter for in getAllEmployeeDetails?  I would
think it would be empty, and not an xmlstring anyway.

Here is what I did for a simple web service (using math functions).  It
may have some processes you can leverage:
http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with

I'd recommend getting your webservice to first just return any string
constant, then worry about getting the XML returned (as a single-line
string), then formatting of the XML.

Also, I don't think you will be able to have a "xmlstring" type--I think
you will need to stick with xsd:string for this.

In testing your service, Apache JMeter (http://wso2.org/library/1085)
may help you.  (Note there are a couple of problems with step #2 in the
article--there should be a space between "ServiceClass" and "locked", as
well as between "messageReceiver" and "class"--I just emailed the author
about it a few minutes ago.)

Glen


Am Dienstag, den 08.05.2007, 16:15 +0800 schrieb Babu Eswaramoorthy:
> Hi All,
> 
> I am new to axis. I am developing a small demo for my customer and I
> have to complete in 2 days. Can any one explain me the steps to
> implement the below service.
> 
> Or if you have any similar sample can you please send it to me.
> 
>  
> 
> The web service will have one method “xmlstring
> getAllEmployeeDetails(xmlstring )” the method should take the below
> input and output parameters.
> 
> Input/Output:
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> The input and output structure is same.
> 
>  
> 
>  
> 
> Thanks in advance,
> 
> Babu
> 
>  
> 
> 
> CONFIDENTIAL NOTE: The information contained in this email is intended
> only for the use of the individual or entity named above and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not
> the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is
> strictly prohibited. If you have received this message in error,
> please immediately notify the sender and delete the mail. Thank you.
> 


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



Re: [axis2] help with binary attachments

2007-05-08 Thread LuCa


the code I've used at the listing below (server and client) are similiar
to the

http://ws.apache.org/axis2/1_2/mtom-guide.html, and I didn't
work...  at the client, it goes an axis esception
"ContentID is null", as
showed below but, looking at the messages showed by the tcpmonitor,
the file seems to be there! The datahandler field cames null
At 21:26 7/5/2007, you wrote:
Oi LuCa, tudo bem? You are using
the 1.0 docs - try the 1.2 docs with the 1.2 release and you should have
no problems, as I was testing some stuff with that tutorial and it worked
fine. 

http://ws.apache.org/axis2/1_2/mtom-guide.html
HTH,
Robert 
On 5/7/07, LuCa
<[EMAIL PROTECTED]
> wrote:


Hello there!

I'm an master's degree student at UFMG university (Brazil). 

My work is about  web service, and I'm trying to use AXIS2 to
make a web service that sends and receives files image files
too!

I'm coming for your help, cause the only Axis2 file attachments help
source  I've found is at:

http://ws.apache.org/axis2/1_0/mtom-guide.html, and I've already
spent a lot of time searching some help 

The problem is, I think, the code showed at this site is not updated,
particulaly  the image part at this code piece:




===

    

   OMElement imageElement =

fac.createOMElement("image", omNs);


    // Creating the Data
Handler


for the image.

    // User has the option to
use

a FileDataSource or a ImageDataSource 

    // in this scenario...

    Image image;

    image = new ImageIO()


   

.loadImage(new FileInputStream(inputImageFileName));


    ImageDataSource dataSource
=

new ImageDataSource("test.jpg",image);

    DataHandler dataHandler =
new

DataHandler(dataSource);


    //create an OMText node
with

the above DataHandler and set optimized to true


    OMText textData =

fac.createOMText(dataHandler, true);

   

imageElement.addChild(textData);


===



The " image=new ImageIO()  " does not work, since it
seems to exist at an old Axis2 version (0.95) only...

I couldn't find any similiar method at the axis2 actual version I
have: the 1.1.1 version...

I've tried to use this code like that (not an image datasource, just
a filedatasource), at the service skeleton:



===




public
 
first.axiomwsimage.xsd.ReceiveImageResponse
receiveImage() 

   {

   
try
 {

    OMFactory fac =
OMAbstractFactory.getOMFactory();



// creating a namespace

    OMNamespace omNs
= fac.createOMNamespace(

"

http://www.dees.ufmg.br"
 ,

"ns");

    OMElement imageElement =
fac.createOMElement(
"image"
 , omNs);

   
// Creating the
Data Handler for the image.


   
DataSource dataSource =
new
 FileDataSource(
new
File(
"fig.JPG"));;

   
DataHandler dataHandler =
new
 DataHandler(dataSource);

   
//create an
OMText node with the above DataHandler and set optimized to true


    OMText
textData = fac.createOMText(dataHandler,
true
);

   
imageElement.addChild(textData);

   
first.axiomwsimage.xsd.ReceiveImageResponse resp =
new
 first.axiomwsimage.xsd.ReceiveImageResponse();

   
resp.set_return(imageElement);

  
return
resp;

    }

   
catch
(Exception e) {

   
return
null ;

    }

    }




===





My client:



===




    
public
static
void main(String [] args)
throws
Exception {

// create the stub


GetImageServiceStub stub =
new
 GetImageServiceStub();

  

// Enable MTOM in
the client side


stub._getServiceClient().getOptions().setProperty(

Constants.Configuration.
ENABLE_MTOM
,
Constants.
VALUE_TRUE);


stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(1);


// result
string

String
resultMsg=
"";

try
{

// invoking the
service and getting the response 

// getting the OMelement from the response  of the webService


OMElement element =
stub.receiveImage().get_return();

    OMText binaryNode = (OMText)
element.getFirstOMChild();

    String fileName =

"test.jpg";

   
//Extracting the
data and saving

    DataHandler
actualDH=(DataHandler) binaryNode.getDataHandler();

   

    

   
//DataSource ds
= new inp

    FileOutputStream
imageOutStream =
new
 FileOutputStream(fileName);

    actualDH.writeTo(imageOutStream);

    resultMsg =
"File
received!!! Name:
"+fileName;

}

catch
(Exception e) {

resultMsg =
"error\n"
+e.getMessage();

}

System.
out .println(

"Done!\n"
+resultMsg);

}




===





but it doesn�t work

I've received the followi

Re: Axis2 and .Net connection

2007-05-08 Thread Stefan Magnus Landrø

If you are interested in interoperability, you should do contract
first design (wsdl2java) instead of java2wsdl.

HTH,

Stefan

2007/5/8, Paul Fremantle <[EMAIL PROTECTED]>:

Which version of Axis2 are you using? Have you tried 1.2? I think it
generates slightly more .NET friendly WSDL.

Paul

On 5/8/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
> I want to ask a question about axis2 and .net communication. I have a
> problem, when I send a value to the .net client, all the values coming as
> null or default values. I am using eclipse. These are my steps;
>
>
>
> I have create a java project. I have create a class ARUI015M;
>
>
>
> package com.efes.app.arui015m;
>
> import com.efes.app.arui015m.services.directinv.DEALERLIST;
>
> public class ARUI015M {
>  public DEALERLIST dealerList(String arg1, String arg2){
>   System.out.println("dealerList called.");
>   DEALERLIST dealerList = new DEALERLIST();
>   dealerList.MESSAGE = "TEST COMPLETED SUCCESSFULY!";
>   return dealerList;
>  }
> }
>
>
>
> public class DEALERLIST{
>  public int RC  = 0;
>  public String MESSAGE  = null;
> }
>
>
>
> I have generate wsdl file by Axis2 Code Generator eclipse plugin. I have
> created aar file by Axis2 Service Archiver eclipse plugin which includes
> services.xml and services.wsdl. I have put it under
> C:\java\axis\repository\services\ and added to
> services.list. I have redoploy Axis2 container.
>
>
>
> I have reached to this address
> http://127.0.0.1:8080/axis2/services/, ARUI015MService was
> there.
>
>
>
> I have create a .net project and I have added webReference by this url.
> http://127.0.0.1:8080/axis2/services/ARUI015MService?wsdl.
> I have writed .net code, I have to say that, I didnt understand .net code is
> it true?
>
>
>
> localWebReference.ARUI015MService localService = new
> localWebReference.ARUI015MService();
> localWebReference.dealerListResponse localDealerList =
> localService.dealerList(new dealerList());
> localDealerMessage.Text = [EMAIL PROTECTED];
>
>
>
> After all of these, MESSAGE coming as null.
>
>
>
> What is my wrong, can you help me please?
>
> I saw the log on cmd screen -> System.out.println("dealerList called.");
>
> this is my wsdl file;
>
>
>
> - http://arui015m.app.efes.com";
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
> xmlns:ns0="http://directinv.services.arui015m.app.efes.com/xsd";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
> xmlns:ns1="http://arui015m.app.efes.com/xsd";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> targetNamespace="http://arui015m.app.efes.com";>
>
>
>
>   ARUI015MService
>
> - 
>
>
> -  xmlns:ax21="http://directinv.services.arui015m.app.efes.com/xsd";
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://directinv.services.arui015m.app.efes.com/xsd";>
>
>
>   
>
> - 
>
>
> - 
>
>
>   
>
>   
>   
>   
>   
>
> - http://arui015m.app.efes.com/xsd";
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://arui015m.app.efes.com/xsd";>
>
>
> - 
>
>
> - 
>
>
> - 
>
>
>   
>
>   
>   
>   
>   
>
> - 
>
>
> - 
>
>
> - 
>
>
>   
>   
>   
>   
>   
>   
>
> - 
>
>
>   
>   
>
> - 
>
>
>   
>   
>
> - 
>
>
> - 
>
>
>xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
> message="axis2:dealerListMessage" wsaw:Action="urn:dealerList" />
>
>   
>   
>   
>
> -  type="axis2:ARUI015MServicePortType">
>
>
>transport="http://schemas.xmlsoap.org/soap/http";
> style="document" />
>
> - 
>
>
>   
>
> - 
>
>
>   
>   
>
> - 
>
>
>   
>   
>   
>   
>
> -  type="axis2:ARUI015MServicePortType">
>
>
>transport="http://schemas.xmlsoap.org/soap/http";
> style="document" />
>
> - 
>
>
>   
>
> - 
>
>
>   
>   
>
> - 
>
>
>   
>   
>   
>   
>
> -  type="axis2:ARUI015MServicePortType">
>
>
>   
>
> - 
>
>
>   
>
> - 
>
>
>   
>   
>
> - 
>
>
>   
>   
>   
>   
>
> - 
>
>
> -  binding="axis2:ARUI015MServiceSOAP11Binding">
>
>
>location="http://192.168.49.162:8080/axis2/services/ARUI015MService";
> />
>   
>
> -  binding="axis2:ARUI015MServiceSOAP12Binding">
>
>
>location="http://192.168.49.162:8080/axis2/services/ARUI015MService";
> />
>   
>
> -  binding="axis2:ARUI015MServiceHttpBinding">
>
>
>location="http://192.168.49.162:8080/axis2/services/ARUI015MService";
> />
>   
>   
>   
>  
> Yahoo! kullaniyor musunuz?
>  Istenmeyen postadan biktiniz mi? Istenmeyen postadan en iyi korunma Yahoo!
> Posta'da
> http://tr.mail.yahoo.com


--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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

Re: Axis2 and .Net connection

2007-05-08 Thread Paul Fremantle

Which version of Axis2 are you using? Have you tried 1.2? I think it
generates slightly more .NET friendly WSDL.

Paul

On 5/8/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:




Hi,

I want to ask a question about axis2 and .net communication. I have a
problem, when I send a value to the .net client, all the values coming as
null or default values. I am using eclipse. These are my steps;



I have create a java project. I have create a class ARUI015M;



package com.efes.app.arui015m;

import com.efes.app.arui015m.services.directinv.DEALERLIST;

public class ARUI015M {
 public DEALERLIST dealerList(String arg1, String arg2){
  System.out.println("dealerList called.");
  DEALERLIST dealerList = new DEALERLIST();
  dealerList.MESSAGE = "TEST COMPLETED SUCCESSFULY!";
  return dealerList;
 }
}



public class DEALERLIST{
 public int RC  = 0;
 public String MESSAGE  = null;
}



I have generate wsdl file by Axis2 Code Generator eclipse plugin. I have
created aar file by Axis2 Service Archiver eclipse plugin which includes
services.xml and services.wsdl. I have put it under
C:\java\axis\repository\services\ and added to
services.list. I have redoploy Axis2 container.



I have reached to this address
http://127.0.0.1:8080/axis2/services/, ARUI015MService was
there.



I have create a .net project and I have added webReference by this url.
http://127.0.0.1:8080/axis2/services/ARUI015MService?wsdl.
I have writed .net code, I have to say that, I didnt understand .net code is
it true?



localWebReference.ARUI015MService localService = new
localWebReference.ARUI015MService();
localWebReference.dealerListResponse localDealerList =
localService.dealerList(new dealerList());
localDealerMessage.Text = [EMAIL PROTECTED];



After all of these, MESSAGE coming as null.



What is my wrong, can you help me please?

I saw the log on cmd screen -> System.out.println("dealerList called.");

this is my wsdl file;



- http://arui015m.app.efes.com";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:ns0="http://directinv.services.arui015m.app.efes.com/xsd";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:ns1="http://arui015m.app.efes.com/xsd";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
targetNamespace="http://arui015m.app.efes.com";>



  ARUI015MService

- 


- http://directinv.services.arui015m.app.efes.com/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://directinv.services.arui015m.app.efes.com/xsd";>


  

- 


- 


  

  
  
  
  

- http://arui015m.app.efes.com/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://arui015m.app.efes.com/xsd";>


- 


- 


- 


  

  
  
  
  

- 


- 


- 


  
  
  
  
  
  

- 


  
  

- 


  
  

- 


- 


  http://www.w3.org/2006/05/addressing/wsdl";
message="axis2:dealerListMessage" wsaw:Action="urn:dealerList" />

  
  
  

- 


  http://schemas.xmlsoap.org/soap/http";
style="document" />

- 


  

- 


  
  

- 


  
  
  
  

- 


  http://schemas.xmlsoap.org/soap/http";
style="document" />

- 


  

- 


  
  

- 


  
  
  
  

- 


  

- 


  

- 


  
  

- 


  
  
  
  

- 


- 


  http://192.168.49.162:8080/axis2/services/ARUI015MService";
/>
  

- 


  http://192.168.49.162:8080/axis2/services/ARUI015MService";
/>
  

- 


  http://192.168.49.162:8080/axis2/services/ARUI015MService";
/>
  
  
  
 
Yahoo! kullaniyor musunuz?
 Istenmeyen postadan biktiniz mi? Istenmeyen postadan en iyi korunma Yahoo!
Posta'da
http://tr.mail.yahoo.com



--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Returning database result set

2007-05-08 Thread Kencana

Hi all,

just wondering how you guys deal in returning more than 1 resultset in axis
2?
basically I use arrayList since axis 2 doesn't support arrayList how to
return all the 
result (search from database e.g. select * from table will return more than
1 result set)
any idea of this?

Thank you very much

Regards,
Kencana
-- 
View this message in context: 
http://www.nabble.com/Returning-database-result-set-tf3708516.html#a10372431
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: [Axis] Rampart examples - Username token password verification

2007-05-08 Thread Stefan Magnus Landrø

Thanks for your reply. I believe I got a bit confused by a
callbackhandler that performs two totally different tasks.

I believe it would be a good idea to restructure some of the examples
in rampart to clarify this. In my opinion it would also be smart to
use maven2 for building the examples instead of ant. Using maven would
make it easier to understand the difference between client and server.
Would you be interested in a contribution of examples ported to
maven2?

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



Axis2 and .Net connection

2007-05-08 Thread Ramazan Pekin
Hi,
I want to ask a question about axis2 and .net communication. I have a problem, 
when I send a value to the .net client, all the values coming as null or 
default values. I am using eclipse. These are my steps;

I have create a java project. I have create a class ARUI015M;

package com.efes.app.arui015m;
import com.efes.app.arui015m.services.directinv.DEALERLIST;
public class ARUI015M {
 public DEALERLIST dealerList(String arg1, String arg2){
  System.out.println("dealerList called.");
  DEALERLIST dealerList = new DEALERLIST();
  dealerList.MESSAGE = "TEST COMPLETED SUCCESSFULY!";
  return dealerList;
 }
}

public class DEALERLIST{
 public int RC  = 0;
 public String MESSAGE  = null;
}

I have generate wsdl file by Axis2 Code Generator eclipse plugin. I have 
created aar file by Axis2 Service Archiver eclipse plugin which includes 
services.xml and services.wsdl. I have put it under 
C:\java\axis\repository\services\ and added to services.list. I have redoploy 
Axis2 container.

I have reached to this address http://127.0.0.1:8080/axis2/services/, 
ARUI015MService was there.

I have create a .net project and I have added webReference by this url. 
http://127.0.0.1:8080/axis2/services/ARUI015MService?wsdl. I have writed .net 
code, I have to say that, I didnt understand .net code is it true?

localWebReference.ARUI015MService localService = new 
localWebReference.ARUI015MService();
localWebReference.dealerListResponse localDealerList = 
localService.dealerList(new dealerList());
localDealerMessage.Text = [EMAIL PROTECTED];

After all of these, MESSAGE coming as null.

What is my wrong, can you help me please?
I saw the log on cmd screen -> System.out.println("dealerList called.");
this is my wsdl file;

- http://arui015m.app.efes.com"; 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
xmlns:ns0="http://directinv.services.arui015m.app.efes.com/xsd"; 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
xmlns:ns1="http://arui015m.app.efes.com/xsd"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
targetNamespace="http://arui015m.app.efes.com";>
  ARUI015MService 
- 
- http://directinv.services.arui015m.app.efes.com/xsd"; 
attributeFormDefault="qualified" elementFormDefault="qualified" 
targetNamespace="http://directinv.services.arui015m.app.efes.com/xsd";>
   
- 
- 
   
   
  
  
  
- http://arui015m.app.efes.com/xsd"; 
attributeFormDefault="qualified" elementFormDefault="qualified" 
targetNamespace="http://arui015m.app.efes.com/xsd";>
- 
- 
- 
   
   
  
  
  
- 
- 
- 
   
  
  
  
  
  
- 
   
  
- 
   
  
- 
- 
  http://www.w3.org/2006/05/addressing/wsdl"; 
message="axis2:dealerListMessage" wsaw:Action="urn:dealerList" /> 
   
  
  
- 
  http://schemas.xmlsoap.org/soap/http"; 
style="document" /> 
- 
   
- 
   
  
- 
   
  
  
  
- 
  http://schemas.xmlsoap.org/soap/http"; 
style="document" /> 
- 
   
- 
   
  
- 
   
  
  
  
- 
   
- 
   
- 
   
  
- 
   
  
  
  
- 
- 
  http://192.168.49.162:8080/axis2/services/ARUI015MService"; /> 
  
- 
  http://192.168.49.162:8080/axis2/services/ARUI015MService"; /> 
  
- 
  http://192.168.49.162:8080/axis2/services/ARUI015MService"; /> 
  
  
  


  
___
Yahoo! kullaniyor musunuz?  http://tr.mail.yahoo.com
Istenmeyen postadan biktiniz mi? Istenmeyen postadan en iyi korunma 
Yahoo! Posta'da

New to AXIS

2007-05-08 Thread Babu Eswaramoorthy
Hi All,

I am new to axis. I am developing a small demo for my customer and I
have to complete in 2 days. Can any one explain me the steps to
implement the below service.

Or if you have any similar sample can you please send it to me.

 

The web service will have one method "xmlstring
getAllEmployeeDetails(xmlstring )" the method should take the below
input and output parameters.

Input/Output:

 













 

The input and output structure is same.

 

 

Thanks in advance,

Babu

 



CONFIDENTIAL NOTE: The information contained in this email is intended only for 
the use of the individual or entity named above and may contain information 
that is privileged, confidential and exempt from disclosure under applicable 
law. If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited. If you have received this message in 
error, please immediately notify the sender and delete the mail.
Thank you.


Re: [Axis2] Web service with no implementation

2007-05-08 Thread Paul Fremantle

Dan

As Chathura also said, Synapse basically does what you want -
out-of-the-box. We already have built and tested samples where we do:

XML/JMS->SOAP mapping
and SOAP/WSRM->XML/JMS

We have also done plain-text/JMS -> XML/SOAP.

Synapse is simply configured using an XML config file. If you send me
an example message or two I can help you create the config to test it.

Paul

On 5/8/07, Daniel Feist <[EMAIL PROTECTED]> wrote:

Hi,

I am attempting to implement a web-services using a web service stack such
as axis in order to export functionality through a web service defined by
wsdl but with a twist...I want to integrate this into a message based esb
type architecture.

What i want to do is the following:
1) WSDL first development
2) Http transport
3) Phase/handlers as normal
4) BUT receiver does not invoke a service but rather forwards message (SOAP
payload, as defined in WSDL) to a message broker ( e.g. JMS queue) where it
will be routed to the service implementation.

I don't want to attempt to do this with axis1, and at having quickly looking
at other web service stacks it doesn't look particularly easy.  I was
wondering if with the new more open, message based architecture of axis2
this could be implemented, even if it means using axis2 programatically
instead of via config file and where I should start looking...?

thanks,
Dan




--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: Returning arrayList

2007-05-08 Thread Kencana

Hi all,

so overall, if i return a value in AXIOM can other programming language can
interact with this kind of data type?
from what i have done, if i return an OMElement as the result, in the wsdl
schema type
it will be defined as anytype. (e.g. if i return string as the result the
wsdl wchema type will be string)
so in other words, if i use OMElement I cant define the specific schema type
of the result.
as i need to return quite large value (in different data type) at a time,
any idea on how
to do it?since axis didn't support arrayList. and I am not quite sure
whether AXIOM
can be used with other programming language or not.

Sorry if my explanation is not clear. I am a new bie in axis, and I hope all
the masters in AXIS
can give me guidance.:)

Thank you very much

Regards,
Kencana

Kencana wrote:
> 
> Hi all,
> 
> Lets say, there are many fields on the database table.
> so when user wants to retrieve all the data, basically what i did in
> normal java application is
> I bind it to an arrayList.
> so my question is, can axis return arrayList data type?
> or is there any other solution to let user retrieve all the data from the
> table fields and
> bind it to the xml file.
> for example:
> 
>Kencana
>female
> 
> 
>Bob
>Male
> 
> 
> sorry for my poor explanation, I hope you guys can understand what I am
> trying to do
> 
> Thanks
> 
> Regards,
> Kencana
> 

-- 
View this message in context: 
http://www.nabble.com/Returning-arrayList-tf3691291.html#a10371186
Sent from the Axis - User mailing list archive at Nabble.com.


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