How to send exceptions using ADB?

2007-05-29 Thread Fran

Hi!

I want to send exceptions from service to client using ADB, and I
don't know if it's possible or not, can anyone help me?

Thanks!

--
Saludos

Fran

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



How to disable generation of http binding(s) in the WSDL ?

2007-05-29 Thread Angel Todorov

Hi guys,

Is there a way to disable generation of the HttpBinding sections in the
WSDL, either using java2wsdl or the axis2 servlet's ?wsdl command ? Thank
you very much in advance.

P.S: I need that for DotNET interop scenarios and dotnet gets confused when
it sees something like :



−
   

−
   



and so on...


Thanks very much in advance.

Regards,
Angel


Re: New User

2007-05-29 Thread Samisa Abeysinghe

Dimuthu wrote:

Hi Mark,

Try here,
http://mail-archives.apache.org/mod_mbox/ws-axis-user/
  

Also try: http://marc.info/?l=axis-user&r=1&w=2
Could be searched.

Samisa...

Regards,
Dimuthu

On Tue, 2007-05-29 at 22:50 -0600, Mark Stang wrote:
  

Hi,
Is there a place I can search old e-mails?  I just subscribed and don't
want to spam the list.  I am having issues with a Axis2 release, so I
switched to a SNAPSHOT, but I am having issues there also.

thanks,

Mark


-
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]


  



--
Samisa Abeysinghe : http://www.bloglines.com/blog/samisa


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



Enumeration Support in Apache Axis 1.2.1

2007-05-29 Thread Deepak Sharma

Hi Guys,

Is enumeration data type supported in Axis 1.2.1. Example:

















Thanks,

Deepak


Re: init and destroy functions in an application scope axis2 service

2007-05-29 Thread Deepal Jayasinghe
Hi Gul

>  
> I see init and destroy functions implemented in one of the samples
> (servicelifecycle) in Axis2 distro.
>  
> public void init(ServiceContext serviceContext)
> public void destroy(ServiceContext serviceContext) throws AxisFault
>  
> *When are these functions get invoked for a service that is deployed
> as "application" scope service?*
Servicelifecycle has nothing to do with the service scope , the life
cycle will help you to manage the lifetime of a your service
(description) , not the contexts. 
Service lifecycle will help you to do something like open a DB
connection when you deploy the service and  to close that when system
shutdown.
> *What happens if an "application" scope service doesn't implement
> those functions?*
Nothing will happen.
> ** 
> Gul

-- 
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]



[Axis2] axis2-aar-maven-plugin default goal issue org.apache.axis2.maven2 Vs org.apache.axis2

2007-05-29 Thread Vijesh A.V.
mvn install

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.axis2.maven2:axis2-aar-maven-plugin' does
not exist or no valid version could be
found
[INFO]


I'm wondering from where does "maven2" string came into the above
command? Is it because the above plugin is registered in m2 against the
aar packaging? If that is so, how can I make it point to
org.apache.axis2:axis2-aar-maven-plugin?

The plugin is working only when the mvn instruction is as follows

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


The pom (it is a parent pom) entry is



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



${axis2-wsdl2code-m2-serviceXml}

true



${basedir}/src/main/resources/META-INF

META-INF
  
**/*.wsdl
**/*.xsd
  
  






Even after using the execution entry for aar (shown below), the result
is same




 aar

  


..



It is not a burning issuebut would like to get it right.

Regards,
Vijesh













Re: New User

2007-05-29 Thread Dimuthu
Hi Mark,

Try here,
http://mail-archives.apache.org/mod_mbox/ws-axis-user/

Regards,
Dimuthu

On Tue, 2007-05-29 at 22:50 -0600, Mark Stang wrote:
> Hi,
> Is there a place I can search old e-mails?  I just subscribed and don't
> want to spam the list.  I am having issues with a Axis2 release, so I
> switched to a SNAPSHOT, but I am having issues there also.
> 
> thanks,
> 
> Mark
> 
> 
> -
> 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]



New User

2007-05-29 Thread Mark Stang
Hi,
Is there a place I can search old e-mails?  I just subscribed and don't
want to spam the list.  I am having issues with a Axis2 release, so I
switched to a SNAPSHOT, but I am having issues there also.

thanks,

Mark


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



init and destroy functions in an application scope axis2 service

2007-05-29 Thread Gul Onural
 
I see init and destroy functions implemented in one of the samples
(servicelifecycle) in Axis2 distro.
 
public void init(ServiceContext serviceContext) 
public void destroy(ServiceContext serviceContext) throws AxisFault
 
When are these functions get invoked for a service that is deployed as
"application" scope service?
What happens if an "application" scope service doesn't implement those
functions?
 
Gul


Re: [Axis2] v1.2 - getResourceAsStream error??

2007-05-29 Thread Deepal Jayasinghe
Hi Javier ,
There was classloading changes in 1.2 so that might be the case for you
getting null, so please create a JIRA I will fix that soon.

Thanks
Deepal
> Hi.
>
> I'm using JDK 1.5.0_11, and Tomcat 5.5.23.
>
> I was using Axis2 1.0 and when I wanted to load a resource at my
> service implementation class I was doing with:
>
>   InputStream inStream =
> this.getClass().getClassLoader().getResourceAsStream("config/dir1/myconfig2.web"");
>
>
> where the resourcefile resides physically in
> "webapps/axis2/WEB-INF/lib/config/dir1/myconfig2.web.
>
> However, I've downloaded Axi2 1.2 and the same instruction returns
> "null".
>
> Is this wrong now in version 1.2? Must be done in another way or is an
> Error?
>
> Regards
>
> Janfry
>
> _
> Acepta el reto MSN Premium: Correos más divertidos con fotos y textos
> increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis.
> http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos
>
>
>
> -
> 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] axis2-aar-maven-plugin how excludes axis2 jar files from .aar?

2007-05-29 Thread Vijesh A.V.

provided will do the trick

As in.



org.apache.axis2
axis2-kernel
1.2
provided



Regards,
Vijesh
 

-Original Message-
From: David Illsley [mailto:[EMAIL PROTECTED] 
Sent: 30 May 2007 01:20
To: axis-user@ws.apache.org
Subject: Re: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar files
from .aar?

As far as I can tell, we currently only support including no dependences
or all dependencies. My gut instinct is that it shouldn't be hard to
add/change an option to only exclude org.apache.axis2 group
dependencies. Please open a Jira [1] about this and someone will
hopefully get to it.
David

[1] https://issues.apache.org/jira/secure/Dashboard.jspa

On 29/05/07, LuCa <[EMAIL PROTECTED]> wrote:
> but I didn't want to exclude all the dependencies jars , only axis2 
> jar (since I'm sure it's avaiable at the server).
>
> At 17:59 29/5/2007, you wrote:
> >Did you try includeDependencies = false?
> >
> >
> >org.apache.axis2
> >axis2-aar-maven-plugin
> >${version}
> >true
> >
> >
>
>${basedir}/src/sample/axisversion/META-INF/services.xm
l
> >false
> >
> >
> >
> >
> >On 5/29/07, LuCa <[EMAIL PROTECTED]> wrote:
> >>
> >>  I've tried, but it looks like the usage is wrong, cause there is
no effect:
> >>  the jars are included anyway
> >>
> >>  < fileSets >
> >> < fileSet >
> >>  < outputDirectory > target/aar/lib 
> >>  < excludes >
> >>   < exclude > axis2*.jar 
> >>  
> >>  
> >>  
> >>
> >>  At 17:49 29/5/2007, you wrote:
> >>
> >>If you look at the documentation, you'll notice where it talks about
> >>  fileSets.  You can use it to manage includes/excludes.  I've not 
> >>tried
> >>  this, but it should be what you're looking for.
> >>
> >>  Eddie Bush
> >>  Software Analyst
> >>  Clinical Reference Laboratory
> >>  bushe at crlcorp dot com
> >>
> >>  -Original Message-
> >>  From: LuCa [ mailto:[EMAIL PROTECTED]
> >>  Sent: Tuesday, May 29, 2007 3:37 PM
> >>  To: axis-user@ws.apache.org
> >>  Subject: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar 
> >> files  from .aar?
> >>
> >>  When using axis2-aar-maven-plugin to create the .aar deploy file, 
> >> how  configure the plugin to exclude the axis2*.jar files from the 
> >> .aar  generated?
> >>
> >>  tks,
> >>  Luciana
> >>
> >>
> >>
> >>-
> >>  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]
> >
> >
> >--
> >Davanum Srinivas :: http://davanum.wordpress.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]
>
>


--
David Illsley - IBM Web Services Development

-
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: encrypting the usernametoken header and the body using policy

2007-05-29 Thread Dimuthu
Hi Rishi,

Try the policy file here with the latest build.
https://issues.apache.org/jira/secure/attachment/12357759/policy_ut_xpath.xml

Good luck,
Dimuthu

http://wso2.org


On Tue, 2007-05-29 at 16:54 -0400, Rishi krish wrote:
> Hi All
> I am new to policy and struggling to create a server policy file where
> in I can specify the requirement that the usernametoken header should
> be encrypted as well as the body. Does anyone has any sample policy
> which will do that. I had this policy file but the server fails me
> saying that the EncryptedData was not expected error. 
>  
> 
> http://schemas.xmlsoap.org/ws/2004/09/policy";
> xmlns:sp=" http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512";
> xmlns:spe="http://www.ibm.com/xmlns/prod/websphere/200605/ws-securitypolicy-ext";
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xmi="http://schema.omg.org/spec/XMI/1.0"; 
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
> 
> 
>  sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512/IncludeToken/AlwaysToRecipient";>
> 
> 
>  
> 
> 
> 
> 
>   
> 
>
> 
>sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512/IncludeToken/AlwaysToInitiator";>
> 
>   
> 
>   
> 
>
>   
> 
>   
> 
>   
>   
>  
>sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512/IncludeToken/AlwaysToRecipient";>
> 
>   
> 
>   
> 
>
>   
> 
>   
> 
>   
> 
>   
>
> 
>   
>Namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
> 
> 
> 
> /*[namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/' and 
> local-name()='Envelope']/*[namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/'
>  and local-name()='Header']/*[namespace-uri()=' 
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
>  and local-name()='Security']/*[namespace-uri()=' 
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
>  and local-name()='UsernameToken'] 
> 
> 
>   
>
>   
> 
>  
> 
> /*[namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/' and 
> local-name()='Envelope']/*[namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/'
>  and 
> local-name()='Header']/*[namespace-uri()='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
>  and 
> local-name()='Security']/*[namespace-uri()='http://www.w3.org/2000/09/xmldsig#'
>  and local-name()='Signature']
>  
>   
> 
> -- 
> thanks
> Rishi 


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



Re: [Axis2] How to change the webservices URL.

2007-05-29 Thread Luis Mariano Luporini
Raghu:

   You can change your soap:address in your provided WSDL to
whatever you need.

   Do not forget to set this in your services.xml to instruct Axis
not to override your provided address:

   true
   false

   Hope that it helps

Regrets,

Luis
   

Raghu Upadhyayula escribió:
>
> Hi,
>
>  
>
> My webservice is deployed as part of the war file
> webservices.war, hence my webservice URL would be
> http://localhost/webservices/*services*/MyService
> 
>
>
>
> I want to remove the /services in the webservices URL &
> want to access it as http://localhost/webservices/MyService
>
>
>
> I’ve tried changing the servlet-mapping in *web.xml* as
> follows
>
> *From*
>
> 
>
> AxisServlet
>
> */services/**
>
> 
>
> *To*
>
> 
>
> AxisServlet
>
> */**
>
> 
>
>
>
> I’ve deployed my application after this change and I was
> able to access the wsdl using
> http://localhost/webservices/MyService?wsdl without /services, but the
> soap:address location in the wsdl was still pointing to
> http://localhost/webservices/services/MyService
>
>
>
> And when I access my service from a client like this
>
> MyServiceStub stub = new
> MyServiceStub(“http://localhost/webservices/MyService”);
>
>
>
> I’m getting an error saying that this endpoint
> (http://loaclhost/webservices/MyService) doesn’t exist, but when I
> added /services to the URL it worked fine.
>
>  
>
> Where & How do I change the URL so that it works without
> adding the /services to the URL?
>
>  
>
> Thanks
>
> Raghu
>


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



[Axis2] v1.2 - getResourceAsStream error??

2007-05-29 Thread Javier V

Hi.

I'm using JDK 1.5.0_11, and Tomcat 5.5.23.

I was using Axis2 1.0 and when I wanted to load a resource at my service 
implementation class I was doing with:


  InputStream inStream = 
this.getClass().getClassLoader().getResourceAsStream("config/dir1/myconfig2.web"");


where the resourcefile resides physically in 
"webapps/axis2/WEB-INF/lib/config/dir1/myconfig2.web.


However, I've downloaded Axi2 1.2 and the same instruction returns "null".

Is this wrong now in version 1.2? Must be done in another way or is an 
Error?


Regards

Janfry

_
Acepta el reto MSN Premium: Correos más divertidos con fotos y textos 
increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. 
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos



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



[Axis2] How to change the webservices URL.

2007-05-29 Thread Raghu Upadhyayula
Hi,

 

My webservice is deployed as part of the war file
webservices.war, hence my webservice URL would be
http://localhost/webservices/services/MyService
 



I want to remove the /services in the webservices URL & want
to access it as http://localhost/webservices/MyService



I've tried changing the servlet-mapping in web.xml as
follows

From



AxisServlet

/services/*



To



AxisServlet

/*





I've deployed my application after this change and I was
able to access the wsdl using
http://localhost/webservices/MyService?wsdl without /services, but the
soap:address location in the wsdl was still pointing to
http://localhost/webservices/services/MyService



And when I access my service from a client like this

MyServiceStub stub = new
MyServiceStub("http://localhost/webservices/MyService";);



I'm getting an error saying that this endpoint
(http://loaclhost/webservices/MyService) doesn't exist, but when I added
/services to the URL it worked fine. 

 

Where & How do I change the URL so that it works without
adding the /services to the URL?

 

Thanks

Raghu



Re: Recommendations for a new project?

2007-05-29 Thread Dennis Sosnoski
No, Jibx2Wsdl works fine with 1.4.x code and JVMs. The support for Java 
5 features is strictly optional, and just means that if you *are* using 
these features Jibx2Wsdl will make use of the added information.


--
Dennis M. Sosnoski
SOA and Web Services in Java
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117


[EMAIL PROTECTED] wrote:

Thanks Dennis,

That's very helpful. I looked up jibx2wsdl, and found that it "has support for Java 
5 enumerations and generic collections". Does that mean that Java 5 is required? I 
have to stick with Java 1.4.2 for now because working for the Canadian government means 
working amongst glaciers and dinosaurs!

cheers
md

  

-Original Message-
From: Dennis Sosnoski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 29, 2007 3:16 PM
To: axis-user@ws.apache.org
Subject: Re: Recommendations for a new project?


Hi Michael,

There are no magic bullets when it comes to doing WSDL. 
Contract-first 
is great in theory, and is pretty much the only way to do things in 
cases where you're dealing with different groups in 
developing services 
to be used organization wide. However, the tools that are 
available to 
support editing WSDLs and schemas are really very primitive, and you 
need to have a good understanding of what you're doing in 
order to make 
effective use of these tools. For WSDL this isn't too bad, 
but schema is 
very complex and has a steep learning curve. So if you want to do 
contract-first development correctly, expect to spend a 
couple of weeks 
on researching and learning the basics of schema beforehand.


Think of it this way - would you sign a contract that was 
written in a 
language you couldn't read, under the legal system of a country you 
weren't familiar with? If the answer is "no", then you should 
expect to 
have to learn WSDL and schema regardless of whether you're using 
"contract-first" or "code-first" service development.


There's a lot of confusion over just what is meant by code-first vs. 
contract-first development. I saw a recent posting on this list that 
pointed at the Spring (mis)information on this topic, which 
assumed that 
code-first meant the WSDL and schema was effectively always generated 
on-the-fly from the current code, so that any time the code 
changed the 
WSDL and schema would also change. That's effectively what 
was done by 
the deprecated rpc/enc style of SOAP, and I agree completely 
that this 
is unworkable for any serious enterprise use.


I'd define code-first differently, to say that it means you 
start with 
template code and use that to generate a WSDL and schema definition, 
which can then be used directly or modified as appropriate. 
But whether 
used directly or modified, what you end up with is a WSDL and schema 
that are "fixed" definitions for the service (meaning that 
they are part 
of the service contract, and changing these becomes a service 
versioning 
issue). Based on what I've seen this is actually the approach 
used for 
the majority of real-world web service development. The 
Jibx2Wsdl tool 
(http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl) is 
designed around this principle, and if you're considering 
using JiBX you 
may want to look into using the tool since it handles JiBX binding 
generation, as well as WSDL and schema generation, from 
existing code. 
The current version of the tool is an early release, and I 
expect do an 
update within the next week.


  - Dennis

--
Dennis M. Sosnoski
SOA and Web Services in Java
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



[EMAIL PROTECTED] wrote:

To me, Contact-First makes perfect sense. I haven't heard 
  

the Axis experts say "No No No!" yet, so I figure I'll go with that.


thanks
md

  
  

-Original Message-
From: Luis Mariano Luporini [mailto:[EMAIL PROTECTED]
Sent: Monday, May 28, 2007 1:17 PM
To: axis-user@ws.apache.org
Subject: Re: Recommendations for a new project?


Michael:

   I'm having this kind of questions as you stated in 


your mails.


And think, probably, the better one would be to go with a
'Contract-First' approach to keep the environment 


controlled when one

needs to implement features/changes. This way your clients 
will be happy

to get a consistent WSDL across releases.

   But anyway I would like to hear your points on this. 
Please, let

know if you come to some conclusions.

   Thanks,

Luis


[EMAIL PROTECTED] escribió:



Ok, thanks again

-Original Message-
*From:* robert lazarski [mailto:[EMAIL PROTECTED]
*Sent:* Monday, May 28, 2007 12:36 PM
*To:* axis-user@ws.apache.org
*Subject:* Re: Recommendations for a new project?

JIBX has its own site and docs - I'd follow those to 
  

get on the


   

Re: register DataHandler

2007-05-29 Thread jy

Dims,

I am sending mult-part request using HttpClient.  When I try reading
from the IncomingAttachmentStream, I get read-time-out error on the
last attachment.  It seems the location where read-time-out occurs
depends on the content of stream input.  Repeated attempts of a same
request always timesout at the same location.  Adding another
attachment to the same request runs into readtime out on the last
attachment.  This seems like the read buffer is blocked.  When I
intercept the incoming request using TCPMon, the entire request is
there.  Hence, I don't think it's a flush problem from the sender
side.

Any idea?  Am I missing something?

Here is the code snippet:

   private void getAttachments(MessageContext msgCtx) throws IOException {
Attachments attchts = msgCtx.getAttachmentMap();
IncomingAttachmentStreams instreams =
attchts.getIncomingAttachmentStreams();

int attchtIndex = 1;
while (instreams.isReadyToGetNextStream()) {
IncomingAttachmentInputStream instream = null;
try {
instream = instreams.getNextStream();
if (instream == null)
break;
System.out.println("\n\n content= " 
+
instream.getContentId() + " -");
Map headers = instream.getHeaders();
for (Iterator iter = headers.keySet().iterator(); 
iter.hasNext(); ) {
String header = (String) iter.next();
System.out.println("header: " + header + " = " 
+ headers.get(header));
}

System.out.println("---\n\n");

readContent(attchtIndex++, instream);
}
finally {
if (instream != null) {
instream.close();
}
}
}
   }


   private void readContent(int attachmentIndex,
IncomingAttachmentInputStream instream) throws IOException {
byte buffer[] = new byte[1024];
File file = new File(baseOutputDir + File.separator +
attachmentIndex + ".out");
FileOutputStream fout = null;
try {
int len;
fout = new FileOutputStream(file);
while ((len = instream.read(buffer)) > 0 ) {
fout.write(buffer, 0, len);
}
fout.flush();
}
finally {
if (fout != null) {
fout.close();
}
}

   }


Exception statck:
java.net.SocketTimeoutException: Read timed out
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:129)
   at 
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:747)
   at 
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
   at 
org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:115)
   at 
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:712)
   at org.apache.coyote.Request.doRead(Request.java:429)
   at 
org.apache.coyote.tomcat5.InputBuffer.realReadBytes(InputBuffer.java:290)
   at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:374)
   at org.apache.coyote.tomcat5.InputBuffer.read(InputBuffer.java:305)
   at 
org.apache.coyote.tomcat5.CoyoteInputStream.read(CoyoteInputStream.java:179)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
   at java.io.FilterInputStream.read(FilterInputStream.java:111)
   at java.io.PushbackInputStream.read(PushbackInputStream.java:161)
   at 
org.apache.axiom.attachments.BoundaryDelimitedStream.readFromStream(BoundaryDelimitedStream.java:215)
   at 
org.apache.axiom.attachments.BoundaryDelimitedStream.read(BoundaryDelimitedStream.java:302)
   at 
org.apache.axiom.attachments.BoundaryDelimitedStream.read(BoundaryDelimitedStream.java:359)
   at 
org.apache.axiom.attachments.IncomingAttachmentInputStream.read(IncomingAttachmentInputStream.java:127)
...


Thanks again,
Jennifer

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



Re: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar files from .aar?

2007-05-29 Thread David Illsley

As far as I can tell, we currently only support including no
dependences or all dependencies. My gut instinct is that it shouldn't
be hard to add/change an option to only exclude org.apache.axis2 group
dependencies. Please open a Jira [1] about this and someone will
hopefully get to it.
David

[1] https://issues.apache.org/jira/secure/Dashboard.jspa

On 29/05/07, LuCa <[EMAIL PROTECTED]> wrote:

but I didn't want to exclude all the dependencies jars , only axis2
jar (since I'm sure it's avaiable at the server).

At 17:59 29/5/2007, you wrote:
>Did you try includeDependencies = false?
>
>
>org.apache.axis2
>axis2-aar-maven-plugin
>${version}
>true
>
>
>${basedir}/src/sample/axisversion/META-INF/services.xml
>false
>
>
>
>
>On 5/29/07, LuCa <[EMAIL PROTECTED]> wrote:
>>
>>  I've tried, but it looks like the usage is wrong, cause there is no effect:
>>  the jars are included anyway
>>
>>  < fileSets >
>> < fileSet >
>>  < outputDirectory > target/aar/lib 
>>  < excludes >
>>   < exclude > axis2*.jar 
>>  
>>  
>>  
>>
>>  At 17:49 29/5/2007, you wrote:
>>
>>If you look at the documentation, you'll notice where it talks about
>>  fileSets.  You can use it to manage includes/excludes.  I've not tried
>>  this, but it should be what you're looking for.
>>
>>  Eddie Bush
>>  Software Analyst
>>  Clinical Reference Laboratory
>>  bushe at crlcorp dot com
>>
>>  -Original Message-
>>  From: LuCa [ mailto:[EMAIL PROTECTED]
>>  Sent: Tuesday, May 29, 2007 3:37 PM
>>  To: axis-user@ws.apache.org
>>  Subject: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar files
>>  from .aar?
>>
>>  When using axis2-aar-maven-plugin to create the .aar deploy file, how
>>  configure the plugin to exclude the axis2*.jar files from the .aar
>>  generated?
>>
>>  tks,
>>  Luciana
>>
>>
>>-
>>  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]
>
>
>--
>Davanum Srinivas :: http://davanum.wordpress.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]





--
David Illsley - IBM Web Services Development

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



Re: Data in SOAP messages

2007-05-29 Thread Demetris G


I did find some information on adding headers on the client side or in 
the SOAP

message. How does one ask the Axis engine on the server side to add headers
in the generated WSDL ?

Paul Fremantle wrote:

Sure Demetris - that is what headers are for. However, although you
can include headers in the WSDL, most of the time people don't. The
reason is that they like to keep a separation between application
(functional) and non-application logic (non-functional, e.g. QoS,
higher level tracking etc).

You can add headers inside the client or using a module. You can even
extend the policy languages to define your own headers using a policy.

Paul

On 5/29/07, Demetris G <[EMAIL PROTECTED]> wrote:


Hey Glen,

I hope this makes a bit of a sense:

Can the server send some network specific information to the client
by including that
information in the WSDL file in such a way so that when the client stubs
generate the
SOAP calls back to the server, this information can be intercepted and
utilized in a
certain manner. In other words, I want to take advantage of the existing
traffic between
the client and the server to transport additional information across 
them.


Thanks

Glen Mazza wrote:
> I am not sure what you asking--can you give us an example of what you
> might be looking for?
>
> Glen
>
>
> Am Montag, den 28.05.2007, 23:07 -0400 schrieb Demetris G:
>
>> Hi all,
>>
>> does (and if it does where and how ) the SOAP specificaton 
allow to

>> add proprietary or application specific data
>> to SOAP messages?
>>
>> Thanks
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

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







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



Re: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar files from .aar?

2007-05-29 Thread LuCa
but I didn't want to exclude all the dependencies jars , only axis2 
jar (since I'm sure it's avaiable at the server).


At 17:59 29/5/2007, you wrote:

Did you try includeDependencies = false?

   
   org.apache.axis2
   axis2-aar-maven-plugin
   ${version}
   true
   

${basedir}/src/sample/axisversion/META-INF/services.xml
   false
   
   


On 5/29/07, LuCa <[EMAIL PROTECTED]> wrote:


 I've tried, but it looks like the usage is wrong, cause there is no effect:
 the jars are included anyway

 < fileSets >
< fileSet >
 < outputDirectory > target/aar/lib 
 < excludes >
  < exclude > axis2*.jar 
 
 
 

 At 17:49 29/5/2007, you wrote:

If you look at the documentation, you'll notice where it talks about
 fileSets.  You can use it to manage includes/excludes.  I've not tried
 this, but it should be what you're looking for.

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

 -Original Message-
 From: LuCa [ mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 29, 2007 3:37 PM
 To: axis-user@ws.apache.org
 Subject: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar files
 from .aar?

 When using axis2-aar-maven-plugin to create the .aar deploy file, how
 configure the plugin to exclude the axis2*.jar files from the .aar
 generated?

 tks,
 Luciana


-
 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]



--
Davanum Srinivas :: http://davanum.wordpress.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: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar files from .aar?

2007-05-29 Thread Davanum Srinivas

Did you try includeDependencies = false?

   
   org.apache.axis2
   axis2-aar-maven-plugin
   ${version}
   true
   

${basedir}/src/sample/axisversion/META-INF/services.xml
   false
   
   


On 5/29/07, LuCa <[EMAIL PROTECTED]> wrote:


 I've tried, but it looks like the usage is wrong, cause there is no effect:
 the jars are included anyway

 < fileSets >
< fileSet >
 < outputDirectory > target/aar/lib 
 < excludes >
  < exclude > axis2*.jar 
 
 
 

 At 17:49 29/5/2007, you wrote:

If you look at the documentation, you'll notice where it talks about
 fileSets.  You can use it to manage includes/excludes.  I've not tried
 this, but it should be what you're looking for.

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

 -Original Message-
 From: LuCa [ mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 29, 2007 3:37 PM
 To: axis-user@ws.apache.org
 Subject: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar files
 from .aar?

 When using axis2-aar-maven-plugin to create the .aar deploy file, how
 configure the plugin to exclude the axis2*.jar files from the .aar
 generated?

 tks,
 Luciana


-
 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]



--
Davanum Srinivas :: http://davanum.wordpress.com

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



encrypting the usernametoken header and the body using policy

2007-05-29 Thread Rishi krish

Hi All
I am new to policy and struggling to create a server policy file where in I
can specify the requirement that the usernametoken header should be
encrypted as well as the body. Does anyone has any sample policy which will
do that. I had this policy file but the server fails me saying that the
EncryptedData was not expected error.


http://schemas.xmlsoap.org/ws/2004/09/policy";
xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512";
xmlns:spe="
http://www.ibm.com/xmlns/prod/websphere/200605/ws-securitypolicy-ext";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xmi="
http://schema.omg.org/spec/XMI/1.0"; xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
">
   
   
   http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512/IncludeToken/AlwaysToRecipient
">
   
   
   
   
   
   
   
 
   
 
   
 http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512/IncludeToken/AlwaysToInitiator
">
   
 
   
 
   
 
 
   
 
   
 
 
   
 http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512/IncludeToken/AlwaysToRecipient
">
   
 
   
 
   
 
 
   
 
   
 
   
 
 
   
 
 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/



   
   
 /*[namespace-uri()='
http://schemas.xmlsoap.org/soap/envelope/' and
local-name()='Envelope']/*[namespace-uri()='
http://schemas.xmlsoap.org/soap/envelope/' and
local-name()='Header']/*[namespace-uri()='
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
and local-name()='Security']/*[namespace-uri()='
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
and local-name()='UsernameToken']
   
 
 
  
 
   
   
 /*[namespace-uri()='
http://schemas.xmlsoap.org/soap/envelope/' and
local-name()='Envelope']/*[namespace-uri()='
http://schemas.xmlsoap.org/soap/envelope/' and
local-name()='Header']/*[namespace-uri()='
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
and local-name()='Security']/*[namespace-uri()='
http://www.w3.org/2000/09/xmldsig#' and local-name()='Signature']
   
 

--
thanks
Rishi


RE: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar files from .aar?

2007-05-29 Thread LuCa


I've tried, but it looks like the usage is wrong, cause there is no
effect:
the jars are included anyway
<
fileSets
>
  
<
fileSet
>
  
   
<
outputDirectory
>
target/aar/lib

outputDirectory
>

   
<
excludes
>

   

<
exclude
>
axis2*.jar

exclude
>

   

excludes
>
   

fileSet
>

fileSets>

At 17:49 29/5/2007, you wrote:
If you look at the
documentation, you'll notice where it talks about
fileSets.  You can use it to manage includes/excludes.  I've
not tried
this, but it should be what you're looking for.
Eddie Bush
Software Analyst
Clinical Reference Laboratory
bushe at crlcorp dot com
-Original Message-
From: LuCa
[
mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 29, 2007 3:37 PM
To: axis-user@ws.apache.org
Subject: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar files
from .aar?
When using axis2-aar-maven-plugin to create the .aar deploy file,
how
configure the plugin to exclude the axis2*.jar files from the .aar
generated?
tks,
Luciana

-
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] axis2-aar-maven-plugin how excludes axis2 jar files from .aar?

2007-05-29 Thread Edward Bush
If you look at the documentation, you'll notice where it talks about
fileSets.  You can use it to manage includes/excludes.  I've not tried
this, but it should be what you're looking for.

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

-Original Message-
From: LuCa [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 29, 2007 3:37 PM
To: axis-user@ws.apache.org
Subject: [Axis2] axis2-aar-maven-plugin how excludes axis2 jar files
from .aar?

When using axis2-aar-maven-plugin to create the .aar deploy file, how
configure the plugin to exclude the axis2*.jar files from the .aar
generated?

tks,
Luciana


-
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: MTOM error "java.lang.OutOfMemoryError: Java heap space"

2007-05-29 Thread Davanum Srinivas

can u please paste the stack trace(s)? Are u using http 1.1 or 1.0?

thx,
dims

On 5/29/07, Tammy Dugan <[EMAIL PROTECTED]> wrote:

I created a OMSourcedElementImpl from an input stream:


OMFactory factory = OMAbstractFactory.getOMFactory();
OMNamespace ns = new OMNamespaceImpl("", "");
OMDataSource dataSource = new CustomDataSource(inputStream);
return new OMSourcedElementImpl(localName, ns, factory, dataSource);

I also created a custom data source. Here are some snippets of code from it:

public class CustomDataSource implements OMDataSource
{
private final InputStream data;

public CustomDataSource(InputStream data)
{
this.data = data;
}

public void serialize(XMLStreamWriter xmlWriter) throws
XMLStreamException
{
XMLStreamReader reader = null;

 StreamingOMSerializer serializer = new StreamingOMSerializer();

 reader = getReader();

serializer.serialize(reader, xmlWriter);// OutOfMemory error here

xmlWriter.flush();
}

public XMLStreamReader getReader() throws XMLStreamException
{
return   StAXUtils.createXMLStreamReader(this.data);
}
}


As you can see from the comment, I get an OutOfMemory error at
serializer.serialize when I use a StreamingOMSerializer. Is there
another way I can transfer data from an input stream to an
XMLStreamWriter? What in StreamingOMSerializer is buffering the data?



Tammy



Dennis Sosnoski wrote:
> Hi Paul,
>
> I'm not sure exactly what you mean with this code. This thread has
> been repurposed a time or two, but the question from Tammy was how to
> stream out data from a database as the body of a response. So the data
> is not in the form of an OMElement, and the point of using
> OMDataSource is to avoid building it as an OMElement. The data has to
> be supplied as the AXIOM representation is being written to the output
> stream, which is what OMDataSource allows - it's basically a
> placeholder that says XML output will be generated on demand.
>
> If you *do* build the data as a full AXIOM model you'll run out of
> memory pretty quickly. AXIOM is relatively fat by comparison with most
> other document models, and from what I've seen takes at least 10 times
> the size of the document in memory usage. So the only practical way to
> handle large documents (say >10 MB) is to stream the data using
> OMDataSource or an equivalent.
>
> Incidentally, note that this also means that anyone using WS-Security
> is going to effectively be limited to document sizes of about 10 MB or
> so. Again based on what I've seen, Rampart always ends up building the
> full AXIOM model even if the only thing you're doing is using a
> TimeStamp. I haven't verified this, but I suspect roughly the same
> size limit will apply for attachment handling - expanding the tree
> will inline the attachment data as base64 text, so the fact that it's
> actually transmitted as a binary blob doesn't help when Rampart is
> engaged.
>
>  - Dennis
>

--
Tammy Dugan
Computer Programmer

Regenstrief Institute, Inc.
Medical Informatics
Health Information and Translational Sciences (HITS) Building
410 West 10th Street, Suite 2000
Indianapolis, IN 46202
Main: 317.423.5500
Fax: 317.423.5695
IU campus mail address: HS, 2000

(317) 423 - 5541

Confidentiality Notice: The contents of this message and any files transmitted 
with it may contain confidential and/or privileged information and are intended 
solely for the use of the named addressee(s). Additionally, the information 
contained herein may have been disclosed to you from medical records with 
confidentiality protected by federal and state laws. Federal regulations and 
State laws prohibit you from making further disclosure of such information 
without the specific written consent of the person to whom the information 
pertains or as otherwise permitted by such regulations. A general authorization 
for the release of medical or other information is not sufficient for this 
purpose.

If you have received this message in error, please notify the sender by return 
e-mail and delete the original message. Any retention, disclosure, copying, 
distribution or use of this information by anyone other than the intended 
recipient is strictly prohibited.



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





--
Davanum Srinivas :: http://davanum.wordpress.com

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



RE: OMElement wsdl mapping

2007-05-29 Thread Rich Adili
I think it's legit. "anyType" in this context means "arbitrary XML can
appear here".  It's not AXIOM-specific.

Rich

 



From: LuCa [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 29, 2007 2:31 PM
To: axis-user@ws.apache.org
Subject: OMElement wsdl mapping

 

Can anyone explain me, why when generating a wsdl from a java code
(java2wsdl), 
Axis map the object type OMElement to "anytype" at the wsdl?

Example:
The method at the service java class source:

 public abstract OMElement getModelSolved(OMElement
documentElement,String filename);

The wsdl type generated:
 < xs:element name = "getModelSolved" >
 < xs:complexType >
  < xs:sequence >
   < xs:element name = "param0" nillable
= "true" type = "xs:anyType" />
   < xs:element name = "param1" nillable
= "true" type = "xs:string" />
  
 
 

It does not look like "ideal" for the concept of webService:  
One, when making a client, may not use Axis, so, how would he knows that
"anytype"  is about an Axiom type???

Thanks in advance,
Luciana

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


[Axis2] axis2-aar-maven-plugin how excludes axis2 jar files from .aar?

2007-05-29 Thread LuCa

When using axis2-aar-maven-plugin to create the .aar deploy file,
how configure the plugin to exclude the axis2*.jar files from the 
.aar generated?


tks,
Luciana


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



Re: MTOM error "java.lang.OutOfMemoryError: Java heap space"

2007-05-29 Thread Tammy Dugan

I created a OMSourcedElementImpl from an input stream:


OMFactory factory = OMAbstractFactory.getOMFactory();
OMNamespace ns = new OMNamespaceImpl("", "");
OMDataSource dataSource = new CustomDataSource(inputStream);
return new OMSourcedElementImpl(localName, ns, factory, dataSource);

I also created a custom data source. Here are some snippets of code from it:

public class CustomDataSource implements OMDataSource
{
   private final InputStream data;

   public CustomDataSource(InputStream data)
   {
   this.data = data;
   }

   public void serialize(XMLStreamWriter xmlWriter) throws 
XMLStreamException

   {
   XMLStreamReader reader = null;

StreamingOMSerializer serializer = new StreamingOMSerializer();
 
reader = getReader();


   serializer.serialize(reader, xmlWriter);// OutOfMemory error here
   
   xmlWriter.flush();

   }

   public XMLStreamReader getReader() throws XMLStreamException
   {
   return   StAXUtils.createXMLStreamReader(this.data);
   }
}


As you can see from the comment, I get an OutOfMemory error at 
serializer.serialize when I use a StreamingOMSerializer. Is there 
another way I can transfer data from an input stream to an 
XMLStreamWriter? What in StreamingOMSerializer is buffering the data?




Tammy



Dennis Sosnoski wrote:

Hi Paul,

I'm not sure exactly what you mean with this code. This thread has 
been repurposed a time or two, but the question from Tammy was how to 
stream out data from a database as the body of a response. So the data 
is not in the form of an OMElement, and the point of using 
OMDataSource is to avoid building it as an OMElement. The data has to 
be supplied as the AXIOM representation is being written to the output 
stream, which is what OMDataSource allows - it's basically a 
placeholder that says XML output will be generated on demand.


If you *do* build the data as a full AXIOM model you'll run out of 
memory pretty quickly. AXIOM is relatively fat by comparison with most 
other document models, and from what I've seen takes at least 10 times 
the size of the document in memory usage. So the only practical way to 
handle large documents (say >10 MB) is to stream the data using 
OMDataSource or an equivalent.


Incidentally, note that this also means that anyone using WS-Security 
is going to effectively be limited to document sizes of about 10 MB or 
so. Again based on what I've seen, Rampart always ends up building the 
full AXIOM model even if the only thing you're doing is using a 
TimeStamp. I haven't verified this, but I suspect roughly the same 
size limit will apply for attachment handling - expanding the tree 
will inline the attachment data as base64 text, so the fact that it's 
actually transmitted as a binary blob doesn't help when Rampart is 
engaged.


 - Dennis



--
Tammy Dugan
Computer Programmer

Regenstrief Institute, Inc.
Medical Informatics
Health Information and Translational Sciences (HITS) Building
410 West 10th Street, Suite 2000
Indianapolis, IN 46202
Main: 317.423.5500
Fax: 317.423.5695
IU campus mail address: HS, 2000

(317) 423 - 5541

Confidentiality Notice: The contents of this message and any files transmitted 
with it may contain confidential and/or privileged information and are intended 
solely for the use of the named addressee(s). Additionally, the information 
contained herein may have been disclosed to you from medical records with 
confidentiality protected by federal and state laws. Federal regulations and 
State laws prohibit you from making further disclosure of such information 
without the specific written consent of the person to whom the information 
pertains or as otherwise permitted by such regulations. A general authorization 
for the release of medical or other information is not sufficient for this 
purpose.

If you have received this message in error, please notify the sender by return 
e-mail and delete the original message. Any retention, disclosure, copying, 
distribution or use of this information by anyone other than the intended 
recipient is strictly prohibited.



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



RE: Recommendations for a new project?

2007-05-29 Thread Michael.Davis
Thanks Dennis,

That's very helpful. I looked up jibx2wsdl, and found that it "has support for 
Java 5 enumerations and generic collections". Does that mean that Java 5 is 
required? I have to stick with Java 1.4.2 for now because working for the 
Canadian government means working amongst glaciers and dinosaurs!

cheers
md

> -Original Message-
> From: Dennis Sosnoski [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 29, 2007 3:16 PM
> To: axis-user@ws.apache.org
> Subject: Re: Recommendations for a new project?
> 
> 
> Hi Michael,
> 
> There are no magic bullets when it comes to doing WSDL. 
> Contract-first 
> is great in theory, and is pretty much the only way to do things in 
> cases where you're dealing with different groups in 
> developing services 
> to be used organization wide. However, the tools that are 
> available to 
> support editing WSDLs and schemas are really very primitive, and you 
> need to have a good understanding of what you're doing in 
> order to make 
> effective use of these tools. For WSDL this isn't too bad, 
> but schema is 
> very complex and has a steep learning curve. So if you want to do 
> contract-first development correctly, expect to spend a 
> couple of weeks 
> on researching and learning the basics of schema beforehand.
> 
> Think of it this way - would you sign a contract that was 
> written in a 
> language you couldn't read, under the legal system of a country you 
> weren't familiar with? If the answer is "no", then you should 
> expect to 
> have to learn WSDL and schema regardless of whether you're using 
> "contract-first" or "code-first" service development.
> 
> There's a lot of confusion over just what is meant by code-first vs. 
> contract-first development. I saw a recent posting on this list that 
> pointed at the Spring (mis)information on this topic, which 
> assumed that 
> code-first meant the WSDL and schema was effectively always generated 
> on-the-fly from the current code, so that any time the code 
> changed the 
> WSDL and schema would also change. That's effectively what 
> was done by 
> the deprecated rpc/enc style of SOAP, and I agree completely 
> that this 
> is unworkable for any serious enterprise use.
> 
> I'd define code-first differently, to say that it means you 
> start with 
> template code and use that to generate a WSDL and schema definition, 
> which can then be used directly or modified as appropriate. 
> But whether 
> used directly or modified, what you end up with is a WSDL and schema 
> that are "fixed" definitions for the service (meaning that 
> they are part 
> of the service contract, and changing these becomes a service 
> versioning 
> issue). Based on what I've seen this is actually the approach 
> used for 
> the majority of real-world web service development. The 
> Jibx2Wsdl tool 
> (http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl) is 
> designed around this principle, and if you're considering 
> using JiBX you 
> may want to look into using the tool since it handles JiBX binding 
> generation, as well as WSDL and schema generation, from 
> existing code. 
> The current version of the tool is an early release, and I 
> expect do an 
> update within the next week.
> 
>   - Dennis
> 
> -- 
> Dennis M. Sosnoski
> SOA and Web Services in Java
> Axis2 Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> > To me, Contact-First makes perfect sense. I haven't heard 
> the Axis experts say "No No No!" yet, so I figure I'll go with that.
> >
> > thanks
> > md
> >
> >   
> >> -Original Message-
> >> From: Luis Mariano Luporini [mailto:[EMAIL PROTECTED]
> >> Sent: Monday, May 28, 2007 1:17 PM
> >> To: axis-user@ws.apache.org
> >> Subject: Re: Recommendations for a new project?
> >>
> >>
> >> Michael:
> >>
> >>I'm having this kind of questions as you stated in 
> your mails.
> >> And think, probably, the better one would be to go with a
> >> 'Contract-First' approach to keep the environment 
> controlled when one
> >> needs to implement features/changes. This way your clients 
> >> will be happy
> >> to get a consistent WSDL across releases.
> >>
> >>But anyway I would like to hear your points on this. 
> >> Please, let
> >> know if you come to some conclusions.
> >>
> >>Thanks,
> >>
> >> Luis
> >>
> >>
> >> [EMAIL PROTECTED] escribió:
> >> 
> >>> Ok, thanks again
> >>>
> >>> -Original Message-
> >>> *From:* robert lazarski [mailto:[EMAIL PROTECTED]
> >>> *Sent:* Monday, May 28, 2007 12:36 PM
> >>> *To:* axis-user@ws.apache.org
> >>> *Subject:* Re: Recommendations for a new project?
> >>>
> >>> JIBX has its own site and docs - I'd follow those to 
> get on the
> >>> right track.
> >>>
> >>> Robert
> >>>
> >>> On 5/28/07, [EMAIL PROTECTED]
> >>> *
> >>> <[EMAIL PROTECTE

OMElement wsdl mapping

2007-05-29 Thread LuCa


Can anyone explain me, why when generating a wsdl from a java code
(java2wsdl), 
Axis map the object type OMElement to "anytype" at the
wsdl?
Example:
The method
at the service java class source:

   
public

abstract
 OMElement
getModelSolved(OMElement documentElement,String filename);

The wsdl
type generated:

<
xs:element
name
=

"getModelSolved"
>

<
xs:complexType
>


<
xs:sequence
>



<
xs:element
name
=
"param0"
nillable
=
"true"

type
=
"xs:anyType"
/>



<
xs:element
name
=
"param1"
nillable
=
"true"

type
=
"xs:string"
/>



xs:sequence
>


xs:complexType
>


xs:element
>
It does not look like "ideal" for the concept of
webService:  
One, when making a client, may not use Axis, so, how would he knows that
"anytype"  is about an Axiom type???
Thanks in advance,
Luciana




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



Re: Data in SOAP messages

2007-05-29 Thread Demetris G


Or at least point me to the right documentation for this and I will take
it from there.

Paul Fremantle wrote:

Sure Demetris - that is what headers are for. However, although you
can include headers in the WSDL, most of the time people don't. The
reason is that they like to keep a separation between application
(functional) and non-application logic (non-functional, e.g. QoS,
higher level tracking etc).

You can add headers inside the client or using a module. You can even
extend the policy languages to define your own headers using a policy.

Paul

On 5/29/07, Demetris G <[EMAIL PROTECTED]> wrote:


Hey Glen,

I hope this makes a bit of a sense:

Can the server send some network specific information to the client
by including that
information in the WSDL file in such a way so that when the client stubs
generate the
SOAP calls back to the server, this information can be intercepted and
utilized in a
certain manner. In other words, I want to take advantage of the existing
traffic between
the client and the server to transport additional information across 
them.


Thanks

Glen Mazza wrote:
> I am not sure what you asking--can you give us an example of what you
> might be looking for?
>
> Glen
>
>
> Am Montag, den 28.05.2007, 23:07 -0400 schrieb Demetris G:
>
>> Hi all,
>>
>> does (and if it does where and how ) the SOAP specificaton 
allow to

>> add proprietary or application specific data
>> to SOAP messages?
>>
>> Thanks
>>
>>
>> -
>> 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: Data in SOAP messages

2007-05-29 Thread Demetris G


Hey Paul,

   that sounds good. Excuse my ignorance on some of the technology
details ; would the headers in the WSDL be visible in the SOAP messages
that the client stubs emit without me needing to add anything manually ?
If yes then this solves my problem and it would make for a happy day :)

Thanks again

Paul Fremantle wrote:

Sure Demetris - that is what headers are for. However, although you
can include headers in the WSDL, most of the time people don't. The
reason is that they like to keep a separation between application
(functional) and non-application logic (non-functional, e.g. QoS,
higher level tracking etc).

You can add headers inside the client or using a module. You can even
extend the policy languages to define your own headers using a policy.

Paul

On 5/29/07, Demetris G <[EMAIL PROTECTED]> wrote:


Hey Glen,

I hope this makes a bit of a sense:

Can the server send some network specific information to the client
by including that
information in the WSDL file in such a way so that when the client stubs
generate the
SOAP calls back to the server, this information can be intercepted and
utilized in a
certain manner. In other words, I want to take advantage of the existing
traffic between
the client and the server to transport additional information across 
them.


Thanks

Glen Mazza wrote:
> I am not sure what you asking--can you give us an example of what you
> might be looking for?
>
> Glen
>
>
> Am Montag, den 28.05.2007, 23:07 -0400 schrieb Demetris G:
>
>> Hi all,
>>
>> does (and if it does where and how ) the SOAP specificaton 
allow to

>> add proprietary or application specific data
>> to SOAP messages?
>>
>> Thanks
>>
>>
>> -
>> 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: Recommendations for a new project?

2007-05-29 Thread Dennis Sosnoski

Hi Michael,

There are no magic bullets when it comes to doing WSDL. Contract-first 
is great in theory, and is pretty much the only way to do things in 
cases where you're dealing with different groups in developing services 
to be used organization wide. However, the tools that are available to 
support editing WSDLs and schemas are really very primitive, and you 
need to have a good understanding of what you're doing in order to make 
effective use of these tools. For WSDL this isn't too bad, but schema is 
very complex and has a steep learning curve. So if you want to do 
contract-first development correctly, expect to spend a couple of weeks 
on researching and learning the basics of schema beforehand.


Think of it this way - would you sign a contract that was written in a 
language you couldn't read, under the legal system of a country you 
weren't familiar with? If the answer is "no", then you should expect to 
have to learn WSDL and schema regardless of whether you're using 
"contract-first" or "code-first" service development.


There's a lot of confusion over just what is meant by code-first vs. 
contract-first development. I saw a recent posting on this list that 
pointed at the Spring (mis)information on this topic, which assumed that 
code-first meant the WSDL and schema was effectively always generated 
on-the-fly from the current code, so that any time the code changed the 
WSDL and schema would also change. That's effectively what was done by 
the deprecated rpc/enc style of SOAP, and I agree completely that this 
is unworkable for any serious enterprise use.


I'd define code-first differently, to say that it means you start with 
template code and use that to generate a WSDL and schema definition, 
which can then be used directly or modified as appropriate. But whether 
used directly or modified, what you end up with is a WSDL and schema 
that are "fixed" definitions for the service (meaning that they are part 
of the service contract, and changing these becomes a service versioning 
issue). Based on what I've seen this is actually the approach used for 
the majority of real-world web service development. The Jibx2Wsdl tool 
(http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl) is 
designed around this principle, and if you're considering using JiBX you 
may want to look into using the tool since it handles JiBX binding 
generation, as well as WSDL and schema generation, from existing code. 
The current version of the tool is an early release, and I expect do an 
update within the next week.


 - Dennis

--
Dennis M. Sosnoski
SOA and Web Services in Java
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



[EMAIL PROTECTED] wrote:

To me, Contact-First makes perfect sense. I haven't heard the Axis experts say "No 
No No!" yet, so I figure I'll go with that.

thanks
md

  

-Original Message-
From: Luis Mariano Luporini [mailto:[EMAIL PROTECTED]
Sent: Monday, May 28, 2007 1:17 PM
To: axis-user@ws.apache.org
Subject: Re: Recommendations for a new project?


Michael:

   I'm having this kind of questions as you stated in your mails.
And think, probably, the better one would be to go with a
'Contract-First' approach to keep the environment controlled when one
needs to implement features/changes. This way your clients 
will be happy

to get a consistent WSDL across releases.

   But anyway I would like to hear your points on this. 
Please, let

know if you come to some conclusions.

   Thanks,

Luis


[EMAIL PROTECTED] escribió:


Ok, thanks again

-Original Message-
*From:* robert lazarski [mailto:[EMAIL PROTECTED]
*Sent:* Monday, May 28, 2007 12:36 PM
*To:* axis-user@ws.apache.org
*Subject:* Re: Recommendations for a new project?

JIBX has its own site and docs - I'd follow those to get on the
right track.

Robert

On 5/28/07, [EMAIL PROTECTED]
*
<[EMAIL PROTECTED]
> wrote:

Thanks very much. I am using Hibernate and 
  

fortunately I have


complete control over the schema, so I'll check out jibx.
 
So assuming I'm creating my own wsdl and will use 
  

jibx, would


you generate code using wsdl2java or would you start from
scratch? I suspect that starting from scratch will allow for
cleaner and simpler code in the long run, because as the
number of operations grows then there will be more
opportunities for refactoring code rather than 
  

having lots of


redundant generated code, am I right?
 
cheers

md

-Original Message-
*From:* robert lazarski [mailto:[EMAIL PROTECTED]
]
*Sent:* Monday, May 28, 2007 12:18 PM
*To:* axis-user@ws.apache.

Re: [Axis2] Axis2 1.2 JiBX update

2007-05-29 Thread Dennis Sosnoski

Hi Pavel,

If you can email me (directly) the trace from the exception I'll try to 
see what's going wrong and get it corrected. If you can also send me 
your WSDL and binding, along with the generated stub and message 
receiver, these would probably help.


 - Dennis

Pavel Sharov wrote:

Dennis and others,

I am using Axis2 1.1.1. I've updated my old Axis2 JiBX distribution
'axis2-jibx-1.1.1.jar' with the newest one 'axis2-jibx-1.1.1c.jar'
probably you are talking about in your posting here (downloaded it from
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx). I will not go
deeply into details now - will put my problem briefly, maybe that will
suffice to get a hint on the reason of the problem.
I'm using the WSDL2Java to generate both client and server Java code
from my WSDL and some JiBX bindings. With the previous distribution it's
all ok. However, with the recent update, I am getting a "Namespace not
found" error (which namespace - not specified) in runtime when trying to
marshall/unmarshall. The exception is caused by a call to the
constructor of org.apache.axis2.jibx.JiBXDataSource class, either in my
client stub or in my server message receiver.
I wouldn't like to continue using the old distribution as I see some
important bugs fixed in the new one. Could you please give me any hint
on what is going on? 
Thank you a lot in advance!


Pavel

-Original Message-
From: Dennis Sosnoski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 3:30 PM

To: axis-user
Subject: [Axis2] Axis2 1.2 JiBX update

I've updated the axis2-jibx.jar module for the 1.2 release of Axis2 to 
fix some problems with serialization (discovered while testing my 
validation module :-[  - see the prior post). The update is available on


the axis2-jibx wiki page:
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx

The same issues are likely causing problems some users have experienced 
using JiBX with Rampart on the 1.1.1 release. I'll try to backport the 
fixes to the 1.1.1 code soon.


  - Dennis

  


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



Re: register DataHandler

2007-05-29 Thread jy

Thanks.  I will give this a try.  Don't mind doing some work.  I just
didn't want to create some hackey solution or reinvent the wheel.

Thanks a lot,
Jennifer

On 5/28/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

Thilina,
Am sorry, i'd have to differ :) Remember the streaming API? Jennifer
can use that.

Jennifer,
Be prepared to do some work :) Yes, it's possible. See
IncomingAttachmentInputTest in axiom

https://svn.apache.org/repos/asf/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/attachments/IncomingAttachmentInputTest.java

Basically you start by accessing using the
MessageConext.getAttachmentMap to get the Attachments object and then
call the getIncomingAttachmentStreams of the attachments object. that
will return a IncomingAttachmentInputStream and you can call
getNextStream repeatedly till you find the one you want.
IncomingAttachmentInputStream has a getHeaders which will let you
access the custom headers in your mime parts.

thanks,
dims

On 5/28/07, jy <[EMAIL PROTECTED]> wrote:
> Thilina,
>
> Thanks for your reply.
>
> Do you have any suggestions as to how to address this?  Do I need to
> abandon Axis2 framework all together and read HTTP stream directly?
> Is there another WS framework that offers more extensibility?
>
> Thanks,
> Jennifer
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Davanum Srinivas :: http://davanum.wordpress.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: Data in SOAP messages

2007-05-29 Thread Paul Fremantle

Sure Demetris - that is what headers are for. However, although you
can include headers in the WSDL, most of the time people don't. The
reason is that they like to keep a separation between application
(functional) and non-application logic (non-functional, e.g. QoS,
higher level tracking etc).

You can add headers inside the client or using a module. You can even
extend the policy languages to define your own headers using a policy.

Paul

On 5/29/07, Demetris G <[EMAIL PROTECTED]> wrote:


Hey Glen,

I hope this makes a bit of a sense:

Can the server send some network specific information to the client
by including that
information in the WSDL file in such a way so that when the client stubs
generate the
SOAP calls back to the server, this information can be intercepted and
utilized in a
certain manner. In other words, I want to take advantage of the existing
traffic between
the client and the server to transport additional information across them.

Thanks

Glen Mazza wrote:
> I am not sure what you asking--can you give us an example of what you
> might be looking for?
>
> Glen
>
>
> Am Montag, den 28.05.2007, 23:07 -0400 schrieb Demetris G:
>
>> Hi all,
>>
>> does (and if it does where and how ) the SOAP specificaton allow to
>> add proprietary or application specific data
>> to SOAP messages?
>>
>> Thanks
>>
>>
>> -
>> 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]





--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

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

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



Re: Retrieving SOAP headers of WS response

2007-05-29 Thread Philipp Leitner
"With WSDL 2.0 you can specify http headers in the wsdl itself (For both 
HTTP and SOAP bindings)."


okay, but I was thinking more of the situation where I have a service 
which I cannot change, and want to set the headers on client side (the 
service will use WSDL 1.1). Except from that I do not want to use 
wsdl2java, instead I am constructing the AXIOM model myself. Is it 
possible to directly access the HTTP headers in such a situation?


"but is it also possible to get a map or so of the headers that the 
/response/ SOAP message contained?"


For me this would be the more important question - do you know how I can 
access the SOAP headers of the SOAP response?


/philipp

keith chapman wrote:

Hi Philipp,

With WSDL 2.0 you can specify http headers in the wsdl itself (For 
both HTTP and SOAP bindings). And if you use wsdl2java on such a WSDL 
the code generated contains methods to add the HTTPHeader. For the 
client it will be just another parameter passed into the operation. 
The stub will retrive this parameter and stick it in as a HTTP header.


But there is no easy method such as above to retrive an HTTP response 
header.


Thanks,
Keith.

On 5/29/07, *Philipp Leitner* < [EMAIL PROTECTED] 
> wrote:


Hi all,

I have two question on the Axis2 client-side API:

I know that there are quite simple convenience methods for adding SOAP
header fields when using the client-side API (like
ServiceClient.addStringHeader(...) ), but is it also possible to get a
map or so of the headers that the /response/ SOAP message contained?

A related question: is it possible with Axis2 to directly set or
retrieve the HTTP header fields (of course only senseful in a HTTP
binding) besides what you can specify in
org.apache.axis2.client.Options ? For instance is it possible to
insert a
header "foo: bar" in all my WS invocations? And again: is it
possible to
retrieve the HTTP headers of the HTTP response in the Axis2 client (to
get, for instance, the "Server" value...).

Thank you in advance,
philipp

-
To unsubscribe, e-mail: [EMAIL PROTECTED]

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





--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/ 



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



Re: Platform support help for axis 1.4

2007-05-29 Thread Davanum Srinivas

Yep. those should work AFAIK. No, there are no other references or
"blessed" list(s).

-- dims

On 5/29/07, Joel D'sa <[EMAIL PROTECTED]> wrote:

I am using Axis 1.4 and I was trying to search for some links on supported 
platforms/JREs for Axis

The documentation listed JDK Version - 1.3.1+ as the recommended environment 
but I am looking for specific information if it is available.

I am looking to find if Axis 1.4 has been qualified on the following platforms 
/ JREs

Microsoft Windows 2003 Enterprise SP1 (32-bit)  Sun JRE 1.4.2 (32-bit)
Microsoft Windows 2003 Enterprise SP1 (32-bit)  Sun JRE 1.5 update 10 (32-bit)
Red Hat Linux AS 3.0 (32-bit)   Sun JRE 1.4.2 (32-bit)
Red Hat Linux AS 3.0 (32-bit)   Sun JRE 1.5 update 10 (32-bit)

Is there a site or a reference of some sort for Axis that lists such support or more 
details than "JDK Version - 1.3.1+"

Thanks,
Joel


FREE ONLINE PHOTOSHARING - Share your photos online with your friends and 
family!
Visit http://www.inbox.com/photosharing to find out more!

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





--
Davanum Srinivas :: http://davanum.wordpress.com

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



Platform support help for axis 1.4

2007-05-29 Thread Joel D'sa
I am using Axis 1.4 and I was trying to search for some links on supported 
platforms/JREs for Axis

The documentation listed JDK Version - 1.3.1+ as the recommended environment 
but I am looking for specific information if it is available. 

I am looking to find if Axis 1.4 has been qualified on the following platforms 
/ JREs

Microsoft Windows 2003 Enterprise SP1 (32-bit)  Sun JRE 1.4.2 (32-bit) 
Microsoft Windows 2003 Enterprise SP1 (32-bit)  Sun JRE 1.5 update 10 (32-bit)  
   
Red Hat Linux AS 3.0 (32-bit)   Sun JRE 1.4.2 (32-bit) 
Red Hat Linux AS 3.0 (32-bit)   Sun JRE 1.5 update 10 (32-bit)   

Is there a site or a reference of some sort for Axis that lists such support or 
more details than "JDK Version - 1.3.1+"

Thanks,
Joel


FREE ONLINE PHOTOSHARING - Share your photos online with your friends and 
family!
Visit http://www.inbox.com/photosharing to find out more!

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



Re: Logging SOAP requests?

2007-05-29 Thread Davanum Srinivas

If you used Axis1's commons http sender..yes.

-- dims

On 5/29/07, Doug Schaible <[EMAIL PROTECTED]> wrote:

Dims,

Would this also work for Axis 1?

Thanks,
Doug


On 5/23/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>
> Rich,
>
> See http://blogs.cocoondev.org/dims/archives/004668.html
>
> thanks,
> dims
>
> On 5/23/07, Rich Adili <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Was thinking in terms of an option that field personnel could flip on
and
> > off. Debugging proxies are a bit arduous for such folks. I'm surprised a
> > simple logging mechanism isn't built in.
> >
> >
> >
> >  
> >
> >
> > From: robert lazarski [mailto:[EMAIL PROTECTED]
> >  Sent: Wednesday, May 23, 2007 3:01 PM
> >  To: axis-user@ws.apache.org
> >  Subject: Re: Logging SOAP requests?
> >
> >
> >
> >
> > If you are talking about writing them to a file / db via log4j , look at
the
> > modules guide and their howto on writing a logging module:
> >
> >  http://ws.apache.org/axis2/1_2/modules.html
> >
> >  If you just want to look at it, try tcpmon or the soapmonitor.
> >
> >  HTH,
> >  Robert
> >
> >
> > On 5/23/07, Rich Adili < [EMAIL PROTECTED]> wrote:
> >
> >
> > Hi,
> >
> > How does one go about logging the outgoing SOAP requests?
> >
> > Rich Adili
> >
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Davanum Srinivas :: http://davanum.wordpress.com

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



Re: Logging SOAP requests?

2007-05-29 Thread Doug Schaible

Dims,

Would this also work for Axis 1?

Thanks,
Doug


On 5/23/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:


Rich,

See http://blogs.cocoondev.org/dims/archives/004668.html

thanks,
dims

On 5/23/07, Rich Adili <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Was thinking in terms of an option that field personnel could flip on
and
> off. Debugging proxies are a bit arduous for such folks. I'm surprised a
> simple logging mechanism isn't built in.
>
>
>
>  
>
>
> From: robert lazarski [mailto:[EMAIL PROTECTED]
>  Sent: Wednesday, May 23, 2007 3:01 PM
>  To: axis-user@ws.apache.org
>  Subject: Re: Logging SOAP requests?
>
>
>
>
> If you are talking about writing them to a file / db via log4j , look at
the
> modules guide and their howto on writing a logging module:
>
>  http://ws.apache.org/axis2/1_2/modules.html
>
>  If you just want to look at it, try tcpmon or the soapmonitor.
>
>  HTH,
>  Robert
>
>
> On 5/23/07, Rich Adili < [EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> How does one go about logging the outgoing SOAP requests?
>
> Rich Adili
>
>


--
Davanum Srinivas :: http://davanum.wordpress.com

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




Re: Data in SOAP messages

2007-05-29 Thread Demetris G


Hey Glen,

   I hope this makes a bit of a sense:

   Can the server send some network specific information to the client 
by including that
information in the WSDL file in such a way so that when the client stubs 
generate the
SOAP calls back to the server, this information can be intercepted and 
utilized in a
certain manner. In other words, I want to take advantage of the existing 
traffic between

the client and the server to transport additional information across them.

Thanks

Glen Mazza wrote:

I am not sure what you asking--can you give us an example of what you
might be looking for?

Glen  



Am Montag, den 28.05.2007, 23:07 -0400 schrieb Demetris G:
  

Hi all,

does (and if it does where and how ) the SOAP specificaton allow to 
add proprietary or application specific data

to SOAP messages?

Thanks


-
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: MessageContext.getCurrentMessageContext() returns null.

2007-05-29 Thread Wang, Hailong (NIH/CIT) [C]
I was able to get MessageContext before. At that time I used the code
generated by wsdl2java. But right now I used AXIOM instead of code
generation. I am just wondering if I missed something in the client.

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 29, 2007 10:58 AM
To: axis-user@ws.apache.org
Subject: Re: MessageContext.getCurrentMessageContext() returns null.

Hmm..handler's invoke() does have access to the message context..

public InvocationResponse invoke(MessageContext msgContext) throws
AxisFault;

-- dims

On 5/29/07, Tony Dean <[EMAIL PROTECTED]> wrote:
> yes, this is bad design.  you should be able to get/set contextual
message information from within handlers just as in the same way you can
from jax-rpc and jax-ws handlders.
>
> > -Original Message-
> > From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 29, 2007 10:39 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: MessageContext.getCurrentMessageContext() returns null.
> >
> > Hi,
> >
> > MessageContext.getCurrentMessageContext() will return the
> > message context only after the message reaches the message
> > receiver. The callback handler is called way before this and
> > at this point this will be null.
> >
> > Thanks,
> > Ruchith
> >
> > On 5/29/07, Wang, Hailong (NIH/CIT) [C] <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > > Hi,
> > >
> > >
> > >
> > > I happened a problem. After I used Rampart in the axis2, from the
> > > CallbackHandler in the server side I can not get MessageContext
> > > Instance throught
> > MessageContext.getCurrentMessageContext(). Is there
> > > anyone has any clue on this problem? Thanks in advance.
> > >
> > >
> > >
> > > Hailong Wang
> > >
> > > National Database for Autism Research(NDAR)
> > >
> > > NIH/CIT/DECA (MOM CONTRACTOR)
> > >
> > > 9000 Rockville Pike, Bld 12A/Room 2027
> > >
> > > Bethesda, MD 20892
> > >
> > > Phone:  301-402-3045
> > >
> > > Fax:   301-480-0028
> > >
> > > Email:   [EMAIL PROTECTED]
> > >
> > > URL:   http://ndar.nih.gov
> > >
> > >
> >
> >
> > --
> > www.ruchith.org
> > www.wso2.org
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.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: MessageContext.getCurrentMessageContext() returns null.

2007-05-29 Thread Tony Dean
I'm referring to PWCB handlder, not module handler... 

> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 29, 2007 10:58 AM
> To: axis-user@ws.apache.org
> Subject: Re: MessageContext.getCurrentMessageContext() returns null.
> 
> Hmm..handler's invoke() does have access to the message context..
> 
> public InvocationResponse invoke(MessageContext msgContext) 
> throws AxisFault;
> 
> -- dims
> 
> On 5/29/07, Tony Dean <[EMAIL PROTECTED]> wrote:
> > yes, this is bad design.  you should be able to get/set 
> contextual message information from within handlers just as 
> in the same way you can from jax-rpc and jax-ws handlders.
> >
> > > -Original Message-
> > > From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, May 29, 2007 10:39 AM
> > > To: axis-user@ws.apache.org
> > > Subject: Re: MessageContext.getCurrentMessageContext() 
> returns null.
> > >
> > > Hi,
> > >
> > > MessageContext.getCurrentMessageContext() will return the message 
> > > context only after the message reaches the message receiver. The 
> > > callback handler is called way before this and at this point this 
> > > will be null.
> > >
> > > Thanks,
> > > Ruchith
> > >
> > > On 5/29/07, Wang, Hailong (NIH/CIT) [C] 
> <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > >
> > > >
> > > > I happened a problem. After I used Rampart in the 
> axis2, from the 
> > > > CallbackHandler in the server side I can not get MessageContext 
> > > > Instance throught
> > > MessageContext.getCurrentMessageContext(). Is there
> > > > anyone has any clue on this problem? Thanks in advance.
> > > >
> > > >
> > > >
> > > > Hailong Wang
> > > >
> > > > National Database for Autism Research(NDAR)
> > > >
> > > > NIH/CIT/DECA (MOM CONTRACTOR)
> > > >
> > > > 9000 Rockville Pike, Bld 12A/Room 2027
> > > >
> > > > Bethesda, MD 20892
> > > >
> > > > Phone:  301-402-3045
> > > >
> > > > Fax:   301-480-0028
> > > >
> > > > Email:   [EMAIL PROTECTED]
> > > >
> > > > URL:   http://ndar.nih.gov
> > > >
> > > >
> > >
> > >
> > > --
> > > www.ruchith.org
> > > www.wso2.org
> > >
> > > 
> 
> > > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Davanum Srinivas :: http://davanum.wordpress.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: MessageContext.getCurrentMessageContext() returns null.

2007-05-29 Thread Wang, Hailong (NIH/CIT) [C]
I was able to get MessageContext before. At that time I used the code
generated by wsdl2java. But right now I used AXIOM instead of code
generation. I am just wondering if I missed something in the client.


Hailong

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 29, 2007 10:58 AM
To: axis-user@ws.apache.org
Subject: Re: MessageContext.getCurrentMessageContext() returns null.

Hmm..handler's invoke() does have access to the message context..

public InvocationResponse invoke(MessageContext msgContext) throws
AxisFault;

-- dims

On 5/29/07, Tony Dean <[EMAIL PROTECTED]> wrote:
> yes, this is bad design.  you should be able to get/set contextual
message information from within handlers just as in the same way you can
from jax-rpc and jax-ws handlders.
>
> > -Original Message-
> > From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 29, 2007 10:39 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: MessageContext.getCurrentMessageContext() returns null.
> >
> > Hi,
> >
> > MessageContext.getCurrentMessageContext() will return the
> > message context only after the message reaches the message
> > receiver. The callback handler is called way before this and
> > at this point this will be null.
> >
> > Thanks,
> > Ruchith
> >
> > On 5/29/07, Wang, Hailong (NIH/CIT) [C] <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > > Hi,
> > >
> > >
> > >
> > > I happened a problem. After I used Rampart in the axis2, from the
> > > CallbackHandler in the server side I can not get MessageContext
> > > Instance throught
> > MessageContext.getCurrentMessageContext(). Is there
> > > anyone has any clue on this problem? Thanks in advance.
> > >
> > >
> > >
> > > Hailong Wang
> > >
> > > National Database for Autism Research(NDAR)
> > >
> > > NIH/CIT/DECA (MOM CONTRACTOR)
> > >
> > > 9000 Rockville Pike, Bld 12A/Room 2027
> > >
> > > Bethesda, MD 20892
> > >
> > > Phone:  301-402-3045
> > >
> > > Fax:   301-480-0028
> > >
> > > Email:   [EMAIL PROTECTED]
> > >
> > > URL:   http://ndar.nih.gov
> > >
> > >
> >
> >
> > --
> > www.ruchith.org
> > www.wso2.org
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.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: MessageContext.getCurrentMessageContext() returns null.

2007-05-29 Thread Davanum Srinivas

Hmm..handler's invoke() does have access to the message context..

public InvocationResponse invoke(MessageContext msgContext) throws AxisFault;

-- dims

On 5/29/07, Tony Dean <[EMAIL PROTECTED]> wrote:

yes, this is bad design.  you should be able to get/set contextual message 
information from within handlers just as in the same way you can from jax-rpc 
and jax-ws handlders.

> -Original Message-
> From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 29, 2007 10:39 AM
> To: axis-user@ws.apache.org
> Subject: Re: MessageContext.getCurrentMessageContext() returns null.
>
> Hi,
>
> MessageContext.getCurrentMessageContext() will return the
> message context only after the message reaches the message
> receiver. The callback handler is called way before this and
> at this point this will be null.
>
> Thanks,
> Ruchith
>
> On 5/29/07, Wang, Hailong (NIH/CIT) [C] <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > I happened a problem. After I used Rampart in the axis2, from the
> > CallbackHandler in the server side I can not get MessageContext
> > Instance throught
> MessageContext.getCurrentMessageContext(). Is there
> > anyone has any clue on this problem? Thanks in advance.
> >
> >
> >
> > Hailong Wang
> >
> > National Database for Autism Research(NDAR)
> >
> > NIH/CIT/DECA (MOM CONTRACTOR)
> >
> > 9000 Rockville Pike, Bld 12A/Room 2027
> >
> > Bethesda, MD 20892
> >
> > Phone:  301-402-3045
> >
> > Fax:   301-480-0028
> >
> > Email:   [EMAIL PROTECTED]
> >
> > URL:   http://ndar.nih.gov
> >
> >
>
>
> --
> www.ruchith.org
> www.wso2.org
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





--
Davanum Srinivas :: http://davanum.wordpress.com

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



RE: Stax API Issues on Weblogic 9

2007-05-29 Thread John Pfeifer
I have the stax api jars in the axis2 WEB-INF lib, the problem occurs when I 
remove the servlet-api-2.3.jar from the WEB-INF/lib.  When I remove it from the 
WEB-INF/lib, the classloader attempts to load classes from the webapp parent 
classloader (which, in turn loads the stax classes from the weblogic class 
loader).   I don't think it's a good practice to bundle the servlet api with 
the war file... I found this issue during cleanup.  If I leave the servlet-api 
jar in the WEB-INF/lib everything works fine.

Thanks,

jp4



-Original Message-
From: Pal, Ravi [mailto:[EMAIL PROTECTED]
Sent: Tue 5/29/2007 10:36 AM
To: John Pfeifer
Subject: RE: Stax API Issues on Weblogic 9
 
yes - your axis application class path.

-Original Message-
From: John Pfeifer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 29, 2007 7:52 PM
To: Pal, Ravi
Subject: RE: Stax API Issues on Weblogic 9



Do you mean add both api jars to the weblogic system classpath?

Thanks,

jp4


-Original Message-
From: Pal, Ravi [ mailto:[EMAIL PROTECTED]
Sent: Tue 5/29/2007 10:22 AM
To: John Pfeifer
Subject: RE: Stax API Issues on Weblogic 9

use STAX 1 and STAX 2 in your class path, note, you would require both of them.

-Original Message-
From: John Pfeifer [ mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 29, 2007 7:15 PM
To: axis-user@ws.apache.org
Subject: Stax API Issues on Weblogic 9



I am running into an issue running axis2 on Weblogic 9... If I remove the 
servlet-api-2.3.jar from the axis2.war file I get the following error.

 Root cause of ServletException.
 [java] java.lang.NoSuchMethodError: 
javax.xml.stream.XMLOutputFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLOutputFactory;
 [java] at 
org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java:97)
 [java] at 
org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:123)
 [java] at 
org.apache.axiom.om.impl.MTOMXMLStreamWriter.(MTOMXMLStreamWriter.java:74)
 [java] at 
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:410)
 [java] at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:275)
 [java] Truncated. see log file for complete stacktrace


I did a bit more investigation and found that the XMLOutputFactory class in the 
stax-api-1.0.1.jar file contains a method with the following signature

public static XMLOutputFactory newInstance(String factoryId, ClassLoader 
classLoader) throws FactoryConfigurationError

The weblogic jar file however contains a different method signature

public static XMLInputFactory newInstance(String factoryId, ClassLoader 
classLoader) throws FactoryConfigurationError


Basically, I want to cleanup the dependencies in my axis2.war file and 
shouldn't have to carry around the servlet api inside the war file.  It looks 
like the BEA method signature above is incorrect (why would 
XMLOutputFactory.newInstance() return an XMLInputFactory object?).  Has anyone 
encountered this issues, if so what is the workaround?  I don't want to prepend 
the stax-api jar to the system classpath unless I can be sure that it won't 
break anything in Weblogic?  Suggestions would be appreciated.

Thanks,

jp4







Re: Can i have two InFlow phases?

2007-05-29 Thread Afkham Azeez

On 5/29/07, Afkham Azeez <[EMAIL PROTECTED]> wrote:


You need to do two things:

1. Enable HTTPS transport in axis2

   Add the following segment:


HTTP/1.1
chunked




The above segment has to be added to you axis2.xml file.

2. If necessary, enable HTTPS transport in the services.xml of your service

archive (.aar file)
This is necessary only if you have explicitly declared that your
service has to be exposed via certain transports. In such a case, you'd need
to add;
   
   http
https

to the services.xml.
If the transports element is not present, the service will be exposed on
all available transports.

HTH
Azeez

On 5/29/07, Wang, Hailong (NIH/CIT) [C] <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>
>
> I need to provide two transport support, one is HTTP, and another is
> HTTPS. For the HTTP, I will use Rampart to secure the SOAP message. But for
> HTTPS, I will count on HTTPS to secure the communication. Is that possible
> in axis2? Thanks very much in advance.
>
>
>
>
>
> *Hailong Wang*
>
> National Database for Autism Research(NDAR)
>
> NIH/CIT/DECA (MOM CONTRACTOR)
>
> 9000 Rockville Pike, Bld 12A/Room 2027
>
> Bethesda, MD 20892
>
> Phone:  301-402-3045
>
> Fax:   301-480-0028
>
> Email:   [EMAIL PROTECTED]
>
> URL:   http://ndar.nih.gov
>
>
>



--
Thanks
Afkham Azeez

http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760





--
Thanks
Afkham Azeez

http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760


Re: Can i have two InFlow phases?

2007-05-29 Thread Afkham Azeez

You need to do two things:

1. Enable HTTPS transport in axis2

  Add the following segment:

   
   HTTP/1.1
   chunked
   

2. If necessary, enable HTTPS transport in the services.xml of your service
archive (.aar file)
   This is necessary only if you have explicitly declared that your
service has to be exposed via certain transports. In such a case, you'd need
to add;
  
  http
   https
   
to the services.xml.
If the transports element is not present, the service will be exposed on all
available transports.

HTH
Azeez

On 5/29/07, Wang, Hailong (NIH/CIT) [C] <[EMAIL PROTECTED]> wrote:


 Hi,



I need to provide two transport support, one is HTTP, and another is
HTTPS. For the HTTP, I will use Rampart to secure the SOAP message. But for
HTTPS, I will count on HTTPS to secure the communication. Is that possible
in axis2? Thanks very much in advance.





*Hailong Wang*

National Database for Autism Research(NDAR)

NIH/CIT/DECA (MOM CONTRACTOR)

9000 Rockville Pike, Bld 12A/Room 2027

Bethesda, MD 20892

Phone:  301-402-3045

Fax:   301-480-0028

Email:   [EMAIL PROTECTED]

URL:   http://ndar.nih.gov







--
Thanks
Afkham Azeez

http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760


[Axis2] Exception Processing ErrorPage java.lang.IllegalStateException

2007-05-29 Thread Tammy Dugan

I keep getting this error in my localhost log from axis2:

2007-05-29 10:35:45 ErrorDispatcherValve[localhost]: Exception 
Processing ErrorPage[errorCode=500, location=/axis2-web/Error/error500.jsp]

java.lang.IllegalStateException
   at org.apache.coyote.Response.reset(Response.java:296)
   at 
org.apache.coyote.tomcat4.CoyoteResponse.reset(CoyoteResponse.java:580)
   at 
org.apache.coyote.tomcat4.CoyoteResponse.reset(CoyoteResponse.java:776)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:364)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:278)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:128)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

   at java.lang.Thread.run(Unknown Source)


What do I need to do to get a reasonable looking error?

Tammy

--
Tammy Dugan
Computer Programmer

Regenstrief Institute, Inc.
Medical Informatics
Health Information and Translational Sciences (HITS) Building
410 West 10th Street, Suite 2000
Indianapolis, IN 46202
Main: 317.423.5500
Fax: 317.423.5695
IU campus mail address: HS, 2000

(317) 423 - 5541

Confidentiality Notice: The contents of this message and any files transmitted 
with it may contain confidential and/or privileged information and are intended 
solely for the use of the named addressee(s). Additionally, the information 
contained herein may have been disclosed to you from medical records with 
confidentiality protected by federal and state laws. Federal regulations and 
State laws prohibit you from making further disclosure of such information 
without the specific written consent of the person to whom the information 
pertains or as otherwise permitted by such regulations. A general authorization 
for the release of medical or other information is not sufficient for this 
purpose.

If you have received this message in error, please notify the sender by return 
e-mail and delete the original message. Any retention, disclosure, copying, 
distribution or use of this information by anyone other than the intended 
recipient is strictly prohibited.



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



RE: MessageContext.getCurrentMessageContext() returns null.

2007-05-29 Thread Tony Dean
yes, this is bad design.  you should be able to get/set contextual message 
information from within handlers just as in the same way you can from jax-rpc 
and jax-ws handlders. 

> -Original Message-
> From: Ruchith Fernando [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 29, 2007 10:39 AM
> To: axis-user@ws.apache.org
> Subject: Re: MessageContext.getCurrentMessageContext() returns null.
> 
> Hi,
> 
> MessageContext.getCurrentMessageContext() will return the 
> message context only after the message reaches the message 
> receiver. The callback handler is called way before this and 
> at this point this will be null.
> 
> Thanks,
> Ruchith
> 
> On 5/29/07, Wang, Hailong (NIH/CIT) [C] <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > I happened a problem. After I used Rampart in the axis2, from the 
> > CallbackHandler in the server side I can not get MessageContext 
> > Instance throught 
> MessageContext.getCurrentMessageContext(). Is there 
> > anyone has any clue on this problem? Thanks in advance.
> >
> >
> >
> > Hailong Wang
> >
> > National Database for Autism Research(NDAR)
> >
> > NIH/CIT/DECA (MOM CONTRACTOR)
> >
> > 9000 Rockville Pike, Bld 12A/Room 2027
> >
> > Bethesda, MD 20892
> >
> > Phone:  301-402-3045
> >
> > Fax:   301-480-0028
> >
> > Email:   [EMAIL PROTECTED]
> >
> > URL:   http://ndar.nih.gov
> >
> >
> 
> 
> --
> www.ruchith.org
> www.wso2.org
> 
> -
> 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: MessageContext.getCurrentMessageContext() returns null.

2007-05-29 Thread Ruchith Fernando

Hi,

MessageContext.getCurrentMessageContext() will return the message
context only after the message reaches the message receiver. The
callback handler is called way before this and at this point this will
be null.

Thanks,
Ruchith

On 5/29/07, Wang, Hailong (NIH/CIT) [C] <[EMAIL PROTECTED]> wrote:





Hi,



I happened a problem. After I used Rampart in the axis2, from the
CallbackHandler in the server side I can not get MessageContext Instance
throught MessageContext.getCurrentMessageContext(). Is
there anyone has any clue on this problem? Thanks in advance.



Hailong Wang

National Database for Autism Research(NDAR)

NIH/CIT/DECA (MOM CONTRACTOR)

9000 Rockville Pike, Bld 12A/Room 2027

Bethesda, MD 20892

Phone:  301-402-3045

Fax:   301-480-0028

Email:   [EMAIL PROTECTED]

URL:   http://ndar.nih.gov





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

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



MessageContext.getCurrentMessageContext() returns null.

2007-05-29 Thread Wang, Hailong (NIH/CIT) [C]
Hi,

 

I happened a problem. After I used Rampart in the axis2, from the
CallbackHandler in the server side I can not get MessageContext Instance
throught MessageContext.getCurrentMessageContext(). Is there anyone has
any clue on this problem? Thanks in advance.

 

Hailong Wang

National Database for Autism Research(NDAR)

NIH/CIT/DECA (MOM CONTRACTOR)

9000 Rockville Pike, Bld 12A/Room 2027

Bethesda, MD 20892

Phone:  301-402-3045

Fax:   301-480-0028

Email:   [EMAIL PROTECTED]

URL:   http://ndar.nih.gov

 



Can i have two InFlow phases?

2007-05-29 Thread Wang, Hailong (NIH/CIT) [C]
Hi,

 

I need to provide two transport support, one is HTTP, and another is
HTTPS. For the HTTP, I will use Rampart to secure the SOAP message. But
for HTTPS, I will count on HTTPS to secure the communication. Is that
possible in axis2? Thanks very much in advance.

 

 

Hailong Wang

National Database for Autism Research(NDAR)

NIH/CIT/DECA (MOM CONTRACTOR)

9000 Rockville Pike, Bld 12A/Room 2027

Bethesda, MD 20892

Phone:  301-402-3045

Fax:   301-480-0028

Email:   [EMAIL PROTECTED]

URL:   http://ndar.nih.gov

 



Stax API Issues on Weblogic 9

2007-05-29 Thread John Pfeifer
I am running into an issue running axis2 on Weblogic 9... If I remove the 
servlet-api-2.3.jar from the axis2.war file I get the following error.

 Root cause of ServletException.
 [java] java.lang.NoSuchMethodError: 
javax.xml.stream.XMLOutputFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLOutputFactory;
 [java] at 
org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java:97)
 [java] at 
org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:123)
 [java] at 
org.apache.axiom.om.impl.MTOMXMLStreamWriter.(MTOMXMLStreamWriter.java:74)
 [java] at 
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:410)
 [java] at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:275)
 [java] Truncated. see log file for complete stacktrace


I did a bit more investigation and found that the XMLOutputFactory class in the 
stax-api-1.0.1.jar file contains a method with the following signature

public static XMLOutputFactory newInstance(String factoryId, ClassLoader 
classLoader) throws FactoryConfigurationError

The weblogic jar file however contains a different method signature

public static XMLInputFactory newInstance(String factoryId, ClassLoader 
classLoader) throws FactoryConfigurationError


Basically, I want to cleanup the dependencies in my axis2.war file and 
shouldn't have to carry around the servlet api inside the war file.  It looks 
like the BEA method signature above is incorrect (why would 
XMLOutputFactory.newInstance() return an XMLInputFactory object?).  Has anyone 
encountered this issues, if so what is the workaround?  I don't want to prepend 
the stax-api jar to the system classpath unless I can be sure that it won't 
break anything in Weblogic?  Suggestions would be appreciated.

Thanks,

jp4


Re: soap or soapenv

2007-05-29 Thread David Illsley

Um, I respectufully disagree. Both messages look like soap 1.1 to me.

The xml prefix (soap, soapenv etc) is just a shorthand in xml and the
exact chosen by a given framework is immaterial. I struggle to believe
that .Net can't accept a message with a different prefix.

Can you post the exact error you get back?
Thanks,
David

On 28/05/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

The former is SOAP version 1.2, and the latter is SOAP version 1.1.

I'm new to Axis but I'm betting that there is a way to coerce it into using 
soap 1.1 (or maybe there's a way to coerce .net to use 1.2?)

Michael Davis


> -Original Message-
> From: Harrie Hazewinkel [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 25, 2007 6:24 PM
> To: axis-user@ws.apache.org
> Subject: soap or soapenv
>
>
> Hallo,
>
>
> I would like to know if someone can tell me the difference between the
> usage of 'soap' and 'soapenv'? I see the usage of 'soapenv' in the
> axis2 package, but .NET uses 'soap' and does not accept the 'soapenv'.
> Is there some parameter one can set for this?
>
> message
>
> 
> http://schemas.xmlsoap.org/soap/
> envelope/">
>
> .
>
>
> ..
>
> 
>
> and
>
> 
> http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://
> schemas.xmlsoap.org/soap/envelope/">
>
> .
>
>
> .
>
> 
>
> Thanks by advance,
> Harrie
> --
> Funambol - Professional Services, Netherlands
> http://www.funambol.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]





--
David Illsley - IBM Web Services Development

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



RE: [Axis2] Axis2 1.2 JiBX update

2007-05-29 Thread Pavel Sharov
Dennis and others,

I am using Axis2 1.1.1. I've updated my old Axis2 JiBX distribution
'axis2-jibx-1.1.1.jar' with the newest one 'axis2-jibx-1.1.1c.jar'
probably you are talking about in your posting here (downloaded it from
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx). I will not go
deeply into details now - will put my problem briefly, maybe that will
suffice to get a hint on the reason of the problem.
I'm using the WSDL2Java to generate both client and server Java code
from my WSDL and some JiBX bindings. With the previous distribution it's
all ok. However, with the recent update, I am getting a "Namespace not
found" error (which namespace - not specified) in runtime when trying to
marshall/unmarshall. The exception is caused by a call to the
constructor of org.apache.axis2.jibx.JiBXDataSource class, either in my
client stub or in my server message receiver.
I wouldn't like to continue using the old distribution as I see some
important bugs fixed in the new one. Could you please give me any hint
on what is going on? 
Thank you a lot in advance!

Pavel

-Original Message-
From: Dennis Sosnoski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 3:30 PM
To: axis-user
Subject: [Axis2] Axis2 1.2 JiBX update

I've updated the axis2-jibx.jar module for the 1.2 release of Axis2 to 
fix some problems with serialization (discovered while testing my 
validation module :-[  - see the prior post). The update is available on

the axis2-jibx wiki page:
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx

The same issues are likely causing problems some users have experienced 
using JiBX with Rampart on the 1.1.1 release. I'll try to backport the 
fixes to the 1.1.1 code soon.

  - Dennis

-- 
Dennis M. Sosnoski
SOA and Web Services in Java
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117


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


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



Re: [Axis2 1.1.1] Unable to generate WSDL for this service

2007-05-29 Thread Davanum Srinivas

Please switch to Axis2 1.2 and let us know if you still see this problem.

thanks,
dims

On 5/29/07, Stefan Lecho <[EMAIL PROTECTED]> wrote:


All,

I would like to display the WSDL of a WebService generated with Axis2 v1.1.1
and deployed in Tomcat v5.5.17. When using
"http://localhost:9091/itpartners-axis2-0.0.1/services/ASFInterface?wsdl";,
the following error message is generated: "Unable to generate WSDL for this
service".

After a search in the mailing list of Axis2, I've noticed that there are
solutions to this problem:
-check that the name attribute of the service element in services.xml is the
same as the name attribute of the wdsl:service element in the WSDL file =>
OK
-use the "useOriginalwsdl" parameter => OK
-use RPCMessageReceiver as messageReceiver => OK

All the above checks are OK (files are included underneath), but I still do
not get my WSDL file displayed correctly. Can anyone help me with this issue
?

The "messageReceivers" and "parameter" section from the services.xml file:








composite
true
true


The "wsdl:service" section from the WSDL file that has been deployed in the
WEB-INF directory of the AAR file:



Regards, Stefan Lecho.

 
Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.



--
Davanum Srinivas :: http://davanum.wordpress.com

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



[Axis2] Web service asynchronous invocation

2007-05-29 Thread e5789319



  Axis Users,

  Is it possible to make asynchronous web service invocations within  
the Axis2 engine? In my context, a PHP script should invoke a web  
service and go on while the web service is still working, without  
worrying about how the execution ends.


  Any help or suggestions would be greatly appreciated.Regards,

  Adrian



[Axis2 1.1.1] Unable to generate WSDL for this service

2007-05-29 Thread Stefan Lecho
All,

I would like to display the WSDL of a WebService generated with Axis2 v1.1.1 
and deployed in Tomcat v5.5.17. When using 
"http://localhost:9091/itpartners-axis2-0.0.1/services/ASFInterface?wsdl";, the 
following error message is generated: "Unable to generate WSDL for this 
service".

After a search in the mailing list of Axis2, I've noticed that there are 
solutions to this problem:
-check that the name attribute of the service element in services.xml is the 
same as the name attribute of the wdsl:service element in the WSDL file => OK
-use the "useOriginalwsdl" parameter => OK
-use RPCMessageReceiver as messageReceiver => OK 

All the above checks are OK (files are included underneath), but I still do not 
get my WSDL file displayed correctly. Can anyone help me with this issue ?

The "messageReceivers" and "parameter" section from the services.xml file:








composite
true
true


The "wsdl:service" section from the WSDL file that has been deployed in the 
WEB-INF directory of the AAR file:



Regards, Stefan Lecho.




   
Pinpoint
 customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

Re: Retrieving SOAP headers of WS response

2007-05-29 Thread keith chapman

Hi Philipp,

With WSDL 2.0 you can specify http headers in the wsdl itself (For both HTTP
and SOAP bindings). And if you use wsdl2java on such a WSDL the code
generated contains methods to add the HTTPHeader. For the client it will be
just another parameter passed into the operation. The stub will retrive this
parameter and stick it in as a HTTP header.

But there is no easy method such as above to retrive an HTTP response
header.

Thanks,
Keith.

On 5/29/07, Philipp Leitner <[EMAIL PROTECTED]> wrote:


Hi all,

I have two question on the Axis2 client-side API:

I know that there are quite simple convenience methods for adding SOAP
header fields when using the client-side API (like
ServiceClient.addStringHeader(...) ), but is it also possible to get a
map or so of the headers that the /response/ SOAP message contained?

A related question: is it possible with Axis2 to directly set or
retrieve the HTTP header fields (of course only senseful in a HTTP
binding) besides what you can specify in
org.apache.axis2.client.Options? For instance is it possible to insert a
header "foo: bar" in all my WS invocations? And again: is it possible to
retrieve the HTTP headers of the HTTP response in the Axis2 client (to
get, for instance, the "Server" value...).

Thank you in advance,
philipp

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





--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


Re: register DataHandler

2007-05-29 Thread Thilina Gunarathne

ahhh. My apologies.. I forgot that... :)..

~Thilina
On 5/29/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

Thilina,
Am sorry, i'd have to differ :) Remember the streaming API? Jennifer
can use that.

Jennifer,
Be prepared to do some work :) Yes, it's possible. See
IncomingAttachmentInputTest in axiom

https://svn.apache.org/repos/asf/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/attachments/IncomingAttachmentInputTest.java

Basically you start by accessing using the
MessageConext.getAttachmentMap to get the Attachments object and then
call the getIncomingAttachmentStreams of the attachments object. that
will return a IncomingAttachmentInputStream and you can call
getNextStream repeatedly till you find the one you want.
IncomingAttachmentInputStream has a getHeaders which will let you
access the custom headers in your mime parts.

thanks,
dims

On 5/28/07, jy <[EMAIL PROTECTED]> wrote:
> Thilina,
>
> Thanks for your reply.
>
> Do you have any suggestions as to how to address this?  Do I need to
> abandon Axis2 framework all together and read HTTP stream directly?
> Is there another WS framework that offers more extensibility?
>
> Thanks,
> Jennifer
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Davanum Srinivas :: http://davanum.wordpress.com

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





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

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



Re: Axis setup (JAXP)

2007-05-29 Thread Sipungora

Thank you very much, Sumedha. I report about my success later.


sumedha rubasinghe wrote:
> 
> Hi,
> You seems to be having some problem with your environment settings.
> Make sure you set you JAVA_HOME pointing to correct location & add 
> $JAVA_HOME/bin to you path. Remove all entries from CLASSPATH variable, 
> if you have any.
> 
> To get you started, try starting the standard binary distribution first, 
> as mentioned in http://ws.apache.org/axis2/1_2/installationguide.html.
> 
> 
> 
> 
> Sipungora wrote:
>> "happyaxis.jsp" shows me:
>> ***
>> Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an
>> unknown location
>> ***
>> What jar-file should be found? In what directory should it be located?
>> %CATALINA_HOME%\webapps\axis\WEB-INF\lib or?
>>
>> Should be %AXIS_HOME% and %CATALINA_HOME%\webapps\axis different
>> directories
>> or the same? From Axis installation instructions I have not quite
>> understand
>> this.
>>
>> Thank you very much beforehead.
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis-setup-%28JAXP%29-tf3828768.html#a10850277
Sent from the Axis - User mailing list archive at Nabble.com.


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



nothing happens when add an attachment into SOAP Message

2007-05-29 Thread WANG Chi
Hi, I want to add an attachment into a SOAP Message, I use the following code 
but nothing happens, the CampaignManager is a stub generated by wsimport from 
an WSDL

The WSDL is generated using JAVA2WSDL of Axis 1.4

CampaignManager camMgr = new CampaignManagerService().getCampaignManager();
BindingProvider bp = (BindingProvider)camMgr;
DataHandler dh = new DataHandler(new FileDataSource(new File("C:\\my2.jpg")));

Map dhs = new HashMap();
dhs.put(dh.getName(), dh);
bp.getRequestContext().put(MessageContext.OUTBOUND_MESSAGE_ATTACHMENTS,
dhs);

camMgr.uploadTargetFile("111", null);



but the output message does not have an attachment, it's like this

http://schemas.xmlsoap.org/soap/envelope/";>http://soap.ota.gemplus.com"; 
xmlns:ns2="urn:cmm.soap.ota.gemplus.com">111

I wonder what I have done wrong, and I use JAX-WS 2.1.1 . It's a little urgent 
for me, thanks a lot for any help.


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



Retrieving SOAP headers of WS response

2007-05-29 Thread Philipp Leitner

Hi all,

I have two question on the Axis2 client-side API:

I know that there are quite simple convenience methods for adding SOAP 
header fields when using the client-side API (like 
ServiceClient.addStringHeader(...) ), but is it also possible to get a 
map or so of the headers that the /response/ SOAP message contained?


A related question: is it possible with Axis2 to directly set or 
retrieve the HTTP header fields (of course only senseful in a HTTP 
binding) besides what you can specify in 
org.apache.axis2.client.Options? For instance is it possible to insert a 
header "foo: bar" in all my WS invocations? And again: is it possible to 
retrieve the HTTP headers of the HTTP response in the Axis2 client (to 
get, for instance, the "Server" value...).


Thank you in advance,
philipp

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



Re: Hibernate mappings inside aar..

2007-05-29 Thread jlinden

Thanks for the hints. I got it working by deploying that aar-package
exploded and then made reference, with MappingDirectoryLocations, to
those mapping files relative to exploded axis2.war root e.g:
"/WEB-INF/services/Service.aar/WEB-INF/".

On 5/28/2007, "robert lazarski" <[EMAIL PROTECTED]> wrote:
> You are using spring with hibernate right? Spring 2.0 ?  Does this work for
> you?
> 
> http://www.springframework.org/docs/api/org/springframework/orm/hibernate/LocalSessionFactoryBean.html#setMappingDirectoryLocations(org.springframework.core.io.Resource[])
> 
> Keep in mind the aar file can be deployed expanded. See the example below
> for a hint on using classpath locations and DEBUG mode to see what is
> getting picked up as locations.
> 
> http://ws.apache.org/axis2/1_2/spring.html#263
> 
> HTH,
> Robert
> 
> On 5/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > .. I noticed that hibernate is able to find that mapping file when I
> > place it to axis2/WEB-INF/lib. So it seems that Spring is not giving
> > that MultiParentClassLoader to Hibernate and I guess it's then trying
> > to locate resources with TCCL. Does anyone know any solution for how to
> > make hibernate look for those resources within aar-package?
> >
> > On 5/28/2007, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello,
> > >
> > > I'm trying to deploy spring & hibernate inside aar-package but spring
> > > doesn't seems to be able to locate hibernate mapping files. I've tried
> > > using that MultiParentClassLoader and I've tested that it finds the
> > > mapping files with getResource-method but when I give it to spring and
> > > try to load application context it still gives me FileNotFoundException
> > > for that same mapping file. I've placed all mapping files +
> > > applicationcontext-files to the root of that aar-package. Anyone have
> > > any ideas how to fix this?
> > >
> > > Here's my spring init code + test for finding that mapping file with
> > > that MultiParentClassLoader :
> > >
> > > try {
> > > ClassLoader multiParCL = new MultiParentClassLoader(new
> > > URL[0], new ClassLoader[] {
> > >   AxisService.class.getClassLoader(),
> > > this.getClass().getClassLoader() });
> > > ClassPathXmlApplicationContext appCtx = new
> > > ClassPathXmlApplicationContext(new String[]
> > > {"ApplicationContextWS.xml",
> > >   "ApplicationContextLogic.xml"}, false);
> > > System.out.print("url:" +
> > > multiParCL.getResource("User.hbm.xml"));
> > > appCtx.setClassLoader(multiParCL);
> > > appCtx.refresh();
> > >  } catch (Exception ex) {
> > > ex.printStackTrace();
> > >  }
> > >
> > > which results in:
> > >
> > > ERROR [STDERR] org.springframework.beans.factory.BeanCreationException:
> > > Error creating bean with name 'factory' defined in class path resource
> > > [ApplicationContextLogic.xml]: Invocation of init method failed; nested
> > > exception is java.io.FileNotFoundException: class path resource
> > > [User.hbm.xml] cannot be opened because it does not exist
> > > 2007-05-28 11:15:09,968 ERROR [STDERR] Caused by:
> > > 2007-05-28 11:15:09,968 ERROR [STDERR] java.io.FileNotFoundException:
> > > class path resource [User.hbm.xml] cannot be opened because it does not
> > > exist
> > > 2007-05-28 11:15:09,968 ERROR [STDERR]at
> > > org.springframework.core.io.ClassPathResource.getInputStream(
> > ClassPathResource.java:135)
> > > 2007-05-28 11:15:09,968 ERROR [STDERR]at
> > >
> > org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory
> > (LocalSessionFactoryBean.java:656)
> > > 2007-05-28 11:15:09,968 ERROR [STDERR]at
> > >
> > org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet
> > (AbstractSessionFactoryBean.java:134)
> > > 2007-05-28 11:15:09,968 ERROR [STDERR]at
> > >
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> > (AbstractAutowireCapableBeanFactory.java:1202)
> > > 2007-05-28 11:15:09,968 ERROR [STDERR]at
> > >
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> > (AbstractAutowireCapableBeanFactory.java:1172)
> > > 2007-05-28 11:15:09,968 ERROR [STDERR]at
> > >
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> > (AbstractAutowireCapableBeanFactory.java:428)
> > > 2007-05-28 11:15:09,968 ERROR [STDERR]at
> > >
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > AbstractBeanFactory.java:251)
> > > 2007-05-28 11:15:09,968 ERROR [STDERR]at
> > >
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
> > (DefaultSingletonBeanRegistry.java:156)
> > > 2007-05-28 11:15:09,968 ERROR [STDERR]at
> > >