Re: [newbie] cannot read patch

2003-04-03 Thread Joerg Buchberger
Hi. Fine now.
Someone has sent me the patch.
Thanks.

Joerg Buchberger schrieb am 03.04.2003:
>Hi.
>
>There is a patch that allows us to expose Avalon Components via SOAP:
>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12903
>
>Unfortunately, whenever I click on one of the patch/attachment links, the patch
>isn't shown.
>Can someone please send me that patch by mail?
>Thanks.
>
>Cheers.
>Joerg
>



RE: help required for attachment using ejb as webservice

2003-04-03 Thread Toshiyuki Kimura
Hi Subhendu,
(B
(B  You're incorrect.  You can't make it the return type in
(Bejb method.  Why not ?  I can do that.  I don't know why
(Byou didn't try anyway ?
(B
(B  I believe, you're confusing the meaning of the word;
(B'serialize' in the Web Services area with 'serializable'
(Bin the general Java programming.
(B  The diff. of serialize/deserialize in the 2 areas are;
(B
(B WS area : [Program lang. specific objects] <-> [XML(SOAP)]
(B Java gen: [Java objects] <-> [byte array]
(B
(B  These are quite different, despite the misleading word.
(BCan you make sense of the meaning ?
(B
(BBest Regards,
(B
(B  Toshi (Toshiyuki Kimura) <[EMAIL PROTECTED]>
(B  R&D Headquarters
(B  NTT DATA Corporation
(B
(B-Original Message-
(BFrom: subhendukumar mohanty [mailto:[EMAIL PROTECTED]
(BSent: Friday, April 04, 2003 2:06 AM
(BTo: [EMAIL PROTECTED]
(BSubject: RE: help required for attachment using ejb as webservice
(B
(BI have session bean. One thing i am not clear. If datahandler
(Bis not a serializable , i can not make it the return type in
(Bejb method. Am i correct or not in the above statement ?
(B
(B-Original Message-
(BFrom: Toshiyuki Kimura [mailto:[EMAIL PROTECTED]
(BSent: Thursday, April 03, 2003 7:20 AM
(BTo: [EMAIL PROTECTED]
(BSubject: RE: help required for attachment using ejb as webservice
(B
(BHi Subhendu,
(B
(B  At the beginning, I'd like to notify that I've already succeeded
(Bin EJB usage with the AXIS 1.1 rc1 and the posted code.  Thus, it
(Bseems the root problem is not the return type of an ejb method.
(B
(B  The most interesting describes from you are the followings;
(B
(B| Type of Image (Jpeg). We get the image as byte array from
(B|   other source. We do not get file reference.
(B
(B  I guess that you're saving the jpeg images on DBMS, and also
(Bthe ejb is implemented as an Entity Bean.  Is that right ?
(BIf so, the restriction of 'serializable' is for an Entity Bean
(Brather than for an ejb on AXIS.
(B
(BBest Regards,
(B
(B  Toshi (Toshiyuki Kimura) <[EMAIL PROTECTED]>
(B  R&D Headquarters
(B  NTT DATA Corporation
(B
(B-Original Message-
(BFrom: subhendukumar mohanty [mailto:[EMAIL PROTECTED]
(BSent: Thursday, April 03, 2003 12:07 AM
(BTo: [EMAIL PROTECTED]
(BSubject: RE: help required for attachment using ejb as webservice
(Bprovider
(B
(BHi Toshiyuki
(B
(BMy Answers are as below
(B
(BAxis 1.0 (But we may go for Apache Soap latest version comes
(B with websphere 4.0)
(BType of Image (Jpeg). We get the image as byte array from other
(B source. We do not get file reference.
(B
(BProblem. If i expose my ejb method as webservice interface and
(B i have to use soap with attachment then the return type of EJB
(B method will be of Datahandler Type. But DataHandler can  not be
(B return type of an ejb method as it does not implement
(B java.io.serializable and all ejb retutn parameters needs to be
(B serializable.
(B
(BSo to avoid this i was thinking that let my ejb return byte array
(B and i have to write a wrapper java class which will convert the
(B byte array to datahandler (still no clear how to convert that).
(B The wrapper java class will be exposed as web service rather than
(B exposing the ejb as webservice.
(B
(BLet me know whethere i am procceding in a correct direction.
(B
(BThanks,
(BSubhendu
(B
(B-Original Message-
(BFrom: Toshiyuki Kimura [mailto:[EMAIL PROTECTED]
(BSent: Tuesday, March 25, 2003 6:27 AM
(BTo: [EMAIL PROTECTED]
(BSubject: Re: help required for attachment using ejb as webservice provider
(B
(BHi Subhendu,
(B
(B  In order to clear questions from you, we'll need more details of
(Byour situation;
(B
(B  - Version of AXIS: 1.0, 1.1Beta, RC1, RC2, or the current ver ?
(B  - Type of Image  : 'JPEG', 'GIF', or the other specific types ?
(B  - Real problem   : 'Exceptions', or 'Functionally defectives' ?
(B
(B  If you're using AXIS 1.1 Beta (or the later) and 'image/jpeg
(Bor image/gif' as the content type (i.e. your image archive only
(Bhas JPEG files and/or GIF files), you might make it with the 
(Bfollowing snapshot;
(B
(Bpublic DataHandler downladFile(java.lang.String filename){
(B  try{
(BFileDataSource dataSource = new FileDataSource(filename);
(BDataHandler dataHandler = new DataHandler(dataSource);
(Breturn dataHandler;
(B  }catch(Exception e){
(B  :
(B  }
(B}
(B
(B  Please note DataHandler hasn't been implemented as serializable,
(Bhowever, some standardized types of content (MIME type) will be
(Bautomatically serialized and deserialized by the runtime, AXIS
(Bwith your right configuration.
(B
(BBest Regards,
(B
(B  Toshi (Toshiyuki Kimura) <[EMAIL PROTECTED]>
(B  R&D Headquarters
(B  NTT DATA Corporation
(B
(B-Original Message-
(BFrom: subhendukumar mohanty [mailto:[EMAIL PROTECTED]
(BSent: Friday, March 21, 2003 10:05 AM
(BTo: [EMAIL PROTECTED]
(BSubject: help required for atta

.NET and AXIS Interop - Please Help!!

2003-04-03 Thread Joshi, Parag
Hi, 

I have written a Java client program using axis 1.0 and the program sends SOAP message 
to my webservice written in Microsoft .NET environment. The .NET Webservice 
successfully receives the request and returns a response indicating success. I used 
XMLSpy to check request and response messages and they seem fine (almost same except 
request header replaced by response). 
But, my Java client shows the following exception parsing the SOAP response: 

SAXParseException: An invalid XML character (Unicode: 0x0) was found in markup after 
the end of the element content. 

I did see an extra character (which might be 0x0) at the end of response message 
coming from .NET. It is the last character in the message. I do not control XML SOAP 
message generation because it is done by .NET. Is there anyway for me to make the SAX 
parser ignore that extra character at the end? 

On another machine with similar setup I get a slightly different exception: 
 faultString: org.xml.sax.SAXParseException: Content is not allowed in trailing 
section.

The exception trace is included below.  

I will greatly appreciate any help!!

Thanks
-Parag

-
 [java] AxisFault
 [java]  faultCode: {http://xml.apache.org/axis/}Server.userException
 [java]  faultString: org.xml.sax.SAXParseException: An invalid XML characte
r (Unicode: 0x0) was found in markup after the end of the element content.
 [java]  faultActor: null
 [java]  faultDetail:
 [java] stackTrace: org.xml.sax.SAXParseException: An invalid XML charac
ter (Unicode: 0x0) was found in markup after the end of the element content.
 [java] at org.apache.xerces.framework.XMLParser.reportError(XMLParser.j
ava:1196)
 [java] at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXML
Error(XMLDocumentScanner.java:644)


RE: Using Axis with MS JVM

2003-04-03 Thread Rick Kellogg
James,

The Microsoft JVM only supports JDK 1.1x.  Axis requires at least JDK
1.3+.  I do not know of any options for that JDK level.

Good luck,
Rick Kellogg

-Original Message-
From: James Heffernan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 8:01 PM
To: [EMAIL PROTECTED]
Subject: Using Axis with MS JVM

Hi,
I am trying to use axis to build a client application which so far has
worked 
fine.  However I have come to a bit of a dilemma.  The environment I'm
trying 
to integrate the client app into uses the Microsoft JVM, in fact just to

incorporate classes into that environment they must be built using the
jvc 
compiler (VJ6.0).   I have been able to build the classes generated from
the 
wsdl2java utility using that compiler but trying to run them using jview
from 
the command line or integrating them into the server fails.  (running
the 
profiler switch with jview shows the org.apache.axis.client.Service
attempted 
load returns a NoClassDefFoundError even though replacing jview with
Sun's 
1.3.1 java works fine with the same classpath exactly).

Is it that axis just will not work "back that far" in the virtual
machine 
lineage or is there some way I can use it with MS's version?  
Any suggestions gratefully accepted of course, even if someone knows of 
another client-side library I would be able to use possibly.
Thanks

James Heffernan




RE: Stateful web services.

2003-04-03 Thread Davanum Srinivas
See directions for patches at
http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/SubmitPatches

--- Clay Graham <[EMAIL PROTECTED]> wrote:
> Absolutely.
> 
> I am not real familiar with the development process of axis, but I am
> more than willing to try!
> 
> What I will try to do is make a nice package based on the existing docs,
> and then submit it (where?).
> 
> 
> 
> -
> Clay Graham
> President
> newObjectivity, Inc.
> making the mobile-world-office
> http://www.newobjectivity.com/
> 
> 
> 
> -Original Message-
> From: Tom Jordahl [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 03, 2003 1:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Stateful web services.
> 
> 
> 
> Clay,
> 
> This is great.  Do you think you could check out the current Axis HTML
> docs and see if you can put together a patch that would integrate this
> in to it?
> 
> Your code could just be new files in the samples directory.
> 
> If you could do that, then put the info in a Bugzilla report, that would
> increase the chances that someone (me) would check it in to the tree for
> others.
> 
> --
> Tom Jordahl
> Macromedia Server Development
> 
> -Original Message-
> From: Clay Graham [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 03, 2003 3:22 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Stateful web services.
> 
> [SOLUTION]
> 
> I am including the full solution because I think this is the type of
> thing everybody wants
> 
> #
> 
> 1. Create your service
> 
> /*
>  * NOIMailService.java
>  *
>  * Created on April 2, 2003, 5:19 PM
>  */
> 
> package com.noi.mailservlet.web.services;
> import javax.activation.*;
> import java.util.*;
> import javax.ejb.*;
> import javax.mail.*;
> import javax.mail.internet.*;
> import javax.mail.search.*; 
> import java.io.*;
> 
> /**
>  *
>  * @author  clay
>  */
> public class NOIMailService {
> 
> /** Holds value of property username. */
> private String username;
> 
> /** Holds value of property password. */
> private String password;
> 
> /** Holds value of property hostname. */
> private String hostname;
> 
> private boolean connected;
> 
> /** Holds value of property protocol. */
> private String protocol;
> 
> private static final String loginmbox = "INBOX";
> 
> private Store store;
> private Session session;
> private URLName url;
> 
> /** Creates a new instance of NOIMailService */
> public NOIMailService() {
> this.connected = false;
> this.protocol = "imap";
> }
> 
> 
> public boolean login(String protocol, String username, String
> password, String hostname)
> { 
> 
> this.protocol = protocol;
> this.username = username;
> this.password = password;
> this.hostname = hostname;
> 
> try{
> url = new URLName(
> this.protocol, 
> this.hostname, 
> -1, 
> this.loginmbox, 
> this.username, 
> this.password);
> 
>Properties props = System.getProperties(); 
> 
> if (hostname != null)
> props.put("mail.smtp.host", this.hostname);
> else if (props.getProperty("mail.smtp.host") == null)
> props.put("mail.smtp.host", "localhost");
> 
> this.session = Session.getDefaultInstance(props, null); 
> this.session.setDebug(true);  
> 
> PasswordAuthentication pw = new
> PasswordAuthentication(url.getUsername(), this.url.getPassword());
> this.session.setPasswordAuthentication(url, pw); 
> 
> this.store = this.session.getStore(url);   
> this.store.connect();
> this.connected = true;
> return this.connected;
> }
> catch(Exception e)
> {
> this.connected = false;
> return this.connected;
> }
> 
> }
> 
> public boolean isConnected()
> {
> return this.connected;
> }
> 
> public boolean sendStatelessMessage(String protocol, String
> username, String password, String hostname, String to, String cc, String
> bcc, String subject, String body)
> {
> if(this.login(protocol, username, password, hostname))
> {
> try {
> 
> Message msg = new MimeMessage(this.session);
> 
> //to
> InternetAddress[] toAddrs = null;
> if ((to != null) && !to.equals("")) {
> toAddrs = InternetAddress.parse(to, false);
> msg.setRecipients(Message.RecipientType.TO,
> toAddrs);
> }
> else
> return false;
> 
> 
> 

Using Axis with MS JVM

2003-04-03 Thread James Heffernan
Hi,
I am trying to use axis to build a client application which so far has worked 
fine.  However I have come to a bit of a dilemma.  The environment I'm trying 
to integrate the client app into uses the Microsoft JVM, in fact just to 
incorporate classes into that environment they must be built using the jvc 
compiler (VJ6.0).   I have been able to build the classes generated from the 
wsdl2java utility using that compiler but trying to run them using jview from 
the command line or integrating them into the server fails.  (running the 
profiler switch with jview shows the org.apache.axis.client.Service attempted 
load returns a NoClassDefFoundError even though replacing jview with Sun's 
1.3.1 java works fine with the same classpath exactly).

Is it that axis just will not work "back that far" in the virtual machine 
lineage or is there some way I can use it with MS's version?  
Any suggestions gratefully accepted of course, even if someone knows of 
another client-side library I would be able to use possibly.
Thanks

James Heffernan


Re: Need some information - probably a code snippet for accessing an Axiswebservice using an Weblogic client.

2003-04-03 Thread Aaron . Knauf
Here is the client implementation that we use to call a SOAP RPC service 
from inside an EJB.  Note that we use pure JAXRPC here.  The web service 
is implemented in Axis and runs inside Weblogic 6.1.

One further note:  The axis client stuff re-uses code from the server 
implementation.  That code buggers around with classloaders, which is 
unnecessary in the client and violates the EJB spec.  It does appear to 
work but use at your own risk. 

Cheers

ADK


package nz.co.vodafone.plive.charging.payment.billing.alcatel.soap;

// imports
import nz.co.vodafone.plive.charging.common.util.Util;
import 
nz.co.vodafone.plive.charging.payment.billing.alcatel.common.AlcatelBillingSystemException;
import 
nz.co.vodafone.plive.charging.payment.billing.alcatel.common.AlcatelBillingSystemProxy;
import nz.co.vodafone.plive.charging.payment.billing.alcatel.corba.Log;
import javax.xml.rpc.Call;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import org.apache.log4j.Category;

import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceException;
import java.math.BigDecimal;
import java.net.MalformedURLException;
import java.net.URL;

/**
 * AlcatelBillingSystemProxy that proxies the charge or refund request
 * via SOAP to a servlet that then uses the AlcatelCorbaConnector to talk
 * to Alcatel IN. This is done to avoid address translation problems with 
IORs
 * generated by the Alcatel IN.
 */
public class AlcatelSoapClient implements AlcatelBillingSystemProxy
{
private static final Category _trace = 
Category.getInstance(AlcatelSoapClient.class);
 
//--
// attributes
 
private String _serviceUrl;
private Service _service;


 
//--
// construction
 
/**
 * Param ctor
 * @param serviceUrl the URL of the Alcatel SOAP service.
 */
public AlcatelSoapClient(String serviceUrl)
{
_serviceUrl = serviceUrl;
}

/**
 *  Gets the Alcatel service instance, creating one if necessary.
 * @return  The cached Service instance for the alcatel service.
 * @throws MalformedURLException If the service URL is poorly formed.
 * @throws ServiceException If a connection to the service cannot be 
established.
 */
private Service getService() throws MalformedURLException, 
ServiceException
{
if (_service == null)
{
ServiceFactory fx = ServiceFactory.newInstance();
_service = fx.createService(
new URL(_serviceUrl+ "?WSDL"),
new QName(_serviceUrl, "alcatel"));
}
return _service;
}
 
//--
// charging operations
 
/**
 * Charge the Alcatel billing system all or nothing. If there are 
insufficient
 * funds then fail the operation
 * @param msisdn the account id
 * @param amount the amount to charge
 * @return SUCCESS if the entire amount charged or INSUFFICIENT_FUNDS 
if
 * insufficeient funds
 * @exception AlcatelBillingSystemException
 */
public int chargeAllOrNothing(String msisdn, BigDecimal amount) 
throws AlcatelBillingSystemException
{
_trace.debug(Log.METHOD_ENTRY);
Integer ret = (Integer)callService("chargeAllOrNothing", msisdn, 
amount);
_trace.debug(Log.METHOD_RETURN);
return ret.intValue();
}
 
/**
 * Charge the Alcatel billing system as much as possible
 * @param msisdn the account id
 * @param amount the amount to charge
 * @return the amount charged
 * @exception AlcatelBillingSystemException
 */
public BigDecimal chargeAsMuchAsPossible(String msisdn, BigDecimal 
amount) 
throws AlcatelBillingSystemException
{
_trace.debug(Log.METHOD_ENTRY);
BigDecimal ret = (BigDecimal)callService("chargeAsMuchAsPossible", 
msisdn, amount);
_trace.debug(Log.METHOD_RETURN);
return ret;
}
 
/**
 * Refund the Alcatel billing system
 * @param msisdn the account id
 * @param amount the amount to refund (a positive amount)
 * @return SUCCESS currently
 * @exception AlcatelBillingSystemException
 */
public int refund(String msisdn, BigDecimal amount) 
throws AlcatelBillingSystemException
{
_trace.debug(Log.METHOD_ENTRY);
Integer ret = (Integer)callService("refund", msisdn, amount);
_trace.debug(Log.METHOD_RETURN);
return ret.intValue();
}

/**
 *
 * @param serviceName
 * @param msisdn
 * @param amount
 * @return
 */
private Object callService(String serviceName, String msisdn, 
BigDecimal amount) throws AlcatelBillingSystemException
{
Object ret;
try
{
Call call = getService().createCall(
new QName("Alcat

RE: Stateful web services.

2003-04-03 Thread Clay Graham
Absolutely.

I am not real familiar with the development process of axis, but I am
more than willing to try!

What I will try to do is make a nice package based on the existing docs,
and then submit it (where?).



-
Clay Graham
President
newObjectivity, Inc.
making the mobile-world-office
http://www.newobjectivity.com/



-Original Message-
From: Tom Jordahl [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 1:50 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Stateful web services.



Clay,

This is great.  Do you think you could check out the current Axis HTML
docs and see if you can put together a patch that would integrate this
in to it?

Your code could just be new files in the samples directory.

If you could do that, then put the info in a Bugzilla report, that would
increase the chances that someone (me) would check it in to the tree for
others.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Clay Graham [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 3:22 PM
To: [EMAIL PROTECTED]
Subject: RE: Stateful web services.

[SOLUTION]

I am including the full solution because I think this is the type of
thing everybody wants

#

1. Create your service

/*
 * NOIMailService.java
 *
 * Created on April 2, 2003, 5:19 PM
 */

package com.noi.mailservlet.web.services;
import javax.activation.*;
import java.util.*;
import javax.ejb.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.mail.search.*; 
import java.io.*;

/**
 *
 * @author  clay
 */
public class NOIMailService {

/** Holds value of property username. */
private String username;

/** Holds value of property password. */
private String password;

/** Holds value of property hostname. */
private String hostname;

private boolean connected;

/** Holds value of property protocol. */
private String protocol;

private static final String loginmbox = "INBOX";

private Store store;
private Session session;
private URLName url;

/** Creates a new instance of NOIMailService */
public NOIMailService() {
this.connected = false;
this.protocol = "imap";
}


public boolean login(String protocol, String username, String
password, String hostname)
{ 

this.protocol = protocol;
this.username = username;
this.password = password;
this.hostname = hostname;

try{
url = new URLName(
this.protocol, 
this.hostname, 
-1, 
this.loginmbox, 
this.username, 
this.password);

   Properties props = System.getProperties(); 

if (hostname != null)
props.put("mail.smtp.host", this.hostname);
else if (props.getProperty("mail.smtp.host") == null)
props.put("mail.smtp.host", "localhost");

this.session = Session.getDefaultInstance(props, null); 
this.session.setDebug(true);  

PasswordAuthentication pw = new
PasswordAuthentication(url.getUsername(), this.url.getPassword());
this.session.setPasswordAuthentication(url, pw); 

this.store = this.session.getStore(url);   
this.store.connect();
this.connected = true;
return this.connected;
}
catch(Exception e)
{
this.connected = false;
return this.connected;
}

}

public boolean isConnected()
{
return this.connected;
}

public boolean sendStatelessMessage(String protocol, String
username, String password, String hostname, String to, String cc, String
bcc, String subject, String body)
{
if(this.login(protocol, username, password, hostname))
{
try {

Message msg = new MimeMessage(this.session);

//to
InternetAddress[] toAddrs = null;
if ((to != null) && !to.equals("")) {
toAddrs = InternetAddress.parse(to, false);
msg.setRecipients(Message.RecipientType.TO,
toAddrs);
}
else
return false;


//sent date
msg.setSentDate(Calendar.getInstance().getTime());

//from
String fromAddress = url.getUsername() +
"@"+url.getHost();
msg.setFrom(new InternetAddress(fromAddress));

//cc
InternetAddress[] ccAddrs = null;
if ((cc != null) && !cc.equals("")) {
ccAddrs = InternetAddress.parse(cc, false);
msg.setRecipients(Message.RecipientType.CC

Re: java.util.List and 1.1.RC2

2003-04-03 Thread Steve Loughran
Keith Hatton wrote:
For fromArray(), you mean this?

java.util.Arrays.asList(Object[])



-Original Message-
If you go
  return (Foo)list.toArray(new Foo[0]);
You can turn a list to an array in a snap. A fromArray() would be nice 
to match it.


you learn something new every day. Thanks



Need some information - probably a code snippet for accessing an Axis webservice using an Weblogic client.

2003-04-03 Thread raghuram . velega
Hi,

I am trying to access an Axis webservice deployed on weblogic appserver from
an weblogic client. The service has some user defined datatypes , does any
one have some information or
pointers to documents which has code snippets, describing how we could do
that.

thanks



Re: Stateful web services.

2003-04-03 Thread Steve Loughran
Tom Jordahl wrote:
Clay,

This is great.  Do you think you could check out the current Axis HTML docs and see if you can put together a patch that would integrate this in to it?

Your code could just be new files in the samples directory.
what about adding it to the wiki?

http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages

This is a great place for docs as anyone can add stuff, and it can be 
kept up to date. The trouble with docs-in-the-download is that nearly 
everyone is guaranteed to have out of date content.



Re: replacing DefaultSocketFactory

2003-04-03 Thread Davanum Srinivas
META-INF/services should be in the JAR file that has your
org.apache.axis.components.net.MySocketFactory. So basically create a jar file with 
your socket
factory that contains the META-INF directory as well. Then place the jar file in your
servlet/WEB-INF/lib

Thanks,
dims

--- Steven Gollery <[EMAIL PROTECTED]> wrote:
> Tom,
> 
> Thanks for the pointer: the integration guide turns out to have a lot of 
> useful information for me.
> 
> I can set the SocketFactory by setting a system property (Example 2 in 
> the integration guide) just fine. But when I try to create a service 
> definition file, like in example 1, I still get DefaultSocketFactory. 
> I've checked and rechecked, and I'm sure that the file name is 
> org.apache.axis.components.net.SocketFactory. It has one line:
> 
> org.apache.axis.components.net.MySocketFactory
> 
> and it's in META-INF/services/
> 
> One thing: is there anywhere specific that META-INF should be? (This is 
> not clear from the integration guide.) I've tried it under the base 
> directory of my servlet, and also under the WEB-INF directory, and 
> neither worked.
> 
> Any ideas?
> 
> Thanks again for your help: there's definitely a light at the end of the 
> tunnel now.
> 
> Steve
> 
> 
> Tom Jordahl wrote:
> 
> >This is the kind of thing that you need to use the commons-discovery code to do.  
> >You can
> either set a property or create a service config file.
> >
> >Check out the xml-axis/docs/integration-guide.html file for info on this.
> >
> >
> >--
> >Tom Jordahl
> >Macromedia Server Development
> >
> >-Original Message-
> >From: Steven Gollery [mailto:[EMAIL PROTECTED] 
> >Sent: Thursday, April 03, 2003 4:17 PM
> >To: [EMAIL PROTECTED]
> >Subject: replacing DefaultSocketFactory
> >
> >I'd like to set up SocketFactoryFactory so that, instead of returning 
> >DefaultSocketFactory for HTTP, it returns an instance of MySocketFactory 
> >(a class derived from DefaultSocketFactory).
> >
> > From the way that SocketFactoryFactory is implemented, it appears that 
> >the way to do this would be something like:
> >AxisProperties.setClassOverrideProperty(MySocketFactory.class, 
> >"axis.socketFactory");
> >
> >But when I try to do this in my code, I still get DefaultSocketFactory.
> >
> >One thing that may be germane: my code is a servlet running in Tomcat. 
> >The servlet uses Axis client classes to call a remote web service, then 
> >formats the results into html.
> >
> >So: should this work? Is there a better way to do this? Am I completely 
> >off track here?
> >
> >Thanks,
> >
> >Steven Gollery
> >[EMAIL PROTECTED]
> >
> 
> 


=
Davanum Srinivas - http://webservices.apache.org/~dims/

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com


Re: replacing DefaultSocketFactory

2003-04-03 Thread Steven Gollery
Tom,

I figured it out -- the META-INF directory just needs to be under 
WEB-INF/classes.

This is going to make it possible for us to go forward. Thanks again for 
your help.

Steve

Tom Jordahl wrote:

This is the kind of thing that you need to use the commons-discovery code to do.  You can either set a property or create a service config file.

Check out the xml-axis/docs/integration-guide.html file for info on this.

--
Tom Jordahl
Macromedia Server Development
-Original Message-
From: Steven Gollery [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 4:17 PM
To: [EMAIL PROTECTED]
Subject: replacing DefaultSocketFactory

I'd like to set up SocketFactoryFactory so that, instead of returning 
DefaultSocketFactory for HTTP, it returns an instance of MySocketFactory 
(a class derived from DefaultSocketFactory).

From the way that SocketFactoryFactory is implemented, it appears that 
the way to do this would be something like:
AxisProperties.setClassOverrideProperty(MySocketFactory.class, 
"axis.socketFactory");

But when I try to do this in my code, I still get DefaultSocketFactory.

One thing that may be germane: my code is a servlet running in Tomcat. 
The servlet uses Axis client classes to call a remote web service, then 
formats the results into html.

So: should this work? Is there a better way to do this? Am I completely 
off track here?

Thanks,

Steven Gollery
[EMAIL PROTECTED]




JBoss.net and Axis WSDL2Java Stuff

2003-04-03 Thread Chris Forbis








Has anyone made a document on getting a wsdl produced by
JBoss.net (axis) to build into client classes with WSDL2Java from axis when
JBoss.net has security setup and added into the wsdl?

 

I ask this because wsdl2java works fine until JBoss.net adds
a security layer and then the wsdl2java files all have a throws null in them
causing an error on compile.

 

Thanks

 








Re: replacing DefaultSocketFactory

2003-04-03 Thread Steven Gollery
Tom,

Thanks for the pointer: the integration guide turns out to have a lot of 
useful information for me.

I can set the SocketFactory by setting a system property (Example 2 in 
the integration guide) just fine. But when I try to create a service 
definition file, like in example 1, I still get DefaultSocketFactory. 
I've checked and rechecked, and I'm sure that the file name is 
org.apache.axis.components.net.SocketFactory. It has one line:

org.apache.axis.components.net.MySocketFactory

and it's in META-INF/services/

One thing: is there anywhere specific that META-INF should be? (This is 
not clear from the integration guide.) I've tried it under the base 
directory of my servlet, and also under the WEB-INF directory, and 
neither worked.

Any ideas?

Thanks again for your help: there's definitely a light at the end of the 
tunnel now.

Steve

Tom Jordahl wrote:

This is the kind of thing that you need to use the commons-discovery code to do.  You can either set a property or create a service config file.

Check out the xml-axis/docs/integration-guide.html file for info on this.

--
Tom Jordahl
Macromedia Server Development
-Original Message-
From: Steven Gollery [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 4:17 PM
To: [EMAIL PROTECTED]
Subject: replacing DefaultSocketFactory

I'd like to set up SocketFactoryFactory so that, instead of returning 
DefaultSocketFactory for HTTP, it returns an instance of MySocketFactory 
(a class derived from DefaultSocketFactory).

From the way that SocketFactoryFactory is implemented, it appears that 
the way to do this would be something like:
AxisProperties.setClassOverrideProperty(MySocketFactory.class, 
"axis.socketFactory");

But when I try to do this in my code, I still get DefaultSocketFactory.

One thing that may be germane: my code is a servlet running in Tomcat. 
The servlet uses Axis client classes to call a remote web service, then 
formats the results into html.

So: should this work? Is there a better way to do this? Am I completely 
off track here?

Thanks,

Steven Gollery
[EMAIL PROTECTED]




RE: doc/lit question

2003-04-03 Thread Herrick, Mike
there is one in the Axis test cases (download the src).

Mike

-Original Message-
From: Brain, Jim [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 2:30 PM
To: '[EMAIL PROTECTED]'
Subject: RE: doc/lit question


Anyone have a simple doc/lit WSDL I can have to modify?

Bascially, my payload is a , which
has a whole bunch of stuff below it.  

I will try WSDL2Java

Jim


Jim Brain, [EMAIL PROTECTED]
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
SYSTEMS ARCHITECT, ITS, AEGON FINANCIAL PARTNERS

 -Original Message-
From:   Tom Jordahl [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, April 03, 2003 3:53 PM
To: '[EMAIL PROTECTED]'
Subject:RE: doc/lit question


1. WSDL2Java will generate data types from the Schema.  You may need to use
the --all switch.

2. Probably the best thing to do is use the  element in WSDD and
write your own custom WSDL.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Brain, Jim [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 3:29 PM
To: AXIS Mailing List (E-mail)
Subject: doc/lit question

Actually two questions:

*   I have a schema that I want to send via a web service.  Is there an
easy way to have AXIS gen stubs and skels for me to write a service for that
schema, including building the classes to represent the schema
*   Right now, to do this, I have a set of classes that I wrote to
represent the schema and they have their own XMLWriter and XMLReader
methods.  TO turn this into an AXIS service, I told AXIS that I was going to
handle the service code, and chose "message" as my style of service.  Then,
I implemented a process(Element[] e) method as the doc suggest.  However,
when the deployed service shows its WSDL, it has no way to know about my
Schema, so it just states that the body is xsd:anyType.  Is there a way to
tell AXIS what schema should be allowed to come in?

Jim


Jim Brain, [EMAIL PROTECTED]  
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
Systems Architect, ITS, AEGON Financial Partners


RE: doc/lit question

2003-04-03 Thread Brain, Jim
Anyone have a simple doc/lit WSDL I can have to modify?

Bascially, my payload is a , which
has a whole bunch of stuff below it.  

I will try WSDL2Java

Jim


Jim Brain, [EMAIL PROTECTED]
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
SYSTEMS ARCHITECT, ITS, AEGON FINANCIAL PARTNERS

 -Original Message-
From:   Tom Jordahl [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, April 03, 2003 3:53 PM
To: '[EMAIL PROTECTED]'
Subject:RE: doc/lit question


1. WSDL2Java will generate data types from the Schema.  You may need to use
the --all switch.

2. Probably the best thing to do is use the  element in WSDD and
write your own custom WSDL.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Brain, Jim [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 3:29 PM
To: AXIS Mailing List (E-mail)
Subject: doc/lit question

Actually two questions:

*   I have a schema that I want to send via a web service.  Is there an
easy way to have AXIS gen stubs and skels for me to write a service for that
schema, including building the classes to represent the schema
*   Right now, to do this, I have a set of classes that I wrote to
represent the schema and they have their own XMLWriter and XMLReader
methods.  TO turn this into an AXIS service, I told AXIS that I was going to
handle the service code, and chose "message" as my style of service.  Then,
I implemented a process(Element[] e) method as the doc suggest.  However,
when the deployed service shows its WSDL, it has no way to know about my
Schema, so it just states that the body is xsd:anyType.  Is there a way to
tell AXIS what schema should be allowed to come in?

Jim


Jim Brain, [EMAIL PROTECTED]  
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
Systems Architect, ITS, AEGON Financial Partners


RE: attachments with generated stubs

2003-04-03 Thread Volkmann, Mark
Title: attachments with generated stubs



Thanks!  For getting at the data in attachments within the web 
service, the article says "The simplest approach is to not add attachments to 
the method signature and just pull it out by hand."  It then gives example 
code for doing that.
 
Can someone point me to an example or send me an example of getting the 
attachment data when you add the attachment to the method 
signature?

  -Original Message-From: Pathak, Sanjesh 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, April 03, 2003 
  3:20 PMTo: [EMAIL PROTECTED]Subject: RE: 
  attachments with generated stubs
  Mark,
   
  Go 
  to the link below for an excellent article written by Steve Loughran 
  which explains how to extract attachments within the service implementation 
  method (your first approach).
   
  http://www.mail-archive.com/[EMAIL PROTECTED]/msg08732.html
   
  Sanjesh
   
  
-Original Message-From: Volkmann, Mark 
[mailto:[EMAIL PROTECTED]Sent: Thursday, April 03, 
2003 2:24 PMTo: '[EMAIL PROTECTED]'Subject: RE: 
attachments with generated stubs
Thanks!  I had activation.jar, but I needed 
mail.jar.
 
It seems that there are at least two ways to get an attachment added 
to the SOAP request.  One way is to call addAttachment(dataHandler) on 
my generated stub.  Another way is to pass my DataHandler as a 
parameter to one of my service methods on the stub.
 
If I use the first approach, how do I access the attachment within 
the service implementation method?
 
If I use the second approach then I get an exception that says 
"Couldn't find a matching Java operation for WSDD operation "method-name" (1 
args)".
 
Any ideas would be greatly appreciated!

  -Original Message-From: Tom Jordahl 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, April 03, 2003 
  12:20 PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  attachments with generated stubs
  
   
  You need 
  activation.jar and perhaps mailapi.jar in your classpath during 
  execution.
   
  
  --Tom 
  JordahlMacromedia Server 
  Development
  -Original 
  Message-From: 
  Volkmann, Mark [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 10:18 
  AMTo: 
  '[EMAIL PROTECTED]'Subject: attachments with generated 
  stubs
   
  There is a sample of using attachments that is 
  bundled with Axis (in the samples/attachments directory).  It uses 
  the SAAJ API.  What I'd like to do is use a generated stub (from 
  wsdl2java) and add attachments before I invoke methods on that stub.  
  In org.apache.axis.client.Stub there is an addAttachment method.  
  When I use that I get a message that says "java.lang.RuntimeException: No 
  support for attachments".  Is this approach supposed to work in Axis 
  1.1 RC2? 
  ***WARNING: All e-mail sent to and from this address will 
  be received orotherwise 
  recorded by the A.G. Edwards corporate e-mail system and 
  issubject to archival, 
  monitoring or review by, and/or disclosure 
  to,someone other than the 
  recipient.**This 
  e-mail is the property of Enron Corp. and/or its relevant affiliate and may 
  contain confidential and privileged material for the sole use of the intended 
  recipient (s). Any review, use, distribution or disclosure by others is 
  strictly prohibited. If you are not the intended recipient (or authorized to 
  receive for the recipient), please contact the sender or reply to Enron Corp. 
  at [EMAIL PROTECTED] and delete all copies of the 
  message. This e-mail (and any attachments hereto) are not intended to be an 
  offer (or an acceptance) and do not create or evidence a binding and 
  enforceable contract between Enron Corp. (or any of its affiliates) and the 
  intended recipient or any other party, and may not be relied on by anyone as 
  the basis of a contract by estoppel or otherwise. Thank you. 
  **


Getting bean data in client..

2003-04-03 Thread PILLAI,RANJITH (HP-PaloAlto,ex1)








Hi there,

 

Please help... 

 

This represents my bean data in SOAP Response. How do I read
this data (to get "Name" and "City" ) in Axis Client?. All
my effort did not produce any results... 

 



   Ranjith

   Kottayam

  

 

Thanks in advance for your help.

Ran

 








Enum deserialization problem

2003-04-03 Thread Herrick, Mike
Hi,

I'm having a problem getting Axis to deserialize correctly when I use an enum in my 
doc/lit WSDL (attached).

Axis generates the .wsdd fine, deploys ok, but at runtime doesn't fill in the value on 
the client side (specifically I'm using the test case generated by Axis).  On the wire 
(i.e., TCPMonitor), Axis fills in a value for the enum (i.e., server side I set it and 
it unwinds it), but the client won't deserialize it.  A .NET client, does unwind it, 
however.  When I ran a debugger on the generated source I could see that the setter 
fro the enum never gets called ... so the value is null.  Is this because I have a 
class that requires a BeanDeserializerFactory containing the enum which requires a 
EnumDeserializerFactory (i.e., some sort of reflection problem)? Or do I have to 
handle this type of thing explicitly (i.e., modify the generated Deserializer or write 
one from scratch)?

Best regards,

Mike

 <> 



PubSubService.wsdl
Description: Binary data


RE: WSL2Java Question -- Document/Literal

2003-04-03 Thread Herrick, Mike
I don't know what changed, but I couldn't even get the doc lit test cases to work in 
RC2 ... they do, however work in the nightly builds ... its possible I screwed 
something up though, but I stared at it for 1/2 day at one point.

-Original Message-
From: Tom Jordahl [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 1:56 PM
To: '[EMAIL PROTECTED]'
Subject: RE: WSL2Java Question -- Document/Literal



I hope it works, but I will note that there have been VERY few changes between RC2 and 
now.

We expect to make 1.1 final very soon!

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Herrick, Mike [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 4:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE: WSL2Java Question -- Document/Literal

I would get a more recent copy of Axis ... I couldn't get RC2 to do doc/lit of WSDL 
very well. More recent nightly builds work better.

-Original Message-
From: Tom Jordahl [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 10:25 AM
To: '[EMAIL PROTECTED]'
Subject: RE: WSL2Java Question -- Document/Literal



The RPC provider actually handles both rpc/encoded and document/literal requests that 
have type mappings performed.

The MSG provider is used only for services that have a single interface or a 
particular signature (see the docs for the 3-4 signatures that are supported).

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 6:05 PM
To: [EMAIL PROTECTED]
Subject: WSL2Java Question -- Document/Literal


Hi, all:

I am gettting started in AXIS 1.1 RC2.
In my WSDL, I specify "Document/Literal". But, after using WSDL2Java, the
generated "deploy.wsdd" always has
the provider="java:RPC". Is this correct? Shouldn't this be
"provider=java:MSG"?

Thanks a lot


RE: replacing DefaultSocketFactory

2003-04-03 Thread Tom Jordahl

This is the kind of thing that you need to use the commons-discovery code to do.  You 
can either set a property or create a service config file.

Check out the xml-axis/docs/integration-guide.html file for info on this.


--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Steven Gollery [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 4:17 PM
To: [EMAIL PROTECTED]
Subject: replacing DefaultSocketFactory

I'd like to set up SocketFactoryFactory so that, instead of returning 
DefaultSocketFactory for HTTP, it returns an instance of MySocketFactory 
(a class derived from DefaultSocketFactory).

 From the way that SocketFactoryFactory is implemented, it appears that 
the way to do this would be something like:
AxisProperties.setClassOverrideProperty(MySocketFactory.class, 
"axis.socketFactory");

But when I try to do this in my code, I still get DefaultSocketFactory.

One thing that may be germane: my code is a servlet running in Tomcat. 
The servlet uses Axis client classes to call a remote web service, then 
formats the results into html.

So: should this work? Is there a better way to do this? Am I completely 
off track here?

Thanks,

Steven Gollery
[EMAIL PROTECTED]


RE: WSL2Java Question -- Document/Literal

2003-04-03 Thread Tom Jordahl

I hope it works, but I will note that there have been VERY few changes between RC2 and 
now.

We expect to make 1.1 final very soon!

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Herrick, Mike [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 4:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE: WSL2Java Question -- Document/Literal

I would get a more recent copy of Axis ... I couldn't get RC2 to do doc/lit of WSDL 
very well. More recent nightly builds work better.

-Original Message-
From: Tom Jordahl [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 10:25 AM
To: '[EMAIL PROTECTED]'
Subject: RE: WSL2Java Question -- Document/Literal



The RPC provider actually handles both rpc/encoded and document/literal requests that 
have type mappings performed.

The MSG provider is used only for services that have a single interface or a 
particular signature (see the docs for the 3-4 signatures that are supported).

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 6:05 PM
To: [EMAIL PROTECTED]
Subject: WSL2Java Question -- Document/Literal


Hi, all:

I am gettting started in AXIS 1.1 RC2.
In my WSDL, I specify "Document/Literal". But, after using WSDL2Java, the
generated "deploy.wsdd" always has
the provider="java:RPC". Is this correct? Shouldn't this be
"provider=java:MSG"?

Thanks a lot



Web Service Requirements

2003-04-03 Thread Dave Searle
Hi All,

Can any one point me to a requirements document for a typical Web
Service?

Kind regards,
Dave Searle.




RE: doc/lit question

2003-04-03 Thread Tom Jordahl

1. WSDL2Java will generate data types from the Schema.  You may need to use the --all 
switch.

2. Probably the best thing to do is use the  element in WSDD and write your 
own custom WSDL.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Brain, Jim [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 3:29 PM
To: AXIS Mailing List (E-mail)
Subject: doc/lit question

Actually two questions:

*   I have a schema that I want to send via a web service.  Is there an
easy way to have AXIS gen stubs and skels for me to write a service for that
schema, including building the classes to represent the schema
*   Right now, to do this, I have a set of classes that I wrote to
represent the schema and they have their own XMLWriter and XMLReader
methods.  TO turn this into an AXIS service, I told AXIS that I was going to
handle the service code, and chose "message" as my style of service.  Then,
I implemented a process(Element[] e) method as the doc suggest.  However,
when the deployed service shows its WSDL, it has no way to know about my
Schema, so it just states that the body is xsd:anyType.  Is there a way to
tell AXIS what schema should be allowed to come in?

Jim


Jim Brain, [EMAIL PROTECTED]  
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
Systems Architect, ITS, AEGON Financial Partners


RE: Stateful web services.

2003-04-03 Thread Tom Jordahl

Clay,

This is great.  Do you think you could check out the current Axis HTML docs and see if 
you can put together a patch that would integrate this in to it?

Your code could just be new files in the samples directory.

If you could do that, then put the info in a Bugzilla report, that would increase the 
chances that someone (me) would check it in to the tree for others.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Clay Graham [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 3:22 PM
To: [EMAIL PROTECTED]
Subject: RE: Stateful web services.

[SOLUTION]

I am including the full solution because I think this is the type of
thing everybody wants

#

1. Create your service

/*
 * NOIMailService.java
 *
 * Created on April 2, 2003, 5:19 PM
 */

package com.noi.mailservlet.web.services;
import javax.activation.*;
import java.util.*;
import javax.ejb.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.mail.search.*; 
import java.io.*;

/**
 *
 * @author  clay
 */
public class NOIMailService {

/** Holds value of property username. */
private String username;

/** Holds value of property password. */
private String password;

/** Holds value of property hostname. */
private String hostname;

private boolean connected;

/** Holds value of property protocol. */
private String protocol;

private static final String loginmbox = "INBOX";

private Store store;
private Session session;
private URLName url;

/** Creates a new instance of NOIMailService */
public NOIMailService() {
this.connected = false;
this.protocol = "imap";
}


public boolean login(String protocol, String username, String
password, String hostname)
{ 

this.protocol = protocol;
this.username = username;
this.password = password;
this.hostname = hostname;

try{
url = new URLName(
this.protocol, 
this.hostname, 
-1, 
this.loginmbox, 
this.username, 
this.password);

   Properties props = System.getProperties(); 

if (hostname != null)
props.put("mail.smtp.host", this.hostname);
else if (props.getProperty("mail.smtp.host") == null)
props.put("mail.smtp.host", "localhost");

this.session = Session.getDefaultInstance(props, null); 
this.session.setDebug(true);  

PasswordAuthentication pw = new
PasswordAuthentication(url.getUsername(), this.url.getPassword());
this.session.setPasswordAuthentication(url, pw); 

this.store = this.session.getStore(url);   
this.store.connect();
this.connected = true;
return this.connected;
}
catch(Exception e)
{
this.connected = false;
return this.connected;
}

}

public boolean isConnected()
{
return this.connected;
}

public boolean sendStatelessMessage(String protocol, String
username, String password, String hostname, String to, String cc, String
bcc, String subject, String body)
{
if(this.login(protocol, username, password, hostname))
{
try {

Message msg = new MimeMessage(this.session);

//to
InternetAddress[] toAddrs = null;
if ((to != null) && !to.equals("")) {
toAddrs = InternetAddress.parse(to, false);
msg.setRecipients(Message.RecipientType.TO,
toAddrs);
}
else
return false;


//sent date
msg.setSentDate(Calendar.getInstance().getTime());

//from
String fromAddress = url.getUsername() +
"@"+url.getHost();
msg.setFrom(new InternetAddress(fromAddress));

//cc
InternetAddress[] ccAddrs = null;
if ((cc != null) && !cc.equals("")) {
ccAddrs = InternetAddress.parse(cc, false);
msg.setRecipients(Message.RecipientType.CC,
ccAddrs);   
}

InternetAddress[] bccAddrs = null;
if ((bcc != null) && !bcc.equals("")) {
bccAddrs = InternetAddress.parse(bcc, false);
msg.setRecipients(Message.RecipientType.BCC,
toAddrs);
}

//subject
if((subject != null) && !subject.equals(""))
msg.setSubject(subject);
else
msg.setSubject("(no subject)");

//att

How to integrate adminClient into existing application?

2003-04-03 Thread Sochea Meas (LMC)
Title: How to integrate adminClient into existing application?





Hi all,


    I am trying to integrate adminClient into my own code but failed to succeed. Anybody can point me out good reference to do so? The axis web site doesn't seem to clearly document this process. Below is the code fragment used to call admin client.

    String arguments[] = new String [3];


    try{
    String ipAddress = InetAddress.getLocalHost().getHostAddress();


    arguments[0] = "-hlocalhost"; //Hostname
    arguments[1] = "-p"; //Web service container port
    arguments[2] = "-s/axis/servlets/AxisServlet"; //AxisServlet path


    //AdminClient can be found in axis.jar
    AdminClient adminClient = new AdminClient();


    //Get the wsdd of the deployed web service module
    String pathToFile = JasDir.getDirectory(JasDir.JAS_DEPLOY_WS).toString();
    pathToFile += "\\webapps\\axis\\" + moduleName + "\\META-INF";


    if(command.equalsIgnoreCase("deploy"))
    arguments[3] = pathToFile + "\\deploy.wsdd";


    else if (command.equalsIgnoreCase("undeploy"))
    arguments[3] = pathToFile + "\\undeploy.wsdd";
    else
    log.error("AdminClientCall: The command passed is neither undeploy nor deploy");


    try{
    String result = adminClient.process(arguments);
    }catch(Exception e){
    log.info("AdminClientCall: All argument has been processed with no error reported");
     }
...




-
Sochea MEAS, intern
LMC/JG/A department
Ericsson Communication Canada


telephone: 514-345-7900 ext. 3432
email: [EMAIL PROTECTED]





RE: WSL2Java Question -- Document/Literal

2003-04-03 Thread Herrick, Mike
I would get a more recent copy of Axis ... I couldn't get RC2 to do doc/lit of WSDL 
very well. More recent nightly builds work better.

-Original Message-
From: Tom Jordahl [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 10:25 AM
To: '[EMAIL PROTECTED]'
Subject: RE: WSL2Java Question -- Document/Literal



The RPC provider actually handles both rpc/encoded and document/literal requests that 
have type mappings performed.

The MSG provider is used only for services that have a single interface or a 
particular signature (see the docs for the 3-4 signatures that are supported).

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 6:05 PM
To: [EMAIL PROTECTED]
Subject: WSL2Java Question -- Document/Literal


Hi, all:

I am gettting started in AXIS 1.1 RC2.
In my WSDL, I specify "Document/Literal". But, after using WSDL2Java, the
generated "deploy.wsdd" always has
the provider="java:RPC". Is this correct? Shouldn't this be
"provider=java:MSG"?

Thanks a lot




RE: attachments with generated stubs

2003-04-03 Thread Pathak, Sanjesh
Title: attachments with generated stubs



Mark,
 
Go 
to the link below for an excellent article written by Steve Loughran which 
explains how to extract attachments within the service implementation method 
(your first approach).
 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg08732.html
 
Sanjesh
 

  -Original Message-From: Volkmann, Mark 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, April 03, 2003 
  2:24 PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  attachments with generated stubs
  Thanks!  I had activation.jar, but I needed 
  mail.jar.
   
  It seems that there are at least two ways to get an attachment added to 
  the SOAP request.  One way is to call addAttachment(dataHandler) on my 
  generated stub.  Another way is to pass my DataHandler as a parameter to 
  one of my service methods on the stub.
   
  If I use the first approach, how do I access the attachment within the 
  service implementation method?
   
  If I use the second approach then I get an exception that says   "Couldn't find a matching Java operation for WSDD operation "method-name" (1 
  args)".
   
  Any ideas would be greatly appreciated!
  
-Original Message-From: Tom Jordahl 
[mailto:[EMAIL PROTECTED]Sent: Thursday, April 03, 2003 12:20 
PMTo: '[EMAIL PROTECTED]'Subject: RE: 
attachments with generated stubs

 
You need 
activation.jar and perhaps mailapi.jar in your classpath during 
execution.
 

--Tom 
JordahlMacromedia Server 
Development
-Original 
Message-From: Volkmann, Mark [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 10:18 
AMTo: 
'[EMAIL PROTECTED]'Subject: attachments with generated 
stubs
 
There is a sample of using attachments that is 
bundled with Axis (in the samples/attachments directory).  It uses the 
SAAJ API.  What I'd like to do is use a generated stub (from wsdl2java) 
and add attachments before I invoke methods on that stub.  In 
org.apache.axis.client.Stub there is an addAttachment method.  When I 
use that I get a message that says "java.lang.RuntimeException: No support 
for attachments".  Is this approach supposed to work in Axis 1.1 RC2? 

***WARNING: All e-mail sent to and from this address will be 
received orotherwise recorded by the A.G. Edwards corporate e-mail system and 
issubject to archival, 
monitoring or review by, and/or disclosure to,someone other than the 
recipient.

**
This e-mail is the property of Enron Corp. and/or its relevant affiliate and may contain confidential and privileged material for the sole use of the intended recipient (s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender or reply to Enron Corp. at [EMAIL PROTECTED] and delete all copies of the message. This e-mail (and any attachments hereto) are not intended to be an offer (or an acceptance) and do not create or evidence a binding and enforceable contract between Enron Corp. (or any of its affiliates) and the intended recipient or any other party, and may not be relied on by anyone as the basis of a contract by estoppel or otherwise. Thank you. 
**




replacing DefaultSocketFactory

2003-04-03 Thread Steven Gollery
I'd like to set up SocketFactoryFactory so that, instead of returning 
DefaultSocketFactory for HTTP, it returns an instance of MySocketFactory 
(a class derived from DefaultSocketFactory).

From the way that SocketFactoryFactory is implemented, it appears that 
the way to do this would be something like:
AxisProperties.setClassOverrideProperty(MySocketFactory.class, 
"axis.socketFactory");

But when I try to do this in my code, I still get DefaultSocketFactory.

One thing that may be germane: my code is a servlet running in Tomcat. 
The servlet uses Axis client classes to call a remote web service, then 
formats the results into html.

So: should this work? Is there a better way to do this? Am I completely 
off track here?

Thanks,

Steven Gollery
[EMAIL PROTECTED]


RE: SQLXML AND AXIS CLIENTS

2003-04-03 Thread Chance, Sam USA








Hello!  I’m a newbie looking for
information or examples for developing Axis clients to interact with SQLXML
(SOAP) directories in SQL Server 2000. 
Can anyone provide insight?

 

Thank you,

Sam








doc/lit question

2003-04-03 Thread Brain, Jim
Actually two questions:

*   I have a schema that I want to send via a web service.  Is there an
easy way to have AXIS gen stubs and skels for me to write a service for that
schema, including building the classes to represent the schema
*   Right now, to do this, I have a set of classes that I wrote to
represent the schema and they have their own XMLWriter and XMLReader
methods.  TO turn this into an AXIS service, I told AXIS that I was going to
handle the service code, and chose "message" as my style of service.  Then,
I implemented a process(Element[] e) method as the doc suggest.  However,
when the deployed service shows its WSDL, it has no way to know about my
Schema, so it just states that the body is xsd:anyType.  Is there a way to
tell AXIS what schema should be allowed to come in?

Jim


Jim Brain, [EMAIL PROTECTED]  
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
Systems Architect, ITS, AEGON Financial Partners



RE: attachments with generated stubs

2003-04-03 Thread Volkmann, Mark
Title: attachments with generated stubs



Thanks!  I had activation.jar, but I needed 
mail.jar.
 
It seems that there are at least two ways to get an attachment added to 
the SOAP request.  One way is to call addAttachment(dataHandler) on my 
generated stub.  Another way is to pass my DataHandler as a parameter to 
one of my service methods on the stub.
 
If I use the first approach, how do I access the attachment within the 
service implementation method?
 
If I use the second approach then I get an exception that says "Couldn't 
find a matching Java operation for WSDD operation "method-name" (1 
args)".
 
Any ideas would be greatly appreciated!

  -Original Message-From: Tom Jordahl 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, April 03, 2003 12:20 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: attachments 
  with generated stubs
  
   
  You need 
  activation.jar and perhaps mailapi.jar in your classpath during 
  execution.
   
  
  --Tom 
  JordahlMacromedia Server 
  Development
  -Original 
  Message-From: Volkmann, 
  Mark [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 10:18 
  AMTo: 
  '[EMAIL PROTECTED]'Subject: attachments with generated 
  stubs
   
  There is a sample of using attachments that is bundled 
  with Axis (in the samples/attachments directory).  It uses the SAAJ 
  API.  What I'd like to do is use a generated stub (from wsdl2java) and 
  add attachments before I invoke methods on that stub.  In 
  org.apache.axis.client.Stub there is an addAttachment method.  When I use 
  that I get a message that says "java.lang.RuntimeException: No support for 
  attachments".  Is this approach supposed to work in Axis 1.1 RC2? 
  
  ***WARNING: All e-mail sent to and from this address will be 
  received orotherwise recorded 
  by the A.G. Edwards corporate e-mail system and 
  issubject to archival, 
  monitoring or review by, and/or disclosure to,someone other than the 
  recipient.


RE: Stateful web services.

2003-04-03 Thread Clay Graham
[SOLUTION]

I am including the full solution because I think this is the type of
thing everybody wants

#

1. Create your service

/*
 * NOIMailService.java
 *
 * Created on April 2, 2003, 5:19 PM
 */

package com.noi.mailservlet.web.services;
import javax.activation.*;
import java.util.*;
import javax.ejb.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.mail.search.*; 
import java.io.*;

/**
 *
 * @author  clay
 */
public class NOIMailService {

/** Holds value of property username. */
private String username;

/** Holds value of property password. */
private String password;

/** Holds value of property hostname. */
private String hostname;

private boolean connected;

/** Holds value of property protocol. */
private String protocol;

private static final String loginmbox = "INBOX";

private Store store;
private Session session;
private URLName url;

/** Creates a new instance of NOIMailService */
public NOIMailService() {
this.connected = false;
this.protocol = "imap";
}


public boolean login(String protocol, String username, String
password, String hostname)
{ 

this.protocol = protocol;
this.username = username;
this.password = password;
this.hostname = hostname;

try{
url = new URLName(
this.protocol, 
this.hostname, 
-1, 
this.loginmbox, 
this.username, 
this.password);

   Properties props = System.getProperties(); 

if (hostname != null)
props.put("mail.smtp.host", this.hostname);
else if (props.getProperty("mail.smtp.host") == null)
props.put("mail.smtp.host", "localhost");

this.session = Session.getDefaultInstance(props, null); 
this.session.setDebug(true);  

PasswordAuthentication pw = new
PasswordAuthentication(url.getUsername(), this.url.getPassword());
this.session.setPasswordAuthentication(url, pw); 

this.store = this.session.getStore(url);   
this.store.connect();
this.connected = true;
return this.connected;
}
catch(Exception e)
{
this.connected = false;
return this.connected;
}

}

public boolean isConnected()
{
return this.connected;
}

public boolean sendStatelessMessage(String protocol, String
username, String password, String hostname, String to, String cc, String
bcc, String subject, String body)
{
if(this.login(protocol, username, password, hostname))
{
try {

Message msg = new MimeMessage(this.session);

//to
InternetAddress[] toAddrs = null;
if ((to != null) && !to.equals("")) {
toAddrs = InternetAddress.parse(to, false);
msg.setRecipients(Message.RecipientType.TO,
toAddrs);
}
else
return false;


//sent date
msg.setSentDate(Calendar.getInstance().getTime());

//from
String fromAddress = url.getUsername() +
"@"+url.getHost();
msg.setFrom(new InternetAddress(fromAddress));

//cc
InternetAddress[] ccAddrs = null;
if ((cc != null) && !cc.equals("")) {
ccAddrs = InternetAddress.parse(cc, false);
msg.setRecipients(Message.RecipientType.CC,
ccAddrs);   
}

InternetAddress[] bccAddrs = null;
if ((bcc != null) && !bcc.equals("")) {
bccAddrs = InternetAddress.parse(bcc, false);
msg.setRecipients(Message.RecipientType.BCC,
toAddrs);
}

//subject
if((subject != null) && !subject.equals(""))
msg.setSubject(subject);
else
msg.setSubject("(no subject)");

//attachments

// create the Multipart and its parts to it
Multipart mp = new MimeMultipart();
MimeBodyPart mbp = new MimeBodyPart();
mbp.setText(body);
mp.addBodyPart(mbp);

// add the Multipart to the message
msg.setContent(mp);
Transport.send(msg);
return true;
}
catch(AddressException ex)
{
return false;
}
catch(MessagingException ex)
{
return fa

How to get bean data in client?

2003-04-03 Thread PILLAI,RANJITH (HP-PaloAlto,ex1)








Hi there,

 

Please help ... 

 

This represents my bean data in SOAP Response. How do I read
this data (to get "Name" and "City" ) in Axis Client?.
All my effort did not produce any results... 

 



   Ranjith

   Kottayam

  

 

Thanks in advance for your help.

Ran








RE: rebuild problem with RC2

2003-04-03 Thread Tom Jordahl

The all-tests target running successfully is a release criteria, so it passed at the 
time of the release.

I also can run it successfully on my machine with the current CVS tree.

So I guess that leaves a configuration problem

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Neil Blue [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 11:04 AM
To: '[EMAIL PROTECTED]'
Subject: RE: rebuild problem with RC2

Thanks Tom,

The new build fails in the same way when I run ant all in the java
directory. 

Neil

-Original Message-
From: Tom Jordahl [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 15:04
To: '[EMAIL PROTECTED]'
Subject: RE: rebuild problem with RC2



Try the latest nightly build or get the latest CVS source.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Neil Blue [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 8:45 AM
To: '[EMAIL PROTECTED]'
Subject: rebuild problem with RC2

Hello,

I have jsut downloaded the source for the RC2 release, but on a dist, the
tests fail on the encoding.PackageTests.

Is there a fix for this?

Cheers
Neil


RE: WSL2Java Question -- Document/Literal

2003-04-03 Thread Tom Jordahl

The RPC provider actually handles both rpc/encoded and document/literal requests that 
have type mappings performed.

The MSG provider is used only for services that have a single interface or a 
particular signature (see the docs for the 3-4 signatures that are supported).

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 6:05 PM
To: [EMAIL PROTECTED]
Subject: WSL2Java Question -- Document/Literal


Hi, all:

I am gettting started in AXIS 1.1 RC2.
In my WSDL, I specify "Document/Literal". But, after using WSDL2Java, the
generated "deploy.wsdd" always has
the provider="java:RPC". Is this correct? Shouldn't this be
"provider=java:MSG"?

Thanks a lot





Stateful web services.

2003-04-03 Thread Clay Graham
Hello Axis Users,

I am having a hard time finding out how to create a stateful web
service. For example, if you wanted a mail service you would want to be
able to login to a mail session, hold that session in state, and then
perform multiple actions on that session, like send message, get
messages, etc.

If this does not exist you would have to create a new mail session for
every action, which isn't very efficient, and means that parameter lists
become very large.

It would seem to me there would be something simillar to the JSESSIONID,
common in web applications, that would let the service client access a
stateful service.

Can anyone point point me at relevant documents and/or tutorials on how
to do this?

Thanks!


-
Clay Graham
President
newObjectivity, Inc.
making the mobile-world-office
http://www.newobjectivity.com/




RE: WSDL2Java / Proxy Server (newbie)

2003-04-03 Thread Tom Jordahl
Title: WSDL2Java / Proxy Server (newbie)









WSDL2Java will respect the proxy settings
the same as the Axis runtime will.

Set the system properties (use -D on
the java command line) when running WSDL2Java.



--
Tom
 Jordahl
Macromedia Server Development



-Original Message-
From: Reid
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 2:12
PM
To: [EMAIL PROTECTED]
Subject: Re: WSDL2Java / Proxy
Server (newbie)

 



I
would download the WSDL file and run WSDL2Java on the local copy.





 





Reid







- Original Message - 





From: Rudolph, Troy






To: [EMAIL PROTECTED]






Sent: Tuesday,
April 01, 2003 9:02 AM





Subject: WSDL2Java /
Proxy Server (newbie)





 



Hi All,


I'm trying to develop a web service for the first
time.  The WSDL for this service is published on a another company's
website that is outside our firewall.  We use a proxy server for all web
access outside our domain.  

 

I would like to run WSDL2Java to generate the
skeleton for my webservice.  However, it times out because the firewall is
in the way.  How can I tell WSDL2Java to use my company's proxy server?

Thanks for your help 

Troy Rudolph

Computer Associates 
AVP, Development 
tel: +1 512 401-2273 
fax: +1 512 401-2205 
pager: +1 866 243-9516 
[EMAIL PROTECTED] 
[EMAIL PROTECTED] (pager) 










RE: attachments with generated stubs

2003-04-03 Thread Tom Jordahl
Title: attachments with generated stubs









 

You need activation.jar and perhaps mailapi.jar
in your classpath during execution.

 



--
Tom
 Jordahl
Macromedia Server Development



-Original Message-
From: Volkmann, Mark
[mailto:[EMAIL PROTECTED] 
Sent: Monday, March 31, 2003 10:18
AM
To: '[EMAIL PROTECTED]'
Subject: attachments with
generated stubs

 

There is a sample of using attachments that is bundled
with Axis (in the samples/attachments directory).  It uses the SAAJ
API.  What I'd like to do is use a generated stub (from wsdl2java) and add
attachments before I invoke methods on that stub.  In
org.apache.axis.client.Stub there is an addAttachment method.  When I use
that I get a message that says "java.lang.RuntimeException: No support for
attachments".  Is this approach supposed to work in Axis 1.1 RC2? 



***
WARNING: All e-mail sent to and from this
address will be received or
otherwise recorded by the A.G. Edwards corporate
e-mail system and is
subject to archival, monitoring or review by,
and/or disclosure to,
someone other than the recipient.









Bean data and getBodyByName()...

2003-04-03 Thread PILLAI,RANJITH (HP-PaloAlto,ex1)








    Hi
there,

 

Question 1) Is there any issue with getBodyByName
(namespace, localpart) in SOAPEnvelope class? .Because my method 1)(listed
below) throws NullPointerException and Method 2 (listed below) returns result.

 

    Method
1) -> I am calling directly getBodyByName().

    Method
2) -> I am using getBodyElements() and iterate through the result to find localpart
"MyBean". Here things work fine.

 

Method 1)

 

SOAPEnvelope sEnlp=mess.getSOAPEnvelope();

SOAPBodyElement 
sBElement=sEnlp. getBodyByName("http://webservice5",
"MyBean");

String
name=sBElement.getName(); à This throws NullPointerException.

 

Method
2)

 

But
when I am doing this way..

SOAPEnvelope sEnlp=mess.getSOAPEnvelope();

   
    Vector
v= sEnlp.getBodyElements();

   
    for(int
i=0;i

            SOAPBodyElement
sBElement=(SOAPBodyElement)v.elementAt(i);

            System.out.println("Name"+sBElement.getName());

   
        String
name=sBElement.getName();

   
        if(name.equals("multiRef")){

  
         QName
qna=sBElement.getType();

   
        String
localPart=qna.getLocalPart();

   
            System.out.println("LocalPart->"+qna.getLocalPart());
àThis prints "MyBean"

   
            System.out.println("NameSpace->"+qna.getNamespaceURI());
àThis prints "http://webservice5"

        if(localPart.equals("MyBean")){

        Iterator
itr=sBElement.getChildElements();

   
        hile(itr.hasNext()){

   
            MessageElement
mElement=(MessageElement)itr.next();

   
    System.out.println("ElementValue->"+ 
mElement.getObjectValue());

   
    }

  
 }

  
  }

    }

 

Question 2) I am following the above procedure to get bean
data at client. Is this right? If Yes once I get my MessageElement, how do I
extract "name" and "value"?.

 

Thanks in advance for your help,

Ran








RE: help required for attachment using ejb as webservice

2003-04-03 Thread subhendukumar mohanty
I have session bean. One thing i am not clear. If datahandler is not a serializable , 
(Bi can not make it the return type in ejb method. Am i correct or not in the above 
(Bstatement ?
(B
(B-Original Message-
(BFrom: Toshiyuki Kimura [mailto:[EMAIL PROTECTED]
(BSent: Thursday, April 03, 2003 7:20 AM
(BTo: [EMAIL PROTECTED]
(BSubject: RE: help required for attachment using ejb as webservice
(B
(B
(BHi Subhendu,
(B
(B  At the beginning, I'd like to notify that I've already succeeded
(Bin EJB usage with the AXIS 1.1 rc1 and the posted code.  Thus, it
(Bseems the root problem is not the return type of an ejb method.
(B
(B  The most interesting describes from you are the followings;
(B
(B| Type of Image (Jpeg). We get the image as byte array from
(B|   other source. We do not get file reference.
(B
(B  I guess that you're saving the jpeg images on DBMS, and also
(Bthe ejb is implemented as an Entity Bean.  Is that right ?
(BIf so, the restriction of 'serializable' is for an Entity Bean
(Brather than for an ejb on AXIS.
(B
(BBest Regards,
(B
(B  Toshi (Toshiyuki Kimura) <[EMAIL PROTECTED]>
(B  R&D Headquarters
(B  NTT DATA Corporation
(B
(B-Original Message-
(BFrom: subhendukumar mohanty [mailto:[EMAIL PROTECTED]
(BSent: Thursday, April 03, 2003 12:07 AM
(BTo: [EMAIL PROTECTED]
(BSubject: RE: help required for attachment using ejb as webservice
(Bprovider
(B
(BHi Toshiyuki
(B
(BMy Answers are as below
(B
(BAxis 1.0 (But we may go for Apache Soap latest version comes
(B with websphere 4.0)
(BType of Image (Jpeg). We get the image as byte array from other
(B source. We do not get file reference.
(B
(BProblem. If i expose my ejb method as webservice interface and
(B i have to use soap with attachment then the return type of EJB
(B method will be of Datahandler Type. But DataHandler can  not be
(B return type of an ejb method as it does not implement
(B java.io.serializable and all ejb retutn parameters needs to be
(B serializable.
(B
(BSo to avoid this i was thinking that let my ejb return byte array
(B and i have to write a wrapper java class which will convert the
(B byte array to datahandler (still no clear how to convert that).
(B The wrapper java class will be exposed as web service rather than
(B exposing the ejb as webservice.
(B
(BLet me know whethere i am procceding in a correct direction.
(B
(BThanks,
(BSubhendu
(B
(B-Original Message-
(BFrom: Toshiyuki Kimura [mailto:[EMAIL PROTECTED]
(BSent: Tuesday, March 25, 2003 6:27 AM
(BTo: [EMAIL PROTECTED]
(BSubject: Re: help required for attachment using ejb as webservice provider
(B
(BHi Subhendu,
(B
(B  In order to clear questions from you, we'll need more details of
(Byour situation;
(B
(B  - Version of AXIS: 1.0, 1.1Beta, RC1, RC2, or the current ver ?
(B  - Type of Image  : 'JPEG', 'GIF', or the other specific types ?
(B  - Real problem   : 'Exceptions', or 'Functionally defectives' ?
(B
(B  If you're using AXIS 1.1 Beta (or the later) and 'image/jpeg
(Bor image/gif' as the content type (i.e. your image archive only
(Bhas JPEG files and/or GIF files), you might make it with the 
(Bfollowing snapshot;
(B
(Bpublic DataHandler downladFile(java.lang.String filename){
(B  try{
(BFileDataSource dataSource = new FileDataSource(filename);
(BDataHandler dataHandler = new DataHandler(dataSource);
(Breturn dataHandler;
(B  }catch(Exception e){
(B  :
(B  }
(B}
(B
(B  Please note DataHandler hasn't been implemented as serializable,
(Bhowever, some standardized types of content (MIME type) will be
(Bautomatically serialized and deserialized by the runtime, AXIS
(Bwith your right configuration.
(B
(BBest Regards,
(B
(B  Toshi (Toshiyuki Kimura) <[EMAIL PROTECTED]>
(B  R&D Headquarters
(B  NTT DATA Corporation
(B
(B-Original Message-
(BFrom: subhendukumar mohanty [mailto:[EMAIL PROTECTED]
(BSent: Friday, March 21, 2003 10:05 AM
(BTo: [EMAIL PROTECTED]
(BSubject: help required for attachment using ejb as
(B webservice provider
(B
(BWe are creating a ejb which will be exposed as webservice.
(BOne of the method of ejb will return the image from image
(Barchive. So we need to use soap with attachment for this.
(BI learned that if any data is returned using DataHandler
(Bit will be automatically passed as soap with attachment.
(BAs DataHandler is not implemented java.io.serializable,
(BI can not use this as the return type of the ejb. I am new
(Bto webservice and axis. So any body can guide me what to do
(Bin this case..
(B
(BYour help will be appreciated.
(B
(BThanks,
(BSubhendu

General question about sessions

2003-04-03 Thread Jeffrey J Gaynor/jqhome
Hi,

I am interested in perhaps using sessions. The basics are simple, but I do 
have on requirement and that is to be able to set some state information 
(e.g. the user's name) for the session from the client (in particular an 
identifier so that each session can be customized.) How is this do-able? It 
would be great to be able to do this automatically at the start of the 
session. I want to avoid the obvious workaround of having and 'init()' 
method for each end to set this up if there is a built-in way to do this.

Pointing me to relevant examples/FAQs would be welcomed.

Thanks,

-- J


Handler order

2003-04-03 Thread Pathak, Sanjesh
Hi,

I am trying to get handlers (and their order) that are there in the response flow, 
request flow and fault flow of a service. Does anyone know if there is a programmatic 
way or an API to get the order the of the handlers in response flow, request flow and 
fault flow of a deployed service?

Sanjesh


**
This e-mail is the property of Enron Corp. and/or its relevant affiliate and may 
contain confidential and privileged material for the sole use of the intended 
recipient (s). Any review, use, distribution or disclosure by others is strictly 
prohibited. If you are not the intended recipient (or authorized to receive for the 
recipient), please contact the sender or reply to Enron Corp. at [EMAIL PROTECTED] and 
delete all copies of the message. This e-mail (and any attachments hereto) are not 
intended to be an offer (or an acceptance) and do not create or evidence a binding and 
enforceable contract between Enron Corp. (or any of its affiliates) and the intended 
recipient or any other party, and may not be relied on by anyone as the basis of a 
contract by estoppel or otherwise. Thank you. 
**



AW: SSL Security with Axis 1.0 ???

2003-04-03 Thread "Geiß, Matthias"
Thanks for the information.
I use Tomcat 4.1.18 so I hope it will be fine.

Best regards,
Matthias


-Ursprüngliche Nachricht-
Von: Michael Roytman [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 3. April 2003 18:10
An: '[EMAIL PROTECTED]'
Betreff: RE: SSL Security with Axis 1.0 ???


I think this is a bug related to Tomcat version, not Axis.
SSL works fine but Tomcat would throw the following exception on each SSL
connection:

Apr 3, 2003 9:58:39 AM org.apache.coyote.http11.Http11Processor action
WARNING: Exception getting SSL attributes
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA62
75)
at org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.j
ava:118)
at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:543)
at org.apache.coyote.Response.action(Response.java:216)
at
org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:
314)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Htt
p11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)

This is fixed in Tomcat 4.1.18.

Michael

-Original Message-
From: "Geiß, Matthias" [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 8:02 AM
To: ' ([EMAIL PROTECTED])'
Subject: SSL Security with Axis 1.0 ???


Hi,

I just read the IBM developerworks article about securing web services with SSL using 
Axis and Tomcat. http://www-106.ibm.com/developerworks/webservices/library/ws-sec1.html

It contains the folling advice about the tools to use:
"Soap client/server: Apache Axis v1.0 Beta 3 (Note: Release version has a bug relating 
to the use of SSL)"

Is this corret? Am I forced to use something different from the Axis Release 1.0 
(that's what I do at the moment)?

Best regards,
Matthias


RE: SSL Security with Axis 1.0 ???

2003-04-03 Thread Michael Roytman
I think this is a bug related to Tomcat version, not Axis.
SSL works fine but Tomcat would throw the following exception on each SSL
connection:

Apr 3, 2003 9:58:39 AM org.apache.coyote.http11.Http11Processor action
WARNING: Exception getting SSL attributes
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA62
75)
at
org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.j
ava:118)
at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:543)
at org.apache.coyote.Response.action(Response.java:216)
at
org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:
314)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Htt
p11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)

This is fixed in Tomcat 4.1.18.

Michael

-Original Message-
From: "Geiß, Matthias" [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 8:02 AM
To: ' ([EMAIL PROTECTED])'
Subject: SSL Security with Axis 1.0 ???


Hi,

I just read the IBM developerworks article about securing web services with
SSL using Axis and Tomcat.
http://www-106.ibm.com/developerworks/webservices/library/ws-sec1.html

It contains the folling advice about the tools to use:
"Soap client/server: Apache Axis v1.0 Beta 3 (Note: Release version has a
bug relating to the use of SSL)"

Is this corret? Am I forced to use something different from the Axis Release
1.0 (that's what I do at the moment)?

Best regards,
Matthias



RE: rebuild problem with RC2

2003-04-03 Thread Neil Blue
Thanks Tom,

The new build fails in the same way when I run ant all in the java
directory. 

Neil

-Original Message-
From: Tom Jordahl [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 15:04
To: '[EMAIL PROTECTED]'
Subject: RE: rebuild problem with RC2



Try the latest nightly build or get the latest CVS source.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Neil Blue [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 8:45 AM
To: '[EMAIL PROTECTED]'
Subject: rebuild problem with RC2

Hello,

I have jsut downloaded the source for the RC2 release, but on a dist, the
tests fail on the encoding.PackageTests.

Is there a fix for this?

Cheers
Neil


RE: JWS & Axis Client Jars [was:has anyone ever build a lightweightclient with axis ?]

2003-04-03 Thread Kellogg, Richard
You are correct.  It was fixed months ago.  I do not remember which specific release 
though.

-Original Message-
From: Benjamin Tomasini [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 10:17 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: JWS & Axis Client Jars [was:has anyone ever build a
lightweightclient with axis ?]


If I remember correctly, the Axis client dependancy on servlet.jar was
fixed recently.

You may be able to drop that one from the list.

On Thu, 2003-04-03 at 09:43, Nicholas wrote:
> For reference, we are deploying an Axius client over
> Java WebStart and the initial download is somewhat
> heavy, but after that, these jars never change, so it
> gets snappy. Here's the list:
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> 
> //Nicholas
> --- [EMAIL PROTECTED] wrote:
> > WARNING: Axis (and the older Apache SOAP) work well
> > with Java Web Start under *** most *** conditions. 
> > But they cannot be used together in applications
> > that are intended for the outside public.  
> >  
> > Both Apache implementations of SOAP have trouble
> > with HTTP proxies that required user/password
> > authentication when running in Java Web Start.  See
> > posting "BUG: Axis + Java Web Start + Authenticating
> > Proxies".
> >  
> > Bruno
> >  
> > -Original Message-
> > From: ext Richard De Falco
> > [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, April 03, 2003 3:10 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: has anyone ever build a lightweight client
> > with axis ?
> > 
> > 
> > Hello,
> >  
> > I'm wondering if axis was intended to be used from
> > an applet or a java web start enabled application.
> > I'm wondering this because the size of jar files is
> > prohibitive. I've seen some posts on this subject
> > but can't find any information on how to build such
> > a lightweight client jar (if that works). Are they
> > any plans to support this in the standard distrib ?
> > Any workaround to deploy an application without MBs
> > of jar just for calling a web services ? May be
> > another lightweight client can do the job ?
> >  
> > Any Infos appreciated,
> >  
> > Richard
> > 
> 
> 
> =
> Nicholas Whitehead
> Home: (973) 377 9335
> Cell: (201) 615 2716
> [EMAIL PROTECTED]
> Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/






Re: JWS & Axis Client Jars [was:has anyone ever build a lightweightclient with axis ?]

2003-04-03 Thread Benjamin Tomasini
If I remember correctly, the Axis client dependancy on servlet.jar was
fixed recently.

You may be able to drop that one from the list.

On Thu, 2003-04-03 at 09:43, Nicholas wrote:
> For reference, we are deploying an Axius client over
> Java WebStart and the initial download is somewhat
> heavy, but after that, these jars never change, so it
> gets snappy. Here's the list:
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> 
> //Nicholas
> --- [EMAIL PROTECTED] wrote:
> > WARNING: Axis (and the older Apache SOAP) work well
> > with Java Web Start under *** most *** conditions. 
> > But they cannot be used together in applications
> > that are intended for the outside public.  
> >  
> > Both Apache implementations of SOAP have trouble
> > with HTTP proxies that required user/password
> > authentication when running in Java Web Start.  See
> > posting "BUG: Axis + Java Web Start + Authenticating
> > Proxies".
> >  
> > Bruno
> >  
> > -Original Message-
> > From: ext Richard De Falco
> > [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, April 03, 2003 3:10 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: has anyone ever build a lightweight client
> > with axis ?
> > 
> > 
> > Hello,
> >  
> > I'm wondering if axis was intended to be used from
> > an applet or a java web start enabled application.
> > I'm wondering this because the size of jar files is
> > prohibitive. I've seen some posts on this subject
> > but can't find any information on how to build such
> > a lightweight client jar (if that works). Are they
> > any plans to support this in the standard distrib ?
> > Any workaround to deploy an application without MBs
> > of jar just for calling a web services ? May be
> > another lightweight client can do the job ?
> >  
> > Any Infos appreciated,
> >  
> > Richard
> > 
> 
> 
> =
> Nicholas Whitehead
> Home: (973) 377 9335
> Cell: (201) 615 2716
> [EMAIL PROTECTED]
> Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/




RE : JWS & Axis Client Jars [was:has anyone ever build a lightweight client with axis ?]

2003-04-03 Thread Richard De Falco
It seems that if you are really short of bandwidth (that's our case), ksoap
works quite well as far as we have tested it now (< 100ko). I let you know
the tradeoffs if there is any. I let you know as soon as investigated, if
there is proxy problems with this design.

Richard

-Message d'origine-
De : Nicholas [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 3 avril 2003 16:43
À : [EMAIL PROTECTED]
Objet : JWS & Axis Client Jars [was:has anyone ever build a lightweight
client with axis ?]


For reference, we are deploying an Axius client over
Java WebStart and the initial download is somewhat
heavy, but after that, these jars never change, so it
gets snappy. Here's the list:













//Nicholas
--- [EMAIL PROTECTED] wrote:
> WARNING: Axis (and the older Apache SOAP) work well
> with Java Web Start under *** most *** conditions.
> But they cannot be used together in applications
> that are intended for the outside public.  
>  
> Both Apache implementations of SOAP have trouble
> with HTTP proxies that required user/password
> authentication when running in Java Web Start.  See
> posting "BUG: Axis + Java Web Start + Authenticating Proxies".
>  
> Bruno
>  
> -Original Message-
> From: ext Richard De Falco
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 3:10 AM
> To: '[EMAIL PROTECTED]'
> Subject: has anyone ever build a lightweight client
> with axis ?
> 
> 
> Hello,
>  
> I'm wondering if axis was intended to be used from
> an applet or a java web start enabled application.
> I'm wondering this because the size of jar files is prohibitive. I've 
> seen some posts on this subject but can't find any information on how 
> to build such a lightweight client jar (if that works). Are they
> any plans to support this in the standard distrib ?
> Any workaround to deploy an application without MBs
> of jar just for calling a web services ? May be
> another lightweight client can do the job ?
>  
> Any Infos appreciated,
>  
> Richard
> 


=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
[EMAIL PROTECTED]
Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/


JWS & Axis Client Jars [was:has anyone ever build a lightweight client with axis ?]

2003-04-03 Thread Nicholas
For reference, we are deploying an Axius client over
Java WebStart and the initial download is somewhat
heavy, but after that, these jars never change, so it
gets snappy. Here's the list:













//Nicholas
--- [EMAIL PROTECTED] wrote:
> WARNING: Axis (and the older Apache SOAP) work well
> with Java Web Start under *** most *** conditions. 
> But they cannot be used together in applications
> that are intended for the outside public.  
>  
> Both Apache implementations of SOAP have trouble
> with HTTP proxies that required user/password
> authentication when running in Java Web Start.  See
> posting "BUG: Axis + Java Web Start + Authenticating
> Proxies".
>  
> Bruno
>  
> -Original Message-
> From: ext Richard De Falco
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 3:10 AM
> To: '[EMAIL PROTECTED]'
> Subject: has anyone ever build a lightweight client
> with axis ?
> 
> 
> Hello,
>  
> I'm wondering if axis was intended to be used from
> an applet or a java web start enabled application.
> I'm wondering this because the size of jar files is
> prohibitive. I've seen some posts on this subject
> but can't find any information on how to build such
> a lightweight client jar (if that works). Are they
> any plans to support this in the standard distrib ?
> Any workaround to deploy an application without MBs
> of jar just for calling a web services ? May be
> another lightweight client can do the job ?
>  
> Any Infos appreciated,
>  
> Richard
> 


=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
[EMAIL PROTECTED]
Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/


RE: has anyone ever build a lightweight client with axis ?

2003-04-03 Thread Bruno.Melloni
Title: Message



I just 
submitted one 5 secs ago.  Bug number 18657.
 
Bruno
-Original Message-From: ext Tom Jordahl 
[mailto:[EMAIL PROTECTED]Sent: Thursday, April 03, 2003 8:05 
AMTo: '[EMAIL PROTECTED]'Subject: RE: has anyone 
ever build a lightweight client with axis ?

 
Is their a Bugzilla 
report for this problem?
 
It will never get fixed 
if it isn't reported in Bugzilla.
 

--Tom JordahlMacromedia 
Server Development
-Original 
Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 8:44 
AMTo: 
[EMAIL PROTECTED]Subject: RE: has anyone ever build a 
lightweight client with axis ?
 

WARNING: 
Axis (and the older Apache SOAP) work well with Java Web Start under *** most 
*** conditions.  But they cannot be used together in applications that are 
intended for the outside public.  

 

Both 
Apache implementations of SOAP have trouble with HTTP proxies that required 
user/password authentication when running in Java Web Start.  See posting 
"BUG: Axis + Java Web Start + Authenticating Proxies".

 

Bruno

 
-Original 
Message-From: ext Richard 
De Falco [mailto:[EMAIL PROTECTED]Sent: Thursday, April 03, 2003 3:10 
AMTo: 
'[EMAIL PROTECTED]'Subject: has anyone ever build a 
lightweight client with axis ?



Hello,

 

I'm wondering if axis was intended 
to be used from an applet or a java web start enabled application. I'm wondering 
this because the size of jar files is prohibitive. I've seen some posts on this 
subject but can't find any information on how to build such a lightweight client 
jar (if that works). Are they any plans to support this in the standard distrib 
? Any workaround to deploy an application without MBs of jar 
just for calling a web services ? May be another lightweight client 
can do the job ?

 

Any Infos 
appreciated,

 

Richard


RE: has anyone ever build a lightweight client with axis ?

2003-04-03 Thread Tom Jordahl
Title: Message









 

Is their a Bugzilla report for this
problem?

 

It will never get fixed if it isn't
reported in Bugzilla.

 



--
Tom
 Jordahl
Macromedia Server Development



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003
8:44 AM
To: [EMAIL PROTECTED]
Subject: RE: has anyone ever build
a lightweight client with axis ?

 



WARNING: Axis (and the
older Apache SOAP) work well with Java Web Start under *** most ***
conditions.  But they cannot be used together in applications that are
intended for the outside public.  





 





Both Apache
implementations of SOAP have trouble with HTTP proxies that required
user/password authentication when running in Java Web Start.  See posting
"BUG: Axis + Java Web Start + Authenticating Proxies".





 





Bruno





 



-Original
Message-
From: ext Richard De Falco
[mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003
3:10 AM
To: '[EMAIL PROTECTED]'
Subject: has anyone ever build a
lightweight client with axis ?







Hello,





 





I'm wondering if axis was intended
to be used from an applet or a java web start enabled application. I'm
wondering this because the size of jar files is prohibitive. I've seen some
posts on this subject but can't find any information on how to build such a
lightweight client jar (if that works). Are they any plans to support this in
the standard distrib ? Any workaround to deploy an application without MBs of
jar just for calling a web services ? May be another lightweight
client can do the job ?





 





Any Infos appreciated,





 





Richard














RE: rebuild problem with RC2

2003-04-03 Thread Tom Jordahl

Try the latest nightly build or get the latest CVS source.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Neil Blue [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 8:45 AM
To: '[EMAIL PROTECTED]'
Subject: rebuild problem with RC2

Hello,

I have jsut downloaded the source for the RC2 release, but on a dist, the
tests fail on the encoding.PackageTests.

Is there a fix for this?

Cheers
Neil


SSL Security with Axis 1.0 ???

2003-04-03 Thread "Geiß, Matthias"
Hi,

I just read the IBM developerworks article about securing web services with SSL using 
Axis and Tomcat.
http://www-106.ibm.com/developerworks/webservices/library/ws-sec1.html

It contains the folling advice about the tools to use:
"Soap client/server: Apache Axis v1.0 Beta 3 (Note: Release version has a bug relating 
to the use of SSL)"

Is this corret? Am I forced to use something different from the Axis Release 1.0 
(that's what I do at the moment)?

Best regards,
Matthias




Re: How to add a (Session) Handler to Client ?

2003-04-03 Thread andre . dvorak
Hi,

you just have to add the handler to your server wsdd and to your client wsdd. You also 
have to call setMaintainSession. After these steps you should see a session id in your 
soapenv header.
Remember that you ave to use a single instance of an Axis Engine. I'm ensuring that by 
with calling setEngine in the client stub here's a sample snippet:

service = new LoginManagerServiceLocator();
binding = service.getLoginManager();
((org.apache.axis.client.Stub)binding).setMaintainSession(true);
service1 = new ExceptionManagerServiceLocator();
service1.setEngine(service.getEngine());
binding1 = service1.getExeptionManager();;
((org.apache.axis.client.Stub) binding1).setMaintainSession(true);

I attached a sample client and server config file.

hope that helps,

Andre

Kai Unewisse <[EMAIL PROTECTED]> schrieb :

> Hi all,
> 
> I discovered in the mail archive a SessionHandler.java file from Glen
> Daniels.
> 
> it says in the commment :
>   Essentially, you install it on both the request and response chains of
>   your service, on both the client and the server side.
> 
> I have a DII-Client and a "normal" Java Class without any interfaces
> (java.rmi.Remote or javax.xml.rpc.server.ServiceLifecycle ).
> 
> I read a lot and figured out, that I just need to add 2 lines in my
> wsdd-file :
>
> 
> Is this all ? When do I need the Lifecycle-interface ?
> 
> On the client side i just added :
>   service.setMaintainSession(true);
> 
> Did I missed something ?
> 
> Thanx for any pointers,
> 
> Kai



Kambrium.net Technologies, http://www.kambrium.net
http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
 
 
 
 
	 
 
	 
	 
 
	 
 



LoginManager.wsdd
Description: Binary data


rebuild problem with RC2

2003-04-03 Thread Neil Blue
Hello,

I have jsut downloaded the source for the RC2 release, but on a dist, the
tests fail on the encoding.PackageTests.

Is there a fix for this?

Cheers
Neil


RE: has anyone ever build a lightweight client with axis ?

2003-04-03 Thread Bruno.Melloni
Title: Message



WARNING: Axis (and the older Apache SOAP) work well with Java Web Start 
under *** most *** conditions.  But they cannot be used together in 
applications that are intended for the outside public.  

 
Both 
Apache implementations of SOAP have trouble with HTTP proxies that required 
user/password authentication when running in Java Web Start.  See posting 
"BUG: Axis + Java Web Start + Authenticating Proxies".
 
Bruno
 
-Original Message-From: ext Richard De Falco 
[mailto:[EMAIL PROTECTED]Sent: Thursday, April 03, 2003 3:10 
AMTo: '[EMAIL PROTECTED]'Subject: has anyone ever 
build a lightweight client with axis ?


Hello,
 
I'm wondering 
if axis was intended to be used from an applet or a java web start enabled 
application. I'm wondering this because the size of jar files is prohibitive. 
I've seen some posts on this subject but can't find any information on how to 
build such a lightweight client jar (if that works). Are they any plans to 
support this in the standard distrib ? Any workaround to deploy an application 
without MBs of jar just for calling a web services ? May be another lightweight client can do the job 
?
 
Any Infos 
appreciated,
 
Richard


How to add a (Session) Handler to Client ?

2003-04-03 Thread Kai Unewisse
Hi all,

I discovered in the mail archive a SessionHandler.java file from Glen
Daniels.

it says in the commment :
Essentially, you install it on both the request and response chains of
your service, on both the client and the server side.

I have a DII-Client and a "normal" Java Class without any interfaces
(java.rmi.Remote or javax.xml.rpc.server.ServiceLifecycle ).

I read a lot and figured out, that I just need to add 2 lines in my
wsdd-file :
 

Is this all ? When do I need the Lifecycle-interface ?

On the client side i just added :
service.setMaintainSession(true);

Did I missed something ?

Thanx for any pointers,

Kai




repost:initialization of webservice

2003-04-03 Thread Davinder Singh
Title: repost:initialization of webservice  





Hi, 
I have a webservice and want to initialize at the time of startup. the service end point class implements javax.xml.rpc.server.ServiceLifecycle interface. 

Is there a way i can have init() method called without submitting a request to the webservice? 
I am using weblogic 7.0 SP 1 / Axis 1.1RC1. Webservice has "application" scope. 


thanx for any pointers, 
davin 





RE: help required for attachment using ejb as webservice

2003-04-03 Thread Toshiyuki Kimura
Hi Subhendu,
(B
(B  At the beginning, I'd like to notify that I've already succeeded
(Bin EJB usage with the AXIS 1.1 rc1 and the posted code.  Thus, it
(Bseems the root problem is not the return type of an ejb method.
(B
(B  The most interesting describes from you are the followings;
(B
(B| Type of Image (Jpeg). We get the image as byte array from
(B|   other source. We do not get file reference.
(B
(B  I guess that you're saving the jpeg images on DBMS, and also
(Bthe ejb is implemented as an Entity Bean.  Is that right ?
(BIf so, the restriction of 'serializable' is for an Entity Bean
(Brather than for an ejb on AXIS.
(B
(BBest Regards,
(B
(B  Toshi (Toshiyuki Kimura) <[EMAIL PROTECTED]>
(B  R&D Headquarters
(B  NTT DATA Corporation
(B
(B-Original Message-
(BFrom: subhendukumar mohanty [mailto:[EMAIL PROTECTED]
(BSent: Thursday, April 03, 2003 12:07 AM
(BTo: [EMAIL PROTECTED]
(BSubject: RE: help required for attachment using ejb as webservice
(Bprovider
(B
(BHi Toshiyuki
(B
(BMy Answers are as below
(B
(BAxis 1.0 (But we may go for Apache Soap latest version comes
(B with websphere 4.0)
(BType of Image (Jpeg). We get the image as byte array from other
(B source. We do not get file reference.
(B
(BProblem. If i expose my ejb method as webservice interface and
(B i have to use soap with attachment then the return type of EJB
(B method will be of Datahandler Type. But DataHandler can  not be
(B return type of an ejb method as it does not implement
(B java.io.serializable and all ejb retutn parameters needs to be
(B serializable.
(B
(BSo to avoid this i was thinking that let my ejb return byte array
(B and i have to write a wrapper java class which will convert the
(B byte array to datahandler (still no clear how to convert that).
(B The wrapper java class will be exposed as web service rather than
(B exposing the ejb as webservice.
(B
(BLet me know whethere i am procceding in a correct direction.
(B
(BThanks,
(BSubhendu
(B
(B-Original Message-
(BFrom: Toshiyuki Kimura [mailto:[EMAIL PROTECTED]
(BSent: Tuesday, March 25, 2003 6:27 AM
(BTo: [EMAIL PROTECTED]
(BSubject: Re: help required for attachment using ejb as webservice provider
(B
(BHi Subhendu,
(B
(B  In order to clear questions from you, we'll need more details of
(Byour situation;
(B
(B  - Version of AXIS: 1.0, 1.1Beta, RC1, RC2, or the current ver ?
(B  - Type of Image  : 'JPEG', 'GIF', or the other specific types ?
(B  - Real problem   : 'Exceptions', or 'Functionally defectives' ?
(B
(B  If you're using AXIS 1.1 Beta (or the later) and 'image/jpeg
(Bor image/gif' as the content type (i.e. your image archive only
(Bhas JPEG files and/or GIF files), you might make it with the 
(Bfollowing snapshot;
(B
(Bpublic DataHandler downladFile(java.lang.String filename){
(B  try{
(BFileDataSource dataSource = new FileDataSource(filename);
(BDataHandler dataHandler = new DataHandler(dataSource);
(Breturn dataHandler;
(B  }catch(Exception e){
(B  :
(B  }
(B}
(B
(B  Please note DataHandler hasn't been implemented as serializable,
(Bhowever, some standardized types of content (MIME type) will be
(Bautomatically serialized and deserialized by the runtime, AXIS
(Bwith your right configuration.
(B
(BBest Regards,
(B
(B  Toshi (Toshiyuki Kimura) <[EMAIL PROTECTED]>
(B  R&D Headquarters
(B  NTT DATA Corporation
(B
(B-Original Message-
(BFrom: subhendukumar mohanty [mailto:[EMAIL PROTECTED]
(BSent: Friday, March 21, 2003 10:05 AM
(BTo: [EMAIL PROTECTED]
(BSubject: help required for attachment using ejb as
(B webservice provider
(B
(BWe are creating a ejb which will be exposed as webservice.
(BOne of the method of ejb will return the image from image
(Barchive. So we need to use soap with attachment for this.
(BI learned that if any data is returned using DataHandler
(Bit will be automatically passed as soap with attachment.
(BAs DataHandler is not implemented java.io.serializable,
(BI can not use this as the return type of the ejb. I am new
(Bto webservice and axis. So any body can guide me what to do
(Bin this case..
(B
(BYour help will be appreciated.
(B
(BThanks,
(BSubhendu

RE: has anyone ever build a lightweight client with axis ?

2003-04-03 Thread Anne Thomas Manes
Try Wingfoot SOAP -- free for commercial use.
I've been told that IONA XMLBus also supports applets.

Anne

> -Original Message-
> From: Jon Barber [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 5:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: has anyone ever build a lightweight client with axis ?
> 
> 
> Richard De Falco wrote:
> 
> > Hello,
> >  
> > I'm wondering if axis was intended to be used from an applet or a java 
> > web start enabled application. I'm wondering this because the size of 
> > jar files is prohibitive. I've seen some posts on this subject but 
> > can't find any information on how to build such a lightweight client 
> > jar (if that works). Are they any plans to support this in the 
> > standard distrib ? Any workaround to deploy an application without MBs 
> > of jar just for calling a web services ? May be another lightweight 
> > client can do the job ?
> >  
> > Any Infos appreciated,
> >  
> > Richard
> 
> Well, I'm doing just that, a web start app using Axis.  Started with 
> Glue but it didn't work through web start as it reads config files from 
> the local hard disk, and doesn't seem to read them from JARs.  At the 
> moment the complete app is about 5Mb due to extra unoptimised JARs, but 
> imho this is not a problem.
> 
> BTW, you can seed the client PCs with the app if you can supply a CD.  
> There are several articles on-line about preloading JARs into the 
> webstart cache on client machines.
> 
> I haven't checked yet, but is Axis supplied built with debug info ?  If 
> so, rebuilding with debugging turned off may help.
> 
> Jon.
> 
> 
> 


Re: has anyone ever build a lightweight client with axis ?

2003-04-03 Thread Jon Barber
Richard De Falco wrote:

Hello,
 
I'm wondering if axis was intended to be used from an applet or a java 
web start enabled application. I'm wondering this because the size of 
jar files is prohibitive. I've seen some posts on this subject but 
can't find any information on how to build such a lightweight client 
jar (if that works). Are they any plans to support this in the 
standard distrib ? Any workaround to deploy an application without MBs 
of jar just for calling a web services ? May be another lightweight 
client can do the job ?
 
Any Infos appreciated,
 
Richard
Well, I'm doing just that, a web start app using Axis.  Started with 
Glue but it didn't work through web start as it reads config files from 
the local hard disk, and doesn't seem to read them from JARs.  At the 
moment the complete app is about 5Mb due to extra unoptimised JARs, but 
imho this is not a problem.

BTW, you can seed the client PCs with the app if you can supply a CD.  
There are several articles on-line about preloading JARs into the 
webstart cache on client machines.

I haven't checked yet, but is Axis supplied built with debug info ?  If 
so, rebuilding with debugging turned off may help.

Jon.





problem using wsdl2java

2003-04-03 Thread andre . dvorak
Hi, 

I want to use the EnumDe/SerializerFactory of axis and have deployed a wsdd file with 
the following mapping: 

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

My service uses this STATEType and I could successfully deploy the service. After 
using wsdl2java I get the following error: 

java.io.IOException: Type {urn:types.castor.model.wfm.ee2.tbx.db.com}STATEType is 
referenced but not defined. 
. 

I checked the mailing list on this error and found some references, but I think I'm 
using everything in a right way. 

Any thought on that ? 

thanks, 

Andre


Kambrium.net Technologies, http://www.kambrium.net




Re: has anyone ever build a lightweight client with axis ?

2003-04-03 Thread Slava Kudinov
Hello Richard,

I was trying to build lightweight axis-client.jar by help of ant's
optional task  but I had no luck, I gave up this idea because
axis has many classes being loaded by names at runtime and 
is unable to resolve it by compiled classes

- Slava

Thursday, April 03, 2003, 12:10:12 PM, you wrote:

RDF> Hello,
 
RDF> I'm wondering if axis was intended to be used from an applet or a java web
RDF> start enabled application. I'm wondering this because the size of jar files
RDF> is prohibitive. I've seen some posts on this subject but can't find any
RDF> information on how to build such a lightweight client jar (if that works).
RDF> Are they any plans to support this in the standard distrib ? Any workaround
RDF> to deploy an application without MBs of jar just for calling a web services
RDF> ? May be another lightweight client can do the job ?
 
RDF> Any Infos appreciated,
 
RDF> Richard



-- 
Best regards,
 Slavamailto:[EMAIL PROTECTED]



has anyone ever build a lightweight client with axis ?

2003-04-03 Thread Richard De Falco
Title: Message





Hello,
 
I'm wondering 
if axis was intended to be used from an applet or a java web start enabled 
application. I'm wondering this because the size of jar files is prohibitive. 
I've seen some posts on this subject but can't find any information on how to 
build such a lightweight client jar (if that works). Are they any plans to 
support this in the standard distrib ? Any workaround to deploy an application 
without MBs of jar just for calling a web services ? May be another lightweight client can do the job 
?
 
Any Infos 
appreciated,
 
Richard


RE: java.util.List and 1.1.RC2

2003-04-03 Thread Keith Hatton
For fromArray(), you mean this?

java.util.Arrays.asList(Object[])



-Original Message-
If you go
  return (Foo)list.toArray(new Foo[0]);
You can turn a list to an array in a snap. A fromArray() would be nice 
to match it.