RE: Using axis ant task with typed enums

2005-03-01 Thread Ulrich Ackermann
Hi,

I tried to follow Paul's advice, but the results weren't as expected: I had no 
entries of my EnumTest class in the WSDL and WSDD files.
My class looked as follows:

public class EnumTest implements Serializable {
private String value = null;
// Constructor
protected EnumTest(String value) {
this.value = value;
}
public static final EnumTest TEST_1 = new EnumTest("test1");

public String getValue() { return this.value; }

public static EnumTest fromValue(String value) { return null;  }

public static EnumTest fromString(String value){ return null;   }

public String toString() { return this.value; }

public boolean equals(Object obj) {
if (obj == null) {
return false;
}
return this.value.equals(obj.toString());
}

public int hashCode() { return this.value.hashCode(); }
}

It seems that I am still missing the idea :-/

Regards,
Ulrich

axis-user@ws.apache.org schrieb am 28.02.05 18:41:21:

Or you can read in the jax-rpc spec 1.1 on how to write the java 1.4 enums in 
such a way that the axis engine will generate an enum that anne gave an example 
for...

mainly the following:
//Java
public class  {
// ...
// Constructor
protected ( value) { ... }
// One for each label in the enumeration
public static final  _ = ;
public static final   =
new (_);
// Gets the value for a enumerated value
public  getValue() {...}
// Gets enumeration with a specific value
// Required to throw java.lang.IllegalArgumentException if
// any invalid value is specified
public static  fromValue( value) {
... }
// Gets enumeration from a String
// Required to throw java.lang.IllegalArgumentException if
// any invalid value is specified
public static  fromString(String value){ ... }
// Returns String representation of the enumerated value
public String toString() { ... }
public boolean equals(Object obj) { ... }
public int hashCode() { ... }
}

> -Original Message-
> From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
> Sent: Montag, 28. Februar 2005 16:41
> To: axis-user@ws.apache.org
> Subject: Re: Using axis ant task with typed enums
> 
> 
> Ulrich,
> 
> First of all, WSDL does not contain any "class" descriptions. WSDL
> contains element and type descriptions -- specified using XML Schema.
> If you read through the archives, you will see frequent
> recommendations to take a "WSDL first" or "Schema first" approach to
> web services rather than a "Java first" approach.
> 
> Here is an example of a definition of simple type that is an
> enumeration of string values:
> 
>  
>   
>
>
>   
>  
> 
> Anne
> 
> 
> On Sun, 27 Feb 2005 23:20:30 +0100, Ulrich Ackermann
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > in the meantime I came to the conclusion, that my question 
> has no solution that could satisfy me. I fear that there is 
> no way to create a WSDL file containing a class description, 
> where the class contains just public static members (or does 
> the WSDL spec offer a way to express such things?).
> > 
> > Could anyone confirm my assumption? Is there an alternative 
> way to restrict the value of a method parameter to a set of 
> predefined String values?
> > 
> > Regards,
> > Ulrich
> > 
> > axis-user@ws.apache.org schrieb am 27.02.05 00:08:00:
> > 
> > Hi,
> > 
> > I have a problem using something like typed enums in the 
> signature of my webservice methods (don't know if 'typed 
> enums' is the right term).
> > 
> > E.g.:
> > public class MyEnum {
> > private String attribute = null;
> > 
> > public static MyEnum VALUE_1 = new MyEnum("value1");
> > // other static values go here
> > 
> > private MyEnum(String attribute) {
> > this.attribute = attribute;
> > }
> > 
> > // other methods like toString() go here
> > }
> > 
> > Now, if I have a method like this in my interface...
> > public void myMethod(String someParam, MyEnum otherParam);
> > 
> > ... and run the axis-java2wsdl ant task, the MyEnum class 
> looks quit different than before: axis-java2wsdl added some 
> attributes and implemented the equals and hashcode methods 
> (which is quite ok I guesss...) and removed everything I 
> typed in before in the MyEnum class (which is not ok - at 
> least for me).
> > But maybe this has a reason, and as I'm quite new to 
> webservices this is a feature and not a flaw.
> > Is there a way to keep the intention of the MyEnum class 
> and let the axis ant task generate what I intended?
> > 
> > I use the ant task in this way:
> >  > 
> output="${project.webservice.wsdl.dir}/${project.webservice.ws
> dl.filename}"
> > 
> location="http://${project.webservice.host}:${project.webservi
> ce.port}/axis/services/${project.webservice.service.namespace}"
> > namespace="${project.webservice.service.name}"
> > 
> classname="${projec

WSS4J in WebSphere 5.1.2??????

2005-03-01 Thread anshuk pal chaudhuri
I have a simple Web Service in WebSphere which is
working fine.
Now I want to secure that service using wss4j UserName
Token.
I have included the wss4j jar.
Then what is the code and way to go ahead to secure
the service using the wss4j apis?

I have been trying this for a lot many days.But still
I am unsuccessful
Please help me out...




__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 


Re: Problem with Wrapped Literal style in .NET client

2005-03-01 Thread Murad
Dear Anne,

Thanks for your kind response.Following is the service class
definition. With this service class I provided two sets of service
definitions in the wsdd file which are enclosed below along with their
corresponding generated wsdl.Scenario 1 is with
the wrapped/literal encoding which gives the problem mentioned in my
previous mail.And Scenario 2 is the default
encoding scheme(which I believe is rpc/literal).With scenaio 2
everything is working nice and smooth(offcourse I have small amount
payload until now).

Service class definition ::




/*
 * Copyright (C) 2004 Sikraft Solutions Ltd. All  Rights Reserved.
 *
 * This software is the confidential and proprietary information
 * of Sikraft Solutions Ltd.
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Sikraft.
 */
package com.sikraft.ihis.inpatient.roomtype;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.sikraft.welkin.business.Result;
import com.sikraft.welkin.business.ServiceFacade;
import com.sikraft.welkin.exception.GenericException;
import com.sikraft.welkin.service.BaseJaxRPCService;
import java.util.List;

/**
 * Exposes the Inpatient RoomType related service to the external world
 * @author Ahad
 * @version 1.0
 */
public class JaxRpcIRTypeService
extends BaseJaxRPCService
{
  private static Log theLogger = LogFactory.getLog(JaxRpcIRTypeService.class);
  public static final String SERVICE_NAME = "irtypeService";

  /**
   * creates a room type in the system
   *
   * @param theData PersistantCapableDTO
   */
  public Result add(IRTypeDTO theData) throws GenericException
  {
return provideService(theData, SERVICE_NAME, ServiceFacade.SERVICE_ADD);
  }

  /**
   * update a room type info existing in the system
   *
   * @param theData PersistantCapableDTO
   */
  public Result modify(IRTypeDTO theData) throws GenericException
  {
return provideService(theData, SERVICE_NAME, ServiceFacade.SERVICE_MODIFY);
  }

  /**
   * provides all room type of the system
   *
   * @return allIRType List
   */
  public IRTypeDTO[] getAllIRType() throws GenericException
  {
List allIRType = ( (IIRTypeService)
getService(SERVICE_NAME)).getIrtypeDAO().getAllIRType();
IRTypeDTO  allIRTypeArray[] = (IRTypeDTO[]) allIRType.toArray(new
IRTypeDTO[allIRType.size()]);
return  allIRTypeArray;
  }
  public IRTypeDTO findById(Long id)throws GenericException
  {
 theLogger.trace("findById() :: " + id);
 Object obj = findDTOById(IRTypeDTO.class,id);
 theLogger.trace("findById() :: " + obj);
 return (IRTypeDTO)obj;
  }
  public IRTypeDTO[] findIRTypes(String hqlQueryCondition,Object
params[])throws GenericException//Specific field Search
  {
List searchedDepartments =
findPersistantCapableDTOs(IRTypeDTO.class.getName(),hqlQueryCondition,params);
return (IRTypeDTO[])searchedDepartments.toArray(new
IRTypeDTO[searchedDepartments.size()]);
  }
  public Object[][] findSpecificDataWithFullValue(String
fieldNames[],String fieldValues[],String returnFieldNames[])
  {
return 
super.findSpecificData(fieldNames,fieldValues,returnFieldNames,IRTypeDTO.class);
  }
  public Object[][] findSpecificDataWithPatialValue(String
fieldName,String partialOrFullFieldValue,String returnFieldNames[])
  {
return 
super.findSpecificData(fieldName,partialOrFullFieldValue,returnFieldNames,IRTypeDTO.class);
  }

}

With a above code base followings are two scenarios:
 
Scenario 01. (wrapped/literal)

01.a.

Service Element defined in wsdd ::

 
   urn:ihis
   
   
   
   
   
   
   
   
   
   
   
   
   
  

01.b. WSDL with the above service element definition


   
- http://xml.apache.org/xml-soap";
xmlns:impl="urn:ihis" xmlns:intf="urn:ihis"
xmlns:tns1="http://lang.java";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
-  
- 
- http://www.w3.org/2001/XMLSchema";>
  http://lang.java"; /> 
- 
- 
- 
   
  
  
  
- 
- 
   
   
   
   
   
   
   
  
  
- 
- 
- 
- 
   
  
  
  
  
- 
- 
- 
- 
   
  
  
  
  
- 
- 
- 
   
  
  
  
- 
- 
   
   
   
  
  
- 
- 
  
  
  
- 
- 
   
   
  
   
  
  
   
- 
- 
- 
   
  
  
  
- 
- 
- 
   
  
  
  
- 
- 
- 
   
  
  
  
- 
- 
- 
   
  
  
  
- 
   
  
- 
- 
- 
  
  
  
  
- 
- 
- 
   
   
  
  
  
- 
- 
- 
  
  
  
  
- 
- 
- 
   
   
   
  
  
  
- 
- 
- 
  
  
  
  
- 
- 
  
  
  
- 
- 
- 
   
   
   
  
  
  
- 
- 
- 
  
  
  
  
  
  
- 
   
  
- 
   
  
- 
  
  
- 
   
  
- 
   
  
- 
   
  
- 
  
  
- 
   
  
- 
   
  
- 
   
  
- 
   
  
- 
   
  
- 
  
  
- 
   
  
- 
   
  
- 
- 
   
   
   
  
- 
   
   
   
  
- 
   
   
   
  
- 
   
  
   
  
- 
   
   
   
  
- 
  
  
  
- 
  
  
  
  
- 
  http://schemas.xmlsoap.org/soap/http"; />
- 
   
- 
   
  
- 
   
  
- 
   
  
  
- 
   

Re: Document/Literal problem with .NET client

2005-03-01 Thread Murad
Dear Dino,

Thank you very much for your valuable response.Following is the
service class definition.With this service class I provided two sets
of service
definitions in the wsdd file which are enclosed below along with their
corresponding generated wsdl.Scenario 1 is with
the document/literal encoding which gives the problem mentioned in my
previous mail.And Scenario 2 is the default
encoding scheme(which I believe is rpc/literal).In scenaio 2
everything is working nice and smooth.With Scenario 1 I have
following observations:

i.In running add method everything is working nice but the return
value in the .NET client I am getting null

ii.One of my methods have methods(getAllIRType) with Complex data data
array as return type. In generated proxy class(by wsdl tool)
I find return type becomes a simple DTO(without the array sign)

iii. Strange to that when the return type is object type in the proxy
class things are ok.

With the first scenrio I tested it with .NET web service studio and
provide u a sample of
request and response(take it from the Web Service Studio) but I am
seeing the result object
is null. 
 

Service class definition ::




/*
 * Copyright (C) 2004 Sikraft Solutions Ltd. All  Rights Reserved.
 *
 * This software is the confidential and proprietary information
 * of Sikraft Solutions Ltd.
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Sikraft.
 */
package com.sikraft.ihis.inpatient.roomtype;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.sikraft.welkin.business.Result;
import com.sikraft.welkin.business.ServiceFacade;
import com.sikraft.welkin.exception.GenericException;
import com.sikraft.welkin.service.BaseJaxRPCService;


/**
 * Exposes the Inpatient RoomType related service to the external world
 * @author Ahad
 * @version 1.0
 */
public class JaxRpcIRTypeService
extends BaseJaxRPCService
{
  private static Log theLogger = LogFactory.getLog(JaxRpcIRTypeService.class);
  public static final String SERVICE_NAME = "irtypeService";

  /**
   * creates a room type in the system
   *
   * @param theData PersistantCapableDTO
   */
  public Result add(IRTypeDTO theData) throws GenericException
  {
return provideService(theData, SERVICE_NAME, ServiceFacade.SERVICE_ADD);
  }

  /**
   * update a room type info existing in the system
   *
   * @param theData PersistantCapableDTO
   */
  public Result modify(IRTypeDTO theData) throws GenericException
  {
return provideService(theData, SERVICE_NAME, ServiceFacade.SERVICE_MODIFY);
  }

  /**
   * provides all room type of the system
   *
   * @return allIRType List
   */
  public IRTypeDTO[] getAllIRType() throws GenericException
  {
List allIRType = ( (IIRTypeService)
getService(SERVICE_NAME)).getIrtypeDAO().getAllIRType();
IRTypeDTO  allIRTypeArray[] = (IRTypeDTO[]) allIRType.toArray(new
IRTypeDTO[allIRType.size()]);
return  allIRTypeArray;
  }
  public IRTypeDTO findById(Long id)throws GenericException
  {
 theLogger.trace("findById() :: " + id);
 Object obj = findDTOById(IRTypeDTO.class,id);
 theLogger.trace("findById() :: " + obj);
 return (IRTypeDTO)obj;
  }
  public IRTypeDTO[] findIRTypes(String hqlQueryCondition,Object
params[])throws GenericException//Specific field Search
  {
List searchedDepartments =
findPersistantCapableDTOs(IRTypeDTO.class.getName(),hqlQueryCondition,params);
return (IRTypeDTO[])searchedDepartments.toArray(new
IRTypeDTO[searchedDepartments.size()]);
  }
  public Object[][] findSpecificDataWithFullValue(String
fieldNames[],String fieldValues[],String returnFieldNames[])
  {
return 
super.findSpecificData(fieldNames,fieldValues,returnFieldNames,IRTypeDTO.class);
  }
  public Object[][] findSpecificDataWithPatialValue(String
fieldName,String partialOrFullFieldValue,String returnFieldNames[])
  {
return 
super.findSpecificData(fieldName,partialOrFullFieldValue,returnFieldNames,IRTypeDTO.class);
  }

}

With a above code base followings are two scenarios:
 
Scenario 01. (document/literal)

01.a.

Service Element defined in wsdd ::

 
   urn:ihis
   
   
   
   
   
   
   
   
   
   
   
   
   
  

01.b. WSDL with the above service element definition


   
- http://xml.apache.org/xml-soap";
xmlns:impl="urn:ihis" xmlns:intf="urn:ihis"
xmlns:tns1="http://lang.java";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
-  
- 
- http://www.w3.org/2001/XMLSchema";>
  http://lang.java"; /> 
- 
- 
   
   
   
   
   
   
   
  
  
- 
- 
- 
- 
   
  
  
  
  
- 
- 
- 
- 
   
  
  
  
  
   
- 
- 
   
   
   
  
  
   
- 
- 
  
  
  
- 
- 
   
   
  
   
  
  
   
   
   
   
   
   
   
- 
- 
  
  
  
   
   
   
   
   
- 
- 
  
  
  
 

Using ant task to deploy services

2005-03-01 Thread Koney, Satish
Hi All,

Can someone tell me what is the ideal way of deploying a web service
using ant task?

Following is how I am doing it now: (Each step is a separate task)

1. compile the project and build the war file

2. copy the war file into JBoss server/default/deploy/webapps directory
(This is to deploy the war file)

3. deploy the webservice using adminClient ant task ( In the second step,
only the war file is deployed, not the service)

But the problem I am facing is, each time I restart my server, I need to
redeploy the web service.

If my application is in the form of a directory (WebService.war directory) ,
when I deploy the service, it is creating a server-config.wsdd file in my
WEB-INF directory.

But if it is a war file, that file is not created, but the service is
deployed.I do not understand where it is keeping all the web service
information.

So can someone please me tell me how i deploy the web service using ant
task?


Thanks,
.


Confidential:  This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.


RE: Using axis ant task with typed enums

2005-03-01 Thread Ulrich Ackermann
Hi,

Please forget my last post, forgot to use the EnumTest class in the WS 
interface... *sigh*

Ulrich


axis-user@ws.apache.org schrieb am 01.03.05 09:45:22:

Hi,

I tried to follow Paul's advice, but the results weren't as expected: I had no 
entries of my EnumTest class in the WSDL and WSDD files.
My class looked as follows:

public class EnumTest implements Serializable {
private String value = null;
// Constructor
protected EnumTest(String value) {
this.value = value;
}
public static final EnumTest TEST_1 = new EnumTest("test1");

public String getValue() { return this.value; }

public static EnumTest fromValue(String value) { return null;  }

public static EnumTest fromString(String value){ return null;   }

public String toString() { return this.value; }

public boolean equals(Object obj) {
if (obj == null) {
return false;
}
return this.value.equals(obj.toString());
}

public int hashCode() { return this.value.hashCode(); }
}

It seems that I am still missing the idea :-/

Regards,
Ulrich

axis-user@ws.apache.org schrieb am 28.02.05 18:41:21:

Or you can read in the jax-rpc spec 1.1 on how to write the java 1.4 enums in 
such a way that the axis engine will generate an enum that anne gave an example 
for...

mainly the following:
//Java
public class  {
// ...
// Constructor
protected ( value) { ... }
// One for each label in the enumeration
public static final  _ = ;
public static final   =
new (_);
// Gets the value for a enumerated value
public  getValue() {...}
// Gets enumeration with a specific value
// Required to throw java.lang.IllegalArgumentException if
// any invalid value is specified
public static  fromValue( value) {
... }
// Gets enumeration from a String
// Required to throw java.lang.IllegalArgumentException if
// any invalid value is specified
public static  fromString(String value){ ... }
// Returns String representation of the enumerated value
public String toString() { ... }
public boolean equals(Object obj) { ... }
public int hashCode() { ... }
}

> -Original Message-
> From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
> Sent: Montag, 28. Februar 2005 16:41
> To: axis-user@ws.apache.org
> Subject: Re: Using axis ant task with typed enums
> 
> 
> Ulrich,
> 
> First of all, WSDL does not contain any "class" descriptions. WSDL
> contains element and type descriptions -- specified using XML Schema.
> If you read through the archives, you will see frequent
> recommendations to take a "WSDL first" or "Schema first" approach to
> web services rather than a "Java first" approach.
> 
> Here is an example of a definition of simple type that is an
> enumeration of string values:
> 
>  
>   
>
>
>   
>  
> 
> Anne
> 
> 
> On Sun, 27 Feb 2005 23:20:30 +0100, Ulrich Ackermann
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > in the meantime I came to the conclusion, that my question 
> has no solution that could satisfy me. I fear that there is 
> no way to create a WSDL file containing a class description, 
> where the class contains just public static members (or does 
> the WSDL spec offer a way to express such things?).
> > 
> > Could anyone confirm my assumption? Is there an alternative 
> way to restrict the value of a method parameter to a set of 
> predefined String values?
> > 
> > Regards,
> > Ulrich
> > 
> > axis-user@ws.apache.org schrieb am 27.02.05 00:08:00:
> > 
> > Hi,
> > 
> > I have a problem using something like typed enums in the 
> signature of my webservice methods (don't know if 'typed 
> enums' is the right term).
> > 
> > E.g.:
> > public class MyEnum {
> > private String attribute = null;
> > 
> > public static MyEnum VALUE_1 = new MyEnum("value1");
> > // other static values go here
> > 
> > private MyEnum(String attribute) {
> > this.attribute = attribute;
> > }
> > 
> > // other methods like toString() go here
> > }
> > 
> > Now, if I have a method like this in my interface...
> > public void myMethod(String someParam, MyEnum otherParam);
> > 
> > ... and run the axis-java2wsdl ant task, the MyEnum class 
> looks quit different than before: axis-java2wsdl added some 
> attributes and implemented the equals and hashcode methods 
> (which is quite ok I guesss...) and removed everything I 
> typed in before in the MyEnum class (which is not ok - at 
> least for me).
> > But maybe this has a reason, and as I'm quite new to 
> webservices this is a feature and not a flaw.
> > Is there a way to keep the intention of the MyEnum class 
> and let the axis ant task generate what I intended?
> > 
> > I use the ant task in this way:
> >  > 
> output="${project.webservice.wsdl.dir}/${project.webservice.ws
> dl.filename}"
> > 
> location="http://${project.webservice.host}:${project.webser

RE: Adding a custom handler

2005-03-01 Thread J . Sugrue
Thanks - 

That worked perfectly. 

I had made the mistake of extending the wrong handler (BasicHandler) which 
doesn't seem to appear in the handler chain.

Thanks for the solution.

James




Alick Buckley <[EMAIL PROTECTED]> 
28/02/2005 21:14
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
RE: Adding a custom handler







I have the following working 
= 
  QName portName = stub.getPortName () ; 
  Service service = stub._getService () ; // Axis 1.2 RC2 
  HandlerRegistry handlerRegistry = service.getHandlerRegistry () ; 
  List handlerChain = handlerRegistry.getHandlerChain ( portName ) ; 
  MyHandlerInfo handlerInfo = new MyHandlerInfo () ; 
  handlerInfo.setHandlerClass ( MyHandler.class ) ; 
  handlerChain.add ( handlerInfo ) ; 
  handlerRegistry.setHandlerChain ( portName, handlerChain ) ; 
= 
  public class MyHandler implements Handler 
  { 
public void init ( HandlerInfo handlerInfo ) throws JAXRPCException 
{ 
if ( handlerInfo instanceof MyHandlerInfo ) 
{ 
} 
} 
public void destroy () throws JAXRPCException 
{ 
} 
public QName[] getHeaders () 
{ 
return new QName[0] ; 
} 
public boolean handleFault ( MessageContext messageContext ) throws 
JAXRPCException 
{ 
return true ; // return true to continue processing 
} 
public boolean handleRequest ( MessageContext messageContext ) throws 
JAXRPCException 
{ 
SOAPMessage message = 
((SOAPMessageContext)messageContext).getMessage () ; 
return true ; // return true to continue processing 
} 
public boolean handleResponse ( MessageContext messageContext ) throws 
JAXRPCException 
{ 
return true ; // return true to continue processing 
} 
= 

-Original Message- 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 1 March 2005 3:26 AM 
To: axis-user@ws.apache.org 
Subject: Adding a custom handler 

Hi. 
I'm writing a client side Axis application, in which I need to create my 
own custom handler. 
I'm using WSDL2Java to generate my code stubs, and I was hoping that I 
could add a handler as follows: 
HandlerRegistry registry  = 
service.getHandlerRegistry(); 
QName portName = s.getPortName(); 
List handlerChain = 
registry.getHandlerChain(portName); 
HandlerInfo handlerInfo = new 
HandlerInfo(); 
 handlerInfo.setHandlerClass(com.foo.MyHandler); 
handlerChain.add(handlerInfo); 
registry.setHandlerChain(portName, 
handlerChain); 

But when I run the client application, it would seem this handler is not 
called as both the handleRequest and handleResponse methods produce no 
output (I've added in System.out's to them to see if it works) 
Does anyone have any ideas of what I may be missing? 
Thanks. 
James 

This email is intended solely for the use of the named addressee(s). Any 
unauthorised disclosure, copying or distribution of the confidential 
information contained therein, or the taking of any action based on it, is 

prohibited. The sender disclaims any liability for the integrity of this 
email. Legally binding declarations must be in written form. 

This email is intended solely for the use of the named addressee(s). Any 
unauthorised disclosure, copying or distribution of the confidential 
information contained therein, or the taking of any action based on it, is 
prohibited. The sender disclaims any liability for the integrity of this 
email. Legally binding declarations must be in written form.



Re: attachments not getting stored.

2005-03-01 Thread Oteniya Olumide
krthekeyan,

Are u using SwA? I would like to know.

On Tue, 01 Mar 2005 10:58:16 +0530, Krthekeyan Suriyanarayanan
<[EMAIL PROTECTED]> wrote:
> HI all,
> I am trying to send attachments through webservice , When I try to
> figure out the receipt of attachment file . I am getting the data from
> client, but the file is not getting
> stored in the attachment.directory which i had mentioned in config file.
> what could be the problem. I suppose the files has to automatically
> store in that particular directory right.
> what could be the problem.
> 
> Next thing is I wanted to implement securiy on this service also. where
> can i refer.
> 
> thanks,
> krthekeyan.s
>


why Axis doesn't preserve Inheritance ?

2005-03-01 Thread babloosony
Hi All,

I am using AXIS 1.2 RC2 and trying to expose an EJB as web service
with below wsdl which is somewhat handcrafted  to support java
collections using my custom AXIS (De)Serialzers.

-

http://schemas.xmlsoap.org/wsdl/";
xmlns:impl="http://ws.sosnoski.com/wsdl/wroxaxis/appendixb";
xmlns:intf="http://ws.sosnoski.com/wsdl/wroxaxis/appendixb";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:tns1="http://ws.sosnoski.com/schemas/wroxaxis/appendixb";
targetNamespace="http://ws.sosnoski.com/wsdl/wroxaxis/appendixb";>

http://ws.sosnoski.com/schemas/wroxaxis/appendixb";
elementFormDefault="qualified"
xmlns:tns="http://ws.sosnoski.com/schemas/wroxaxis/appendixb";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns="http://www.w3.org/2001/XMLSchema";>



 

































http://www.w3.org/2001/XMLSchema";
targetNamespace="http://ws.sosnoski.com/wsdl/wroxaxis/appendixb";
elementFormDefault="qualified">
http://ws.sosnoski.com/schemas/wroxaxis/appendixb"/>





























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












http://localhost:/axis/services/SparePartPriceSession"/>




-



I have 2 questions here now.

1. Even though the above WSDL is "validated ok" by WSAD'S WSDL
Validator, Altova's XMLSpy say it is invalid and reports an error
"Unexpected element 'extension' in element 'complexType'. Can anyone
please tell me why is this error occurring ?Is my WSDL correct
?


2. I have taken the above WSDL and feeded to axis to generate stubs
but AXIS does not preserve inheritance among  Forecast class and its
super class ParentForecast class. The Forecast java file does not
extend ParentForecast class.  Why is this strange behavior from AXIS's
WSDL2Java Code Generator ?





Thanks & Regards,
Kumar.


Re: attachments not getting stored.

2005-03-01 Thread Krthekeyan Suriyanarayanan




Yes I am using SwA.

Oteniya Olumide wrote:

  krthekeyan,

Are u using SwA? I would like to know.

On Tue, 01 Mar 2005 10:58:16 +0530, Krthekeyan Suriyanarayanan
<[EMAIL PROTECTED]> wrote:
  
  
HI all,
I am trying to send attachments through webservice , When I try to
figure out the receipt of attachment file . I am getting the data from
client, but the file is not getting
stored in the attachment.directory which i had mentioned in config file.
what could be the problem. I suppose the files has to automatically
store in that particular directory right.
what could be the problem.

Next thing is I wanted to implement securiy on this service also. where
can i refer.

thanks,
krthekeyan.s


  
  
  






ws-security

2005-03-01 Thread Daniela CLARO



Hello, 
 I am to know if anybody knows any example that works 
with ws-security with Axis? 
Where can I find it? 
 
Thank you
Daniela

Axis2: RPC -> Message advantages

2005-03-01 Thread Eugene Prokopiev
Hi,
In http://ws.apache.org/axis2/ I read:
Another driving force for Axis2 is to move away from RPC oriented Web services towards more document-oriented, message style asynchronous service interactions. 
Where is adavatages of this approach in case of using HTTP as transport 
layer? Is this approach moving back to POST/GET methods and servlet model?


Connection reset in Axis?

2005-03-01 Thread Dan O'Neill
I'm really sorry about this email but I've hit a brick wall and can't
get past. First off I'm using Axis 1.2RC with tomcat 4.1.31.

I have a test system that communicates with a service and thats all it
does. But theres a handler thats invoked when the service is invoked.
This handler then makes a service call to a service that puts some
information into a database.

But I keep getting a connection reset?? Some people have said thats
because of a timeout. But I don't think thats what it is.
Here's my code if you can understand it.

***
Loghandler.java //The Handler!
***
package Myne;

import org.apache.axis.AxisFault;
import org.apache.axis.Handler;
import org.apache.axis.MessageContext;
import org.apache.axis.handlers.BasicHandler;
import javax.xml.rpc.ParameterMode;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;

public class LogHandler1 extends BasicHandler {
  public void invoke(MessageContext msgContext) throws AxisFault{
/** Log an access each time we get invoked.
*/
try {
  Handler serviceHandler = msgContext.getService();
  String hostname = (String)getOption("hostname");
  if((hostname == null) || (hostname.equals("")))
  System.out.println("No hostname Specified");
  String endpoint = "http://localhost:8080/axis/counting.jws";;
  String method = "count";
  Service  service = new Service();
  Call call= (Call) service.createCall();
  call.setTargetEndpointAddress( new java.net.URL(endpoint) );
  call.setOperationName( method );
  call.addParameter( "op1", XMLType.SOAP_STRING,
ParameterMode.IN );
  call.setReturnType( XMLType.SOAP_STRING );
  call.invoke( new Object [] {hostname});// This does all the work!

} catch (Exception e) {
  throw AxisFault.makeFault(e);
}
  }
}
***
Service//A quick service
***
package Myne;

public class Service
{
  public String testMethod(){
  return "Hi, you've reached the testMethod.";
  }
}
***
Client//A quick service
***
package Myne;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.utils.Options;
import javax.xml.namespace.QName;

public class Client{
  public static void main(String [] args){
  try {
  Options options = new Options(args);
  String endpointURL = options.getURL();
  Service  service = new Service();
  Call call= (Call) service.createCall();
  call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
  call.setOperationName( new QName("TestService", "testMethod") );
  String res = (String) call.invoke( new Object[] {} );
  System.out.println( res );
  } catch (Exception e) {
  System.err.println(e.toString());
  }
  }
}

***
counting.jws//The service that does the database stuff
***
import java.sql.*;
import java.util.Date;

public class counting{
  public void count(String host)throws Exception{
  try{
  int accesses = 0;
  String accessS="";
  Date date = new Date();
  testDriver();
  Connection con = getConnection();
  Statement s = con.createStatement();
  ResultSet rs = s.executeQuery("SELECT * FROM
access WHERE hostname
= "+host+"");
  if(rs.next()==false){
  accessS ="0";
  }
  else
  accessS = (rs.getObject("counting")).toString();
  accesses = Integer.parseInt(accessS);
  int numAccesses = accesses+1;
  s.execute("INSERT INTO access(hostname,Counting,lastDate)
values('"+host+"',"+numAccesses+","+date+")");
  s.close();
  }
  catch(Exception e){
  System.out.println("Something is wrong");
  }
  }

  protected static void testDriver() throws Exception {
  //Some database stuff
  }
  protected static Connection getConnection() throws Exception {
  //Some database stuff
  }

}

**
deploy.wsdd // I might have made a mistake here?
**
http://xml.apache.org/axis/wsdd/";
  xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>




http://localhost:8080/example4/service"/>





 







*

Weak-Typed Collections and .Net, got it!

2005-03-01 Thread Muhammad Alsebaeyie
Hi,
I had a specific problem that I wanted to make an axis service that 
sends a complex object containing weak-typed collections, specifically 
java.util.Set and java.util.List... I needed the service to interoperate 
with .Net and I had no control over the class structure.
Everything I read said this was a bad Idea, but I finally got it to 
work,so I  thought I'd share...
First, I used Axis 1.2RC2, Axis 1.1 doesn't work.
I used the java2wsdl->wsdl2java method, I didn't build everything by hand.

Now, Axis 1.2RC2 generates a wrapper for all collections which it 
encounters mapping it into an array of xsd:anyType, the name of the 
wrapper complex type is (Array of XSD anytype).

There are two problems with that wrapper:
1-there is bug in Axis that makes the bean serializer stop at 
java.util.* (I think), so the resulting wsdl has a namespace (tnX) where 
x is an arbitrary number depending on your class structure that doesn't 
exist...
2-Even if you fix the above, the problem is that .Net doesn't like array 
warppers, so it doesn't work correctly

so what I did is comment the complex type wrapper, and in every element 
that was an array, I added maxOccurs="unbounded' and minOccurs="0" and 
made it of type wsdl:type="xsd:anyType"

The only problem left is that we must also include in the WSDL the 
classes that we will cast the resulting Object[] to, which may not be 
included by default because the types are weak, so I added these to the 
extraclasses parameter in java2wsdl.

Now the wsdl is ok, but if we generate the service from it, it will make 
all the class structure again and convert all collections into arrays of 
Object[], which was not desirable in my case, so I used helpergen="true" 
in wsdl2java to separate the axis metadata from the actual classes, and 
I only used those helper classes coupled with the original class 
structure in the service.

And it works! tested on both a java and a .Net client and the client 
recieves an array of Object[] that it understands it can cast into the 
desired object...

take care though that the wsdl generated from using ?wsdl 
will be the original not-working one, so the only shortcoming here is 
that I have to move the wsdl manually.

Hope this helps people and the Axis team...
--
Best Regards,
Muhammad Alsebaeyie
---
[This E-mail scanned for viruses by F-Prot]


RE: ws-security

2005-03-01 Thread Daniela CLARO



One more question...
How can I encrypt the 
soap header in order to guarantee the encryption between soap message, from a 
client requisition to a web service.  Can I do that using W3C Enc? 

 
Thank you 
again
Daniela

RE: "no serializer found" when using custom serializer problems

2005-03-01 Thread Jay Glanville
I changed my server-config.wsdd to the following:


testing of service functionality



http://test.admin.epi.slt.nci.com";
languageSpecificType="java:com.nci.slt.epi.admin.test.Obj"
serializer="com.nci.slt.epi.admin.test.ObjSerializerFactory"
 
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
encodingStyle=""/>


And I still get the same fault: no serializer found.

Thanks for trying Airline.

JDG

> -Original Message-
> From: Airline Pedestal [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 28, 2005 8:51 PM
> To: axis-user@ws.apache.org
> Subject: Re: "no serializer found" when using custom 
> serializer problems
> 
> 
> 
> I think your encodingStyle should be
> set to empty string ("").
> 
> 
> --- Jay Glanville
> <[EMAIL PROTECTED]> wrote:
> 
> > Hello all 
> > 
> > I'm trying to write my own serializer/deserializer. 
> > So, on that
> > education path, I'm taking rather small steps.  I've
> > got a small bean
> > (one attribute), a test service (that uses that
> > bean), a rather simple
> > serializer (that extends SimpleSerializer) and a
> > rather simple
> > serializer factory (that mimics
> > SimpleSerializerFactory).
> > 
> > The problem is that when I call a method on my
> > service, I get a "no
> > serializer found" error.  Why is this?  What am I
> > missing here?
> > 
> > I'm using Axis 1.2rc2 as an web service embedded
> > into my web
> > application.
> > 
> > The service's definition inside my
> > server-config.wsdd is:
> >  > style="rpc">
> > 
> > testing of service functionality
> > 
> >  > value="com.nci.slt.epi.admin.test.TestService"/>
> > 
> >  >
> > xmlns:ns="http://test.admin.epi.slt.nci.com";
> >
> >
> languageSpecificType="java:com.nci.slt.epi.admin.test.Obj"
> >
> >
> serializer="com.nci.slt.epi.admin.test.ObjSerializerFactory"
> >  
> >
> deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
> >
> >
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
> > 
> > 
> > 
> > I'm calling my service through a URL like this:
> >
> http://jglanville01/webadmin/services/test?method=getObjs
> > And am getting the following response:
> > AXIS error
> > 
> > Sorry, something seems to have gone wrong...
> > here are the details:
> > 
> > Fault - ; nested exception is: 
> > java.io.IOException: No serializer found for class
> > com.nci.slt.epi.admin.test.Obj in registry
> >
> [EMAIL PROTECTED]
> > 
> > AxisFault
> >  faultCode:
> >
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> >  faultSubcode: 
> >  faultString: java.io.IOException: No serializer
> > found for class
> > com.nci.slt.epi.admin.test.Obj in registry
> >
> [EMAIL PROTECTED]
> >  faultActor: 
> >  faultNode: 
> >  faultDetail: 
> > {http://xml.apache.org/axis/}hostname:JGLANVILLE01
> > 
> > 
> > 
> > Now, I know that my serializer factory is being
> > called (placed a
> > breakpoint in the factory's constructor) and that
> > none of the
> > serializer's methods are being called.
> > 
> > 
> > I've attached my service's implementation
> > (TestService.java), my bean
> > (Obj.java), my serializer (ObjSerializer.java) and
> > my serializer factory
> > (ObjSerializerFactory.java).
> > 
> > All help would be appreciated.
> > 
> > Thanks
> > 
> >  
> > ---
> > Jay Glanville
> > 
> 
> > ATTACHMENT part 2 application/octet-stream
> name=Obj.java
> 
> 
> > ATTACHMENT part 3 application/octet-stream
> name=ObjSerializer.java
> 
> 
> > ATTACHMENT part 4 application/octet-stream
> name=ObjSerializerFactory.java
> 
> 
> > ATTACHMENT part 5 application/octet-stream
> name=TestService.java
> 
> 
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Yahoo! Mail - Easier than ever with enhanced search. Learn more.
> http://info.mail.yahoo.com/mail_250
> 


How to reflect changes made in wsdl

2005-03-01 Thread Terance Dias
Hi,
 I'm using WSAD5.1.2 and deploying a simple service using IBM websphere v5 runtime. After the wsdl is generated, if I make changes in it, how can I get the service to reflect it?
Any help will be appreciated
Terance.
		Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.

RE: java stand-alone axis client

2005-03-01 Thread JR Ruggentaler
For very small Web service client that interoperates with Axis you may want to 
consider kSoap. KSoap seems to be a good choice for J2ME and works on J2SE. The 
jar is about 100k and contains everything.

http://ksoap.objectweb.org/

J.R.

-Original Message-
From: Kevin Duffey [mailto:[EMAIL PROTECTED]
Sent: Monday, February 28, 2005 10:10 PM
To: axis-user@ws.apache.org
Subject: Re: java stand-alone axis client


I've another thread regarding this very same issue.
I'd love a "quick" snippet of code that shows me the
"basics" of a client webservice call. Is it simply put
axis.jar in the classpath and use the Service, Call
and so forth? Is this a wrapper around JAX-RPC? Or
does this tie me to Axis? I don't think I'll move from
axis, but in case I do, I don't want to record
hundreds of calls to a new framework. I am hoping
there is a basic "generic" way to call web services
from a swing client and then use the library of
choice? Any chance you can provide a snippet of code?
I actually have a web services book on order, but the
dang thing is a week out before I get it and I am
dying to see something work!! :)

Thanks.

--- Sunil Kothari <[EMAIL PROTECTED]> wrote:

> Hi,
>  I think using DII to invoke a web service will
> greatly reduce the size 
> of code. But if you are using custom exception
> handling then you might 
> have to think twice before going for it.
> 
> Sunil Kothari 
> 
> DISCLAIMER:  
>  Any Information contained or transmitted in this
> e-mail and / or 
> attachments may contain confidential data,
> proprietary to Majoris 
> Systems Pvt Ltd., and / or the authors of the
> information and is  
> intended for use only by the individual or entity to
> which it is 
> addressed. If you are not the intended recipient or
> email appears 
> to have been sent to you by error, you are not
> authorised to access, 
> read, disclose, copy, use or otherwise deal with it.
> If you 
> have received this e-mail in error, please notify us
> immediately at 
> mail to: [EMAIL PROTECTED] and delete this mail
> from your records.
> 
> This is to notify that Majoris Systems Pvt Limited
> shall have no  
> liability or obligation, legal or otherwise, for any
> errors, 
> omissions, viruses or computer problems experienced
> as a result of  
> this transmission since data over the public
> Internet cannot be  
> guaranteed to be secure or error-free. 
> 
> - Original Message -
> From: "Dr Leinster" <[EMAIL PROTECTED]>
> Date: Monday, February 28, 2005 11:51 pm
> Subject: java stand-alone axis client
> 
> > Hi,
> > 
> > I want to use a light version of axis to call
> webservices in a 
> > client =
> > application...
> > Size of the final application is an important
> factor for me.
> > I am only interested in the client side of axis.
> > Is there a way to reduce the dependecies and axis
> package size to 
> > only =
> > have what I need.
> > 
> > thanks for your help.
> > 
> > DrLeinster.
> > 
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250


I am using the free version of SPAMfighter for private users.
It has removed 959 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!



ANNOUNCE : Axis 1.2 Release Candidate 3

2005-03-01 Thread Glen Daniels
Hi all:
The Axis team would like to announce the release of Axis 1.2's third (and 
final) Release Candidate.  This will be the LAST RC before 1.2 goes out.  We 
expect to cut the final release in about a week's time (March 9th-10th).

This release has passed the JAX-RPC and SAAJ TCKs (barring a couple of tests 
we are challenging because we feel they are incorrect).  Lots of changes for 
better doc/lit data binding, bug fixes (including workarounds for .NET 
problems), etc.

You can find it at:
http://www.apache.org/dist/ws/axis/1_2RC3/
Please pull it down, kick the tires, and forward any comments to 
[EMAIL PROTECTED]

Thanks,
--Glen on behalf of the Axis team


RE: ANNOUNCE : Axis 1.2 Release Candidate 3

2005-03-01 Thread Ephemeris Lappis
Hello, Axis Team !

I had reported some bugs few months ago (all about document/literal style).
Since i have had no notification from JIRA about these issues, should
somebody confirm that they are all fixed in this very new version. In this
case, closing fixed issue should help all the community... and me !!!
Thanks again.

--
Ephemeris Lappis

>>> -Message d'origine-
>>> De : Glen Daniels [mailto:[EMAIL PROTECTED]
>>> Envoyé : mardi 1 mars 2005 16:14
>>> À : axis-dev@ws.apache.org; axis-user@ws.apache.org;
>>> [EMAIL PROTECTED]
>>> Objet : ANNOUNCE : Axis 1.2 Release Candidate 3
>>>
>>>
>>> Hi all:
>>>
>>> The Axis team would like to announce the release of Axis 1.2's
>>> third (and
>>> final) Release Candidate.  This will be the LAST RC before 1.2
>>> goes out.  We
>>> expect to cut the final release in about a week's time (March 9th-10th).
>>>
>>> This release has passed the JAX-RPC and SAAJ TCKs (barring a
>>> couple of tests
>>> we are challenging because we feel they are incorrect).  Lots
>>> of changes for
>>> better doc/lit data binding, bug fixes (including workarounds for .NET
>>> problems), etc.
>>>
>>> You can find it at:
>>>
>>> http://www.apache.org/dist/ws/axis/1_2RC3/
>>>
>>> Please pull it down, kick the tires, and forward any comments to
>>> [EMAIL PROTECTED]
>>>
>>> Thanks,
>>> --Glen on behalf of the Axis team



RE: ANNOUNCE : Axis 1.2 Release Candidate 3

2005-03-01 Thread Jay Glanville
Glen & Axis development team.

If I could make a minor suggestion: could you put the changelog.html
file in the binary distribution?  The release-notes.html file has a link
to the changelog.html file, but apparently that's only distributed with
the src distribution.

JDG

> -Original Message-
> From: Glen Daniels [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 01, 2005 10:14 AM
> To: axis-dev@ws.apache.org; axis-user@ws.apache.org; 
> [EMAIL PROTECTED]
> Subject: ANNOUNCE : Axis 1.2 Release Candidate 3
> 
> Hi all:
> 
> The Axis team would like to announce the release of Axis 
> 1.2's third (and 
> final) Release Candidate.  This will be the LAST RC before 
> 1.2 goes out.  We 
> expect to cut the final release in about a week's time (March 
> 9th-10th).
> 
> This release has passed the JAX-RPC and SAAJ TCKs (barring a 
> couple of tests 
> we are challenging because we feel they are incorrect).  Lots 
> of changes for 
> better doc/lit data binding, bug fixes (including workarounds 
> for .NET 
> problems), etc.
> 
> You can find it at:
> 
> http://www.apache.org/dist/ws/axis/1_2RC3/
> 
> Please pull it down, kick the tires, and forward any comments to 
> [EMAIL PROTECTED]
> 
> Thanks,
> --Glen on behalf of the Axis team
> 


Re: How to reflect changes made in wsdl

2005-03-01 Thread Terance Dias
Hi,
 I have a wsdl that looks something like this:
 

xml version="1.0" encoding="UTF-8"?>








sequence>
complexType>
element>




sequence>
complexType>
element>

schema>
wsdl:types>


wsdl:message>



wsdl:message>




wsdl:operation>
wsdl:portType>






wsdlsoap:header>

wsdl:input>


wsdl:output>
wsdl:operation>
wsdl:binding>



wsdl:port>
wsdl:service>
wsdl:definitions>
The server console shows an error saying that
[3/1/05 20:43:56:952 IST] 3d6b06b3 SystemErr R WSWS3155E: Error: a not found as an input part OR an output part.
[3/1/05 20:43:56:952 IST] 3d6b06b3 SystemErr R WSWS3155E: Error: b not found as an input part OR an output part.
[3/1/05 20:43:57:031 IST] 3d6b06b3 WSDDPort E com.ibm.ws.webservices.engine.deployment.wsdd.WSDDPort WSWS3351E: Error: Unable to deploy typemapping: {http://service}>calcuateSum
[3/1/05 20:43:57:062 IST] 3d6b06b3 WSDDPort E com.ibm.ws.webservices.engine.deployment.wsdd.WSDDPort TRAS0014I: The following exception was logged java.lang.ClassNotFoundException: service.CalcuateSum.
 
Please suggest how I should change my wsdl to fix this problem
 babloosony <[EMAIL PROTECTED]> wrote:
wsdl is for ur client. u dont need to do anything in wsdl to redeployur service. just redeploy ur service may be by generating new skeletonand stubs.On Tue, 1 Mar 2005 06:18:18 -0800 (PST), Terance Dias<[EMAIL PROTECTED]>wrote:> Hi,> I'm using WSAD5.1.2 and deploying a simple service using IBM websphere> v5 runtime. After the wsdl is generated, if I make changes in it, how can I> get the service to reflect it?> Any help will be appreciated> Terance.> > > Do you Yahoo!?> Yahoo! Mail - Easier than ever with enhanced search. Learn more. > >
		Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search. Learn more.

RE: "no serializer found" when using custom serializer problems

2005-03-01 Thread Airline Pedestal


Which method are you calling?   getObjs?
getObj?   getObjs doesn't return Obj.
maybe that's the problem?



--- Jay Glanville
<[EMAIL PROTECTED]> wrote:

> I changed my server-config.wsdd to the following:
>  style="rpc">
> 
> testing of service functionality
> 
>  value="com.nci.slt.epi.admin.test.TestService"/>
> 
> 
> xmlns:ns="http://test.admin.epi.slt.nci.com";
>
>
languageSpecificType="java:com.nci.slt.epi.admin.test.Obj"
>
>
serializer="com.nci.slt.epi.admin.test.ObjSerializerFactory"
>  
>
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
> encodingStyle=""/>
> 
> 
> And I still get the same fault: no serializer found.
> 
> Thanks for trying Airline.
> 
> JDG
> 
> > -Original Message-
> > From: Airline Pedestal
> [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, February 28, 2005 8:51 PM
> > To: axis-user@ws.apache.org
> > Subject: Re: "no serializer found" when using
> custom 
> > serializer problems
> > 
> > 
> > 
> > I think your encodingStyle should be
> > set to empty string ("").
> > 
> > 
> > --- Jay Glanville
> > <[EMAIL PROTECTED]> wrote:
> > 
> > > Hello all 
> > > 
> > > I'm trying to write my own
> serializer/deserializer. 
> > > So, on that
> > > education path, I'm taking rather small steps. 
> I've
> > > got a small bean
> > > (one attribute), a test service (that uses that
> > > bean), a rather simple
> > > serializer (that extends SimpleSerializer) and a
> > > rather simple
> > > serializer factory (that mimics
> > > SimpleSerializerFactory).
> > > 
> > > The problem is that when I call a method on my
> > > service, I get a "no
> > > serializer found" error.  Why is this?  What am
> I
> > > missing here?
> > > 
> > > I'm using Axis 1.2rc2 as an web service embedded
> > > into my web
> > > application.
> > > 
> > > The service's definition inside my
> > > server-config.wsdd is:
> > >  > > style="rpc">
> > > 
> > > testing of service functionality
> > > 
> > >  > > value="com.nci.slt.epi.admin.test.TestService"/>
> > >  value="*"/>
> > >  > >
> > > xmlns:ns="http://test.admin.epi.slt.nci.com";
> > >
> > >
> >
>
languageSpecificType="java:com.nci.slt.epi.admin.test.Obj"
> > >
> > >
> >
>
serializer="com.nci.slt.epi.admin.test.ObjSerializerFactory"
> > >  
> > >
> >
>
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
> > >
> > >
> >
>
encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
> > > 
> > > 
> > > 
> > > I'm calling my service through a URL like this:
> > >
> >
>
http://jglanville01/webadmin/services/test?method=getObjs
> > > And am getting the following response:
> > > AXIS error
> > > 
> > > Sorry, something seems to have gone wrong...
> > > here are the details:
> > > 
> > > Fault - ; nested exception is: 
> > >   java.io.IOException: No serializer found for
> class
> > > com.nci.slt.epi.admin.test.Obj in registry
> > >
> >
>
[EMAIL PROTECTED]
> > > 
> > > AxisFault
> > >  faultCode:
> > >
> >
>
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> > >  faultSubcode: 
> > >  faultString: java.io.IOException: No
> serializer
> > > found for class
> > > com.nci.slt.epi.admin.test.Obj in registry
> > >
> >
>
[EMAIL PROTECTED]
> > >  faultActor: 
> > >  faultNode: 
> > >  faultDetail: 
> > > 
> {http://xml.apache.org/axis/}hostname:JGLANVILLE01
> > > 
> > > 
> > > 
> > > Now, I know that my serializer factory is being
> > > called (placed a
> > > breakpoint in the factory's constructor) and
> that
> > > none of the
> > > serializer's methods are being called.
> > > 
> > > 
> > > I've attached my service's implementation
> > > (TestService.java), my bean
> > > (Obj.java), my serializer (ObjSerializer.java)
> and
> > > my serializer factory
> > > (ObjSerializerFactory.java).
> > > 
> > > All help would be appreciated.
> > > 
> > > Thanks
> > > 
> > >  
> > > ---
> > > Jay Glanville
> > > 
> > 
> > > ATTACHMENT part 2 application/octet-stream
> > name=Obj.java
> > 
> > 
> > > ATTACHMENT part 3 application/octet-stream
> > name=ObjSerializer.java
> > 
> > 
> > > ATTACHMENT part 4 application/octet-stream
> > name=ObjSerializerFactory.java
> > 
> > 
> > > ATTACHMENT part 5 application/octet-stream
> > name=TestService.java
> > 
> > 
> > 
> > 
> > 
> > __ 
> > Do you Yahoo!? 
> > Yahoo! Mail - Easier than ever with enhanced
> search. Learn more.
> > http://info.mail.yahoo.com/mail_250
> > 
> 




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 


RE: Dime Attachments

2005-03-01 Thread Shawn Konopinsky
Is there anything special which has to be done at the client end to receive
DIME attachments (in comparison to what is done to get MIME attachments)?

Shawn.

> -Original Message-
> From: Flores, Raul [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 28, 2005 5:16 PM
> To: axis-user@ws.apache.org
> Subject: RE: Dime Attachments
>
>
>
> I used the following test code to return various size files formated
> DIME from a server, and it worked (lookes like what you have). If I
> remember correctly, looking at messages via TCPMonitor, the message with
> DIME looks bizarro (as compared to MIME). So if you are saying that
> things do not work because of the message format (as listed below);
> possibly things are working?
>
>
> Raul
>
>
>
>
>  public com.lmtas.swa.services.DimResData
> getDime(com.lmtas.swa.services.DimReqData parameters) throws
> java.rmi.RemoteException {
>
> DimResData drd = new DimResData("Your file is attached DIME ");
> MessageContext msgContext = MessageContext.getCurrentContext();
> Message msg = msgContext.getResponseMessage();
>
> msg.getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_DIME);
> AttachmentPart part = new AttachmentPart(new DataHandler(new
> FileDataSource("c:/java/testFile.txt")));
> part.setContentId("testFile.txt");
> msg.addAttachmentPart(part);
> // 2.5M
> part = new AttachmentPart(new DataHandler(new
> FileDataSource("C:/Documents and Settings/My
> Documents/Understanding_Web_Services_Security.pdf")));
> part.setContentId("Understanding_Web_Services_Security.pdf");
> msg.addAttachmentPart(part);
> // 15M
> // part = new AttachmentPart(new DataHandler(new
> FileDataSource("C:/Documents and Settings/My Documents/My
> Downloads/axis-1_2beta3-src.zip")));
> // 410M
> // part = new AttachmentPart(new DataHandler(new
> FileDataSource("C:/Documents and Settings/My
> Documents/en_office_2003_pro.iso")));
>
> return drd;
> }
>
> -Original Message-
> From: Shawn Konopinsky [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 28, 2005 3:26 PM
> To: axis-user@ws.apache.org
> Subject: Dime Attachments
>
> I have what seems to be a problem with send DIME attachments in SOAP.
>
> Mime works just fine for me when I use the following to set the send
> type:
> reply.getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_MIME).
>
> However, when I make the simple modification to the line above to use
> DIME as the send type (replace Attachments.SEND_TYPE_MIME with
> Attachments.SEND_TYPE_DIME), it doesn't work.
>
> Is there anything additional that I have to do aside from setting the
> attachment type to DIME to switch between a MIME and DIME attachment
> type?
>
> I am viewing the request/response through Axis' TCP Tunnel viewer. When
> I run through a request with DIME, the response from the server looks
> like
> this:
> 
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=754354ADC18D3D950CEACF80F0191805; Path=/bind
> Content-Type: application/dime;charset=utf-8
> Date: Mon, 28 Feb 2005 20:50:51 GMT
> Server: Apache-Coyote/1.1
> Connection: close
>
> >  "xsd:int">1
>see attachment
>(+(+RecordType:(interaction complex
> pathway ) +(gi:(4757840  -((+BINDInteraction.a.type:"not
> specified" +BINDInteraction.a.shortlabel:"Unknown")
> (+BINDInteraction.b.type:"not specified"
> +BINDInteraction.b.shortlabel:"Unknown"))
>xml
>   
>  
> 
> 
>
> As you can see it seems as if the response is malformed. Not sure if
> this is a result of the problem, or something wrong with the proxy that
> I am using to view the response. It is stumping me because MIME works
> fine, and DIME give me the weird result above. No exceptions seem to be
> thrown from the SOAP server.
>
> Has anyone else had a problem like this or know how I might troubleshoot
> it?
>
>



Re: why Axis doesn't preserve Inheritance ?

2005-03-01 Thread Eugene Shershnev
It must be complexType/complexContent (you don't have complexContent)

Something like this:


  

  


  

  


- Original Message - 
From: "babloosony" <[EMAIL PROTECTED]>
To: ; 
Sent: Tuesday, March 01, 2005 7:02a
Subject: why Axis doesn't preserve Inheritance ?


> Hi All,
>
> I am using AXIS 1.2 RC2 and trying to expose an EJB as web service
> with below wsdl which is somewhat handcrafted  to support java
> collections using my custom AXIS (De)Serialzers.
>
> --
---
> 
> http://schemas.xmlsoap.org/wsdl/";
> xmlns:impl="http://ws.sosnoski.com/wsdl/wroxaxis/appendixb";
> xmlns:intf="http://ws.sosnoski.com/wsdl/wroxaxis/appendixb";
> xmlns:apachesoap="http://xml.apache.org/xml-soap";
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:tns1="http://ws.sosnoski.com/schemas/wroxaxis/appendixb";
> targetNamespace="http://ws.sosnoski.com/wsdl/wroxaxis/appendixb";>
> 
> http://ws.sosnoski.com/schemas/wroxaxis/appendixb";
> elementFormDefault="qualified"
> xmlns:tns="http://ws.sosnoski.com/schemas/wroxaxis/appendixb";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns="http://www.w3.org/2001/XMLSchema";>
>
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  type="xsd:string"/>
> 
> 
> 
> 
> 
> 
> 
>
> 
> http://www.w3.org/2001/XMLSchema";
> targetNamespace="http://ws.sosnoski.com/wsdl/wroxaxis/appendixb";
> elementFormDefault="qualified">
> http://ws.sosnoski.com/schemas/wroxaxis/appendixb"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  type="impl:SparePartPriceSessionInterface">
>  transport="http://schemas.xmlsoap.org/soap/http"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  binding="impl:SparePartPriceSessionBinding">
>  location="http://localhost:/axis/services/SparePartPriceSession"/>
> 
> 
> 
> 
> --
---
>
>
>
> I have 2 questions here now.
>
> 1. Even though the above WSDL is "validated ok" by WSAD'S WSDL
> Validator, Altova's XMLSpy say it is invalid and reports an error
> "Unexpected element 'extension' in element 'complexType'. Can anyone
> please tell me why is this error occurring ?Is my WSDL correct
> ?
>
>
> 2. I have taken the above WSDL and feeded to axis to generate stubs
> but AXIS does not preserve inheritance among  Forecast class and its
> super class ParentForecast class. The Forecast java file does not
> extend ParentForecast class.  Why is this strange behavior from AXIS's
> WSDL2Java Code Generator ?
>
>
>
>
>
> Thanks & Regards,
> Kumar.


error when trying to connect to ws generated using axis

2005-03-01 Thread Paul Thomas








Hi there, this is my first
mail to the list, so please forgive me if this is old hack. I’m a bit
green behind the ears when it comes to this mailing list. 

 

The story is that I am
receiving the following error when I try to connect to my web service. The
error is the following:

 

[Axis Fault re]:
(404)/household_ss2/published_services/HouseHold

 

I don’t understand why
I am getting a 404. I mean, I have generated the wsdl
and the stubs/client part with the axis-ant task. My wsdl
is the following when I connect to the specified url:

 

    

-

    



 

   wsdl:message>

-

    



wsdl:message>

-

    

-

    





wsdl:operation>

wsdl:portType>

-

    



-

    



-

    



wsdl:input>

-

    



wsdl:output>

wsdl:operation>

wsdl:binding>

-

    

-

    



wsdl:port>

wsdl:service>

wsdl:definitions>

 

 

I mean it is very simple. I
have a class HouseholdReceiver  that has a
method getAnswerRequest  that returns a string. 

Can anybody help me here? I would
really appreciate it. 

 

Thanks,

 

Paul








RE: "no serializer found" when using custom serializer problems

2005-03-01 Thread Jay Glanville
It doesn't matter witch method I call.  I've tried both methods using
both
http://jglanville01/webadmin/services/test?method=getObj&i=1 for
getObj(int) and
http://jglanville01/webadmin/services/test?method=getObjs for getObjs(),
and both times, I get the "no serializable found" error.


Thanks

JDG

> -Original Message-
> From: Airline Pedestal [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 01, 2005 11:01 AM
> To: axis-user@ws.apache.org
> Subject: RE: "no serializer found" when using custom 
> serializer problems
> 
> 
> 
> Which method are you calling?   getObjs?
> getObj?   getObjs doesn't return Obj.
> maybe that's the problem?
> 
> 
> 
> --- Jay Glanville
> <[EMAIL PROTECTED]> wrote:
> 
> > I changed my server-config.wsdd to the following:
> >  > style="rpc">
> > 
> > testing of service functionality
> > 
> >  > value="com.nci.slt.epi.admin.test.TestService"/>
> > 
> >  >
> > xmlns:ns="http://test.admin.epi.slt.nci.com";
> >
> >
> languageSpecificType="java:com.nci.slt.epi.admin.test.Obj"
> >
> >
> serializer="com.nci.slt.epi.admin.test.ObjSerializerFactory"
> >  
> >
> deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
> > encodingStyle=""/>
> > 
> > 
> > And I still get the same fault: no serializer found.
> > 
> > Thanks for trying Airline.
> > 
> > JDG
> > 
> > > -Original Message-
> > > From: Airline Pedestal
> > [mailto:[EMAIL PROTECTED] 
> > > Sent: Monday, February 28, 2005 8:51 PM
> > > To: axis-user@ws.apache.org
> > > Subject: Re: "no serializer found" when using
> > custom 
> > > serializer problems
> > > 
> > > 
> > > 
> > > I think your encodingStyle should be
> > > set to empty string ("").
> > > 
> > > 
> > > --- Jay Glanville
> > > <[EMAIL PROTECTED]> wrote:
> > > 
> > > > Hello all 
> > > > 
> > > > I'm trying to write my own
> > serializer/deserializer. 
> > > > So, on that
> > > > education path, I'm taking rather small steps. 
> > I've
> > > > got a small bean
> > > > (one attribute), a test service (that uses that
> > > > bean), a rather simple
> > > > serializer (that extends SimpleSerializer) and a
> > > > rather simple
> > > > serializer factory (that mimics
> > > > SimpleSerializerFactory).
> > > > 
> > > > The problem is that when I call a method on my
> > > > service, I get a "no
> > > > serializer found" error.  Why is this?  What am
> > I
> > > > missing here?
> > > > 
> > > > I'm using Axis 1.2rc2 as an web service embedded
> > > > into my web
> > > > application.
> > > > 
> > > > The service's definition inside my
> > > > server-config.wsdd is:
> > > >  > > > style="rpc">
> > > > 
> > > > testing of service functionality
> > > > 
> > > >  > > > value="com.nci.slt.epi.admin.test.TestService"/>
> > > >  > value="*"/>
> > > >  > > >
> > > > xmlns:ns="http://test.admin.epi.slt.nci.com";
> > > >
> > > >
> > >
> >
> languageSpecificType="java:com.nci.slt.epi.admin.test.Obj"
> > > >
> > > >
> > >
> >
> serializer="com.nci.slt.epi.admin.test.ObjSerializerFactory"
> > > >  
> > > >
> > >
> >
> deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
> > > >
> > > >
> > >
> >
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
> > > > 
> > > > 
> > > > 
> > > > I'm calling my service through a URL like this:
> > > >
> > >
> >
> http://jglanville01/webadmin/services/test?method=getObjs
> > > > And am getting the following response:
> > > > AXIS error
> > > > 
> > > > Sorry, something seems to have gone wrong...
> > > > here are the details:
> > > > 
> > > > Fault - ; nested exception is: 
> > > > java.io.IOException: No serializer found for
> > class
> > > > com.nci.slt.epi.admin.test.Obj in registry
> > > >
> > >
> >
> [EMAIL PROTECTED]
> > > > 
> > > > AxisFault
> > > >  faultCode:
> > > >
> > >
> >
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> > > >  faultSubcode: 
> > > >  faultString: java.io.IOException: No
> > serializer
> > > > found for class
> > > > com.nci.slt.epi.admin.test.Obj in registry
> > > >
> > >
> >
> [EMAIL PROTECTED]
> > > >  faultActor: 
> > > >  faultNode: 
> > > >  faultDetail: 
> > > > 
> > {http://xml.apache.org/axis/}hostname:JGLANVILLE01
> > > > 
> > > > 
> > > > 
> > > > Now, I know that my serializer factory is being
> > > > called (placed a
> > > > breakpoint in the factory's constructor) and
> > that
> > > > none of the
> > > > serializer's methods are being called.
> > > > 
> > > > 
> > > > I've attached my service's implementation
> > > > (TestService.java), my bean
> > > > (Obj.java), my serializer (ObjSerializer.java)
> > and
> > > > my serializer factory
> > > > (ObjSerializerFactory.java).
> > > > 
> > > > All help would be appreciated.
> > > > 
> > > > Thanks
> > > > 
> > > >  
> > > > ---
> > > > Jay 

where to put the wsdd

2005-03-01 Thread Paul Thomas








Hi there,

To what directory should I
deploy the deploy.wsdd file.
I am using Tomcat 5.0.28

Thanks a million,

Paul








Dime and WSDL

2005-03-01 Thread Shawn Konopinsky
Right now I have a SOAP service where the user is able to request the
attachment type (MIME vs DIME), via the soap call, that data should be sent
back as.

When the user requests the MIME attachment, it works without any problem.
When the user requests DIME attachment, the attachment seems to be created
just fine on the server end, but is never received by the client :/

I'm wondering if there must be a difference in the WSDL for the client to
realize a DIME attachment vs. a MIME attachment.

Shawn.



Re : Using ant task to deploy services

2005-03-01 Thread Sebastien Mayemba Mbokoso
While deploying a war on JBoss, if your war doesn't contain a
server-config.wdd, Axis engine creates it automatically in its tmp
directories. So deploy all your web services. Then copy the
server-config.wsdd generated in your WEB-INF. Repackage your war and
redeploy it in Jboss.

On Tue, 1 Mar 2005 05:28:23 -0500, Koney, Satish
<[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> Can someone tell me what is the ideal way of deploying a web service
> using ant task?
> 
> Following is how I am doing it now: (Each step is a separate task)
> 
> 1. compile the project and build the war file
> 
> 2. copy the war file into JBoss server/default/deploy/webapps directory
> (This is to deploy the war file)
> 
> 3. deploy the webservice using adminClient ant task ( In the second step,
> only the war file is deployed, not the service)
> 
> But the problem I am facing is, each time I restart my server, I need to
> redeploy the web service.
> 
> If my application is in the form of a directory (WebService.war directory) ,
> when I deploy the service, it is creating a server-config.wsdd file in my
> WEB-INF directory.
> 
> But if it is a war file, that file is not created, but the service is
> deployed.I do not understand where it is keeping all the web service
> information.
> 
> So can someone please me tell me how i deploy the web service using ant
> task?
> 
> Thanks,
> .
> 
> 
> Confidential:  This electronic message and all contents contain information
> from Syntel, Inc. which may be privileged, confidential or otherwise
> protected from disclosure. The information is intended to be for the
> addressee only. If you are not the addressee, any disclosure, copy,
> distribution or use of the contents of this message is prohibited.  If you
> have received this electronic message in error, please notify the sender
> immediately and destroy the original message and all copies.
>


object as parameter

2005-03-01 Thread Suzy Fynes








 

Hi,

 

Can anyone tell if there is a
different approach to adding a java bean (simple types) as a parameter for an
axis web service using a java client.

 

For strings and ints the following is used

 

call.addParameter("name", XMLType.XSD_STRING,
ParameterMode.IN);

 

what would be used if the parameter is
an bean object?

 

Thanks

Suzy








ANNOUNCE: WSABI For Axis v1.0 RC1 has been released

2005-03-01 Thread Mike Barton
Hello Axis Users,
WSABI For Axis 1.0 RC1, a new version of the leading open source Web 
services  management (WSM) product has been released. It is now 
available in source and binary form Source Forge pages at Source Forge.

The latest version of WSABI For Axis includes a brand new security 
module with "1-Click Security" feature.  Users no longer need to 
manually edit deployment configuration files to secure Web services. 
Also included in this release is a new performance charting feature that 
enables you to easily view response times on an ongoing basis as your 
Web services process requests.

This is a Release Candidate snapshot of the latest development tree, 
adding new features and fixing recently discovered bugs.

Live Demo:http://demo.wsabi.org
Download :http://sourceforge.net/projects/wsabi4axis
---
NOTE: This is Release Candidate release. This build passes most of our 
test suite and fixes a lot of reported bugs found in the previous 
versions. However, please be aware that this is not a production WSABI 
release. There are still some open issues and critical bugs that affect 
 this release as well.

We are actively working to fix these issues and will make a new release 
where these are fixed as soon as possible. This snapshot gives you an 
opportunity for testing and evaluating the upcoming WSABI for Axis 
version 1.0.


Does there exist a patch for Axis Ant Task 1.1 ?

2005-03-01 Thread Sebastien Mayemba Mbokoso
All is in the title. Because no compatibility between stubs generated
by Axis 1.2RC2 and
Axis 1.1. I have to use Axis 1.1 Ant Tasks. I noticed i can't use the
Ant script i created for
Axis 1.2RC2 with the Axis 1.1 Ant Tasks :

Java2WSDL:
 [echo] ==] Generation du WSDL en cours... [==
[axis-java2wsdl] Java2WSDL
fr.gouv.finances.copernic.mas.stf.service.ihm.machine.IHMMachine
[axis-java2wsdl] AxisFault
[axis-java2wsdl]  faultCode:
{http://xml.apache.org/axis/}Server.generalException
[axis-java2wsdl]  faultSubcode:
[axis-java2wsdl]  faultString: Attempted to write schema for bad QName
(no namespace) : fault
[axis-java2wsdl]  faultActor:
[axis-java2wsdl]  faultNode:
[axis-java2wsdl]  faultDetail:
[axis-java2wsdl]{http://xml.apache.org/axis/}stackTrace: AxisFault
[axis-java2wsdl]  faultCode:
{http://xml.apache.org/axis/}Server.generalException
[axis-java2wsdl]  faultSubcode:
[axis-java2wsdl]  faultString: Attempted to write schema for bad QName
(no namespace) : fault
[axis-java2wsdl]  faultActor:
[axis-java2wsdl]  faultNode:
[axis-java2wsdl]  faultDetail:
[axis-java2wsdl]
[axis-java2wsdl] Attempted to write schema for bad QName (no namespace) : fault
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Types.writeSchemaElement(Types.java:656)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1368)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.writeFaultMessage(Emitter.java:1290)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:909)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:848)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:383)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:262)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:334)
[axis-java2wsdl]at
org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:252)
[axis-java2wsdl]at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[axis-java2wsdl]at org.apache.tools.ant.Task.perform(Task.java:364)
[axis-java2wsdl]at org.apache.tools.ant.Target.execute(Target.java:341)
[axis-java2wsdl]at
org.apache.tools.ant.Target.performTasks(Target.java:369)
[axis-java2wsdl]at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[axis-java2wsdl]at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[axis-java2wsdl]at org.apache.tools.ant.Main.runBuild(Main.java:673)
[axis-java2wsdl]at org.apache.tools.ant.Main.startAnt(Main.java:188)
[axis-java2wsdl]at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[axis-java2wsdl]at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[axis-java2wsdl]
[axis-java2wsdl]
[axis-java2wsdl] Attempted to write schema for bad QName (no namespace) : fault
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Types.writeSchemaElement(Types.java:656)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1368)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.writeFaultMessage(Emitter.java:1290)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:909)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:848)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:383)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:262)
[axis-java2wsdl]at
org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:334)
[axis-java2wsdl]at
org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:252)
[axis-java2wsdl]at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[axis-java2wsdl]at org.apache.tools.ant.Task.perform(Task.java:364)
[axis-java2wsdl]at org.apache.tools.ant.Target.execute(Target.java:341)
[axis-java2wsdl]at
org.apache.tools.ant.Target.performTasks(Target.java:369)
[axis-java2wsdl]at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[axis-java2wsdl]at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[axis-java2wsdl]at org.apache.tools.ant.Main.runBuild(Main.java:673)
[axis-java2wsdl]at org.apache.tools.ant.Main.startAnt(Main.java:188)
[axis-java2wsdl]at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[axis-java2wsdl]at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

BUILD FAILED
C:\workspace-2.1\STFmasDonnees\build\build.xml:119: Error while
running org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask

Does Axis Ant Task 1.1 buged ? Do can i found a patch ?

---
Sebastien


newbie: serializing deserializing nested custom object

2005-03-01 Thread fabrizio picca
This is my first post, i'm new to axis, so excuse the eventual oddness
of this question.

i wanna call a remote service like this

setTrigger(hashtable triggerMap,String urlRef,String ipRef)

The hashtable triggerMap contains  Trigger custom objects.

Those Triggers are made of String and another custom object : Event.
Event,in the end is made up of two strings and the last custom Object:
Parameter which contains only strings.

following the example found in axis documentation i've wrote down this:

QNameqnT  = new QName( endpoint , "Trigger" );
QNameqnP  = new QName( endpoint , "Parameter" );
QNameqnE  = new QName( endpoint , "Event" );

 call.registerTypeMapping(Parameter.class, qnP,
new
org.apache.axis.encoding.ser.BeanSerializerFactory(Parameter.class,
qnP),
new
org.apache.axis.encoding.ser.BeanDeserializerFactory(Parameter.class,
qnP));
 call.registerTypeMapping(Event.class, qnE,
new 
org.apache.axis.encoding.ser.BeanSerializerFactory(Event.class,
qnE),
new
org.apache.axis.encoding.ser.BeanDeserializerFactory(Event.class,
qnE));
 call.registerTypeMapping(Trigger.class, qnT,
new
org.apache.axis.encoding.ser.BeanSerializerFactory(Trigger.class ,
qnT),
new
org.apache.axis.encoding.ser.BeanDeserializerFactory(Trigger.class,
qnT));

But all i  can obtain is an Exception like:

No Deserializer for {[endpoint]}Trigger.

I hope i was quite clear in explanation.
Tanks a lot.

Fabrizio


RE: where to put the wsdd

2005-03-01 Thread Dino Chiesa



I don't think it matters?  
 
It is not handled by the server runtime.   
Instead it is a param you pass to the AXIS AdminClient , so deploy.wsdd needs to 
be accessible from the command line when you run:  
 
$  java org.apache.axis.client.AdminClient   
deploy.wsdd
 
BUT,(grinding that axe again) 
if you follow the guideline of designing your WSDL first, 
then the dpeloy.wsdd gets generated for you, and is inserted into the output 
dir, along with the java artifacts like the ServiceLocator, the Stub, etc.  
It goes in the directory corresponding to the package you specify on the 
Wsdl2Java command line. 
 
-D


From: Paul Thomas 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 11:43 
AMTo: axis-user@ws.apache.orgSubject: where to put the 
wsdd


Hi 
there,
To what 
directory should I deploy the deploy.wsdd file. I am using Tomcat 5.0.28
Thanks a 
million,
Paul


axis 1.1 Document and Wrapped style work properly?

2005-03-01 Thread Leonardo Ciman
Title: axis 1.1 Document and Wrapped style work properly?





In an article (http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-wsstyles.html) I had read that axis doesn't support document and wrapped style: 

"Our Axis walkthrough will travel down several different avenues towards a document/literal Web service. All will prove dead ends because, while Axis purports to support document/literal, it actually doesn't." 

Is it true?





Re: axis 1.1 Document and Wrapped style work properly?

2005-03-01 Thread Eugene Shershnev
Title: axis 1.1 Document and Wrapped style work properly?



That article is 15 month old :-)

  - Original Message - 
  From: 
  Leonardo Ciman 
  To: 'axis-user@ws.apache.org' 
  Sent: Tuesday, March 01, 2005 1:00p
  Subject: axis 1.1 Document and Wrapped 
  style work properly?
  
  In an article (http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-wsstyles.html) 
  I had read that axis doesn't support document and wrapped style: 
  "Our Axis walkthrough will travel down several 
  different avenues towards a document/literal Web service. All will prove dead 
  ends because, while Axis purports to support document/literal, it actually 
  doesn't." 
  Is it true? 


Re: Handmade WSDL?

2005-03-01 Thread Elaine Nance
Thanks for the input, I truly, truly appreciate the help.
I am working on setting up the client as an Axis app so I can use 
the tcpmon and capture the SOAP streams.  (So far I've pretty 
much been using the command-line.)  When I get it up I'll post 
the message with SOAP headers and all.

ITMT, here is the returned String:

  http://www.w3.org/2001/XMLSchema"; 
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
data:IsDataSet="true";>
  

  

  




  

  

  

  
  
5
Edit-error - AVS data is invalid
6
E
  


Thanks again,
Elaine
Anne Thomas Manes wrote:
Actually, I just realized that there might be one more layer of
wrapper in the response message. If you can give a sample SOAP
response message, that would help.
But, based on your current WSDL definition, I expect your response
message schema to look like this:

 
  
   

 
  
   

 
  
   




   
  
 

   
  
 

   
  
 

On Mon, 28 Feb 2005 18:28:36 -0500, Anne Thomas Manes <[EMAIL PROTECTED]> 
wrote:
I'm with Dino. I think you should convince your card processing
service people to provide you with a decent schema. My chief concern
is in regards to future maintenance. What if these "card processing
service" people decide to change the message structure at some point
in the future. Do they have a plan to inform you of these changes?
If they aren't willing to provide you with a schema, then it's
relatively easy for you to construct one from the format they've
supplied. Do you know if they are using any namespaces in the XML
string? Your sample shows no namespaces, but if they add them, that
will definitely impact your WSDL definition.
Your schema should look like this:

 
   
 
   
 
   
 
   
 
 
 
 
  
 
   
 
   
 
   
 

- Anne
On Mon, 28 Feb 2005 14:43:23 -0800, Dino Chiesa <[EMAIL PROTECTED]> wrote:
Not stupid...
Your approach is reasonable, but... Can you not contact the "card
processing service" people and ask them to resolve the  difference
between the doc and the WSDL ?
-Original Message-
From: Elaine Nance [mailto:[EMAIL PROTECTED]
Sent: Monday, February 28, 2005 3:45 PM
To: axis-user@ws.apache.org
Subject: Handmade WSDL?
Hope this is not stupid, but
Problem:  the wsdl for our (supposedly) enterprise credit card
processing service shows well defined request parameters, but the
 SOAP responses are all designated as string, as shown below.
I am thinking that the best way to generate the client stubs I need in
Java is to create a wsdl with better response typing and generate the
stubs using WSDL2Java and then test.
Does it make sense to proceed like the above? or should I just build
parsers using SAX or DOM or whatever?
Thank you,
Elaine
 - example request

  

  

  

 - example response as given

  

  

  

 - WHAT THE RESPONSE SHOULD LOOK LIKE (I THINK) 
  

  
  
  
  

  

 - ALTERNATIVELY

  

  
  
  
  

  

 - the web service docs indicate that the xml returned (minus SOAP
envelope) will look like the following:

  
1
No Address Supplied
1
E
  

<~~
 |  Computers are useless. They can only give you answers.
 | --  Pablo Picasso  --
<~~




Document Based Dynamic Client with complex Types

2005-03-01 Thread Kiran Devaram
Hi All,

I just downloaded Axis 1.1 and was browsing the
samples. I find the DynamicInvoker.java which works
fine for a simple type document based services. But, I
was wondering if there is a sample implementation for
a complexType input/output to a document based web
service where in the client takes wsdl, service name,
operation and the input  xml to invoke the webservice.

Thanks in advance,
Kiran




__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail


Re: Dime Attachments

2005-03-01 Thread Jim Collins
Hi Raul,

Could you please post the client code as well.

Thanks

Jim.
- Original Message - 
From: "Flores, Raul" <[EMAIL PROTECTED]>
To: 
Sent: Monday, February 28, 2005 10:15 PM
Subject: RE: Dime Attachments


> 
> I used the following test code to return various size files formated
> DIME from a server, and it worked (lookes like what you have). If I
> remember correctly, looking at messages via TCPMonitor, the message with
> DIME looks bizarro (as compared to MIME). So if you are saying that
> things do not work because of the message format (as listed below);
> possibly things are working?
> 
> 
> Raul
> 
> 
> 
> 
>  public com.lmtas.swa.services.DimResData
> getDime(com.lmtas.swa.services.DimReqData parameters) throws
> java.rmi.RemoteException {
> 
> DimResData drd = new DimResData("Your file is attached DIME ");
> MessageContext msgContext = MessageContext.getCurrentContext();
> Message msg = msgContext.getResponseMessage();
>  
> msg.getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_DIME);
> AttachmentPart part = new AttachmentPart(new DataHandler(new
> FileDataSource("c:/java/testFile.txt")));
> part.setContentId("testFile.txt");
> msg.addAttachmentPart(part);
> // 2.5M
> part = new AttachmentPart(new DataHandler(new
> FileDataSource("C:/Documents and Settings/My
> Documents/Understanding_Web_Services_Security.pdf")));
> part.setContentId("Understanding_Web_Services_Security.pdf");
> msg.addAttachmentPart(part);
> // 15M
> // part = new AttachmentPart(new DataHandler(new
> FileDataSource("C:/Documents and Settings/My Documents/My
> Downloads/axis-1_2beta3-src.zip")));
> // 410M
> // part = new AttachmentPart(new DataHandler(new
> FileDataSource("C:/Documents and Settings/My
> Documents/en_office_2003_pro.iso")));
> 
> return drd;
> }
> 
> -Original Message-
> From: Shawn Konopinsky [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 28, 2005 3:26 PM
> To: axis-user@ws.apache.org
> Subject: Dime Attachments
> 
> I have what seems to be a problem with send DIME attachments in SOAP.
> 
> Mime works just fine for me when I use the following to set the send
> type:
> reply.getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_MIME).
> 
> However, when I make the simple modification to the line above to use
> DIME as the send type (replace Attachments.SEND_TYPE_MIME with
> Attachments.SEND_TYPE_DIME), it doesn't work.
> 
> Is there anything additional that I have to do aside from setting the
> attachment type to DIME to switch between a MIME and DIME attachment
> type?
> 
> I am viewing the request/response through Axis' TCP Tunnel viewer. When
> I run through a request with DIME, the response from the server looks
> like
> this:
> 
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=754354ADC18D3D950CEACF80F0191805; Path=/bind
> Content-Type: application/dime;charset=utf-8
> Date: Mon, 28 Feb 2005 20:50:51 GMT
> Server: Apache-Coyote/1.1
> Connection: close
> 
> "xsd:int">1
>see attachment
>(+(+RecordType:(interaction complex
> pathway ) +(gi:(4757840  -((+BINDInteraction.a.type:"not
> specified" +BINDInteraction.a.shortlabel:"Unknown")
> (+BINDInteraction.b.type:"not specified"
> +BINDInteraction.b.shortlabel:"Unknown"))
>xml
>   
>  
> 
> 
> 
> As you can see it seems as if the response is malformed. Not sure if
> this is a result of the problem, or something wrong with the proxy that
> I am using to view the response. It is stumping me because MIME works
> fine, and DIME give me the weird result above. No exceptions seem to be
> thrown from the SOAP server.
> 
> Has anyone else had a problem like this or know how I might troubleshoot
> it?
> 
> 


axis client consuming an ejb service

2005-03-01 Thread fabrizio picca
i'm wondering how can a Axis Client send a custom object to an ejb service.

Could someone be of some help?

thanks a lot.

Fabrizio


RE: Dime Attachments

2005-03-01 Thread Flores, Raul
Here is the wsdl and the client code.

Although I have named this swa... this is not really an SwA
implementation. 
If I recall, I was trying to implement SwA(bp1) with Axis and doc/lit.

Raul

-Original Message-
From: Jim Collins [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 3:37 PM
To: axis-user@ws.apache.org
Subject: Re: Dime Attachments

Hi Raul,

Could you please post the client code as well.

Thanks

Jim.
- Original Message -
From: "Flores, Raul" <[EMAIL PROTECTED]>
To: 
Sent: Monday, February 28, 2005 10:15 PM
Subject: RE: Dime Attachments


> 
> I used the following test code to return various size files formated
> DIME from a server, and it worked (lookes like what you have). If I
> remember correctly, looking at messages via TCPMonitor, the message
with
> DIME looks bizarro (as compared to MIME). So if you are saying that
> things do not work because of the message format (as listed below);
> possibly things are working?
> 
> 
> Raul
> 
> 
> 
> 
>  public com.lmtas.swa.services.DimResData
> getDime(com.lmtas.swa.services.DimReqData parameters) throws
> java.rmi.RemoteException {
> 
> DimResData drd = new DimResData("Your file is attached DIME
");
> MessageContext msgContext =
MessageContext.getCurrentContext();
> Message msg = msgContext.getResponseMessage();
>  
> msg.getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_DIME);
> AttachmentPart part = new AttachmentPart(new DataHandler(new
> FileDataSource("c:/java/testFile.txt")));
> part.setContentId("testFile.txt");
> msg.addAttachmentPart(part);
> // 2.5M
> part = new AttachmentPart(new DataHandler(new
> FileDataSource("C:/Documents and Settings/My
> Documents/Understanding_Web_Services_Security.pdf")));
> part.setContentId("Understanding_Web_Services_Security.pdf");
> msg.addAttachmentPart(part);
> // 15M
> // part = new AttachmentPart(new DataHandler(new
> FileDataSource("C:/Documents and Settings/My Documents/My
> Downloads/axis-1_2beta3-src.zip")));
> // 410M
> // part = new AttachmentPart(new DataHandler(new
> FileDataSource("C:/Documents and Settings/My
> Documents/en_office_2003_pro.iso")));
> 
> return drd;
> }
> 
> -Original Message-
> From: Shawn Konopinsky [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 28, 2005 3:26 PM
> To: axis-user@ws.apache.org
> Subject: Dime Attachments
> 
> I have what seems to be a problem with send DIME attachments in SOAP.
> 
> Mime works just fine for me when I use the following to set the send
> type:
> reply.getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_MIME).
> 
> However, when I make the simple modification to the line above to use
> DIME as the send type (replace Attachments.SEND_TYPE_MIME with
> Attachments.SEND_TYPE_DIME), it doesn't work.
> 
> Is there anything additional that I have to do aside from setting the
> attachment type to DIME to switch between a MIME and DIME attachment
> type?
> 
> I am viewing the request/response through Axis' TCP Tunnel viewer.
When
> I run through a request with DIME, the response from the server looks
> like
> this:
> 
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=754354ADC18D3D950CEACF80F0191805; Path=/bind
> Content-Type: application/dime;charset=utf-8
> Date: Mon, 28 Feb 2005 20:50:51 GMT
> Server: Apache-Coyote/1.1
> Connection: close
> 
> "xsd:int">1
>see attachment
>(+(+RecordType:(interaction complex
> pathway ) +(gi:(4757840  -((+BINDInteraction.a.type:"not
> specified" +BINDInteraction.a.shortlabel:"Unknown")
> (+BINDInteraction.b.type:"not specified"
> +BINDInteraction.b.shortlabel:"Unknown"))
>xml
>   
>  
> 
> 
> 
> As you can see it seems as if the response is malformed. Not sure if
> this is a result of the problem, or something wrong with the proxy
that
> I am using to view the response. It is stumping me because MIME works
> fine, and DIME give me the weird result above. No exceptions seem to
be
> thrown from the SOAP server.
> 
> Has anyone else had a problem like this or know how I might
troubleshoot
> it?
> 
> 


swaClient.java
Description: swaClient.java


swa_1.wsdl
Description: swa_1.wsdl


Re: Dime Attachments

2005-03-01 Thread Jim Collins
Thanks Raul.
- Original Message - 
From: "Flores, Raul" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 01, 2005 9:29 PM
Subject: RE: Dime Attachments


> Here is the wsdl and the client code.
> 
> Although I have named this swa... this is not really an SwA
> implementation. 
> If I recall, I was trying to implement SwA(bp1) with Axis and doc/lit.
> 
> Raul
> 
> -Original Message-
> From: Jim Collins [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 01, 2005 3:37 PM
> To: axis-user@ws.apache.org
> Subject: Re: Dime Attachments
> 
> Hi Raul,
> 
> Could you please post the client code as well.
> 
> Thanks
> 
> Jim.
> - Original Message -
> From: "Flores, Raul" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, February 28, 2005 10:15 PM
> Subject: RE: Dime Attachments
> 
> 
> > 
> > I used the following test code to return various size files formated
> > DIME from a server, and it worked (lookes like what you have). If I
> > remember correctly, looking at messages via TCPMonitor, the message
> with
> > DIME looks bizarro (as compared to MIME). So if you are saying that
> > things do not work because of the message format (as listed below);
> > possibly things are working?
> > 
> > 
> > Raul
> > 
> > 
> > 
> > 
> >  public com.lmtas.swa.services.DimResData
> > getDime(com.lmtas.swa.services.DimReqData parameters) throws
> > java.rmi.RemoteException {
> > 
> > DimResData drd = new DimResData("Your file is attached DIME
> ");
> > MessageContext msgContext =
> MessageContext.getCurrentContext();
> > Message msg = msgContext.getResponseMessage();
> >  
> > msg.getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_DIME);
> > AttachmentPart part = new AttachmentPart(new DataHandler(new
> > FileDataSource("c:/java/testFile.txt")));
> > part.setContentId("testFile.txt");
> > msg.addAttachmentPart(part);
> > // 2.5M
> > part = new AttachmentPart(new DataHandler(new
> > FileDataSource("C:/Documents and Settings/My
> > Documents/Understanding_Web_Services_Security.pdf")));
> > part.setContentId("Understanding_Web_Services_Security.pdf");
> > msg.addAttachmentPart(part);
> > // 15M
> > // part = new AttachmentPart(new DataHandler(new
> > FileDataSource("C:/Documents and Settings/My Documents/My
> > Downloads/axis-1_2beta3-src.zip")));
> > // 410M
> > // part = new AttachmentPart(new DataHandler(new
> > FileDataSource("C:/Documents and Settings/My
> > Documents/en_office_2003_pro.iso")));
> > 
> > return drd;
> > }
> > 
> > -Original Message-
> > From: Shawn Konopinsky [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, February 28, 2005 3:26 PM
> > To: axis-user@ws.apache.org
> > Subject: Dime Attachments
> > 
> > I have what seems to be a problem with send DIME attachments in SOAP.
> > 
> > Mime works just fine for me when I use the following to set the send
> > type:
> > reply.getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_MIME).
> > 
> > However, when I make the simple modification to the line above to use
> > DIME as the send type (replace Attachments.SEND_TYPE_MIME with
> > Attachments.SEND_TYPE_DIME), it doesn't work.
> > 
> > Is there anything additional that I have to do aside from setting the
> > attachment type to DIME to switch between a MIME and DIME attachment
> > type?
> > 
> > I am viewing the request/response through Axis' TCP Tunnel viewer.
> When
> > I run through a request with DIME, the response from the server looks
> > like
> > this:
> > 
> > HTTP/1.1 200 OK
> > Set-Cookie: JSESSIONID=754354ADC18D3D950CEACF80F0191805; Path=/bind
> > Content-Type: application/dime;charset=utf-8
> > Date: Mon, 28 Feb 2005 20:50:51 GMT
> > Server: Apache-Coyote/1.1
> > Connection: close
> > 
> > "xsd:int">1
> >see attachment
> >(+(+RecordType:(interaction complex
> > pathway ) +(gi:(4757840  -((+BINDInteraction.a.type:"not
> > specified" +BINDInteraction.a.shortlabel:"Unknown")
> > (+BINDInteraction.b.type:"not specified"
> > +BINDInteraction.b.shortlabel:"Unknown"))
> >xml
> >   
> >  
> > 
> > 
> > 
> > As you can see it seems as if the response is malformed. Not sure if
> > this is a result of the problem, or something wrong with the proxy
> that
> > I am using to view the response. It is stumping me because MIME works
> > fine, and DIME give me the weird result above. No exceptions seem to
> be
> > thrown from the SOAP server.
> > 
> > Has anyone else had a problem like this or know how I might
> troubleshoot
> > it?
> > 
> > 
> 


Re: Handmade WSDL?

2005-03-01 Thread Anne Thomas Manes
Ah -- I see. This DataSet is coming from a .NET service (probably
generated by ADO.NET), and then stuffed into the SOAP message as a
string. Unfortunately, because the string starts with the 
declaration, you won't be able to get Axis to process it for you. You
are going to have to extract the string and then process it using SAX
or DOM.

You need to go abuse the card processing folks. This is what's known
as a "worst practice".

Anne


Re: axis 1.1 Document and Wrapped style work properly?

2005-03-01 Thread Anne Thomas Manes
Axis 1.1 has very poor support for document/literal. Axis 1.2 is much better.


On Tue, 1 Mar 2005 13:38:24 -0500, Eugene Shershnev <[EMAIL PROTECTED]> wrote:
>  
> That article is 15 month old :-)
>  
>  
> - Original Message - 
> From: Leonardo Ciman 
> To: 'axis-user@ws.apache.org' 
> Sent: Tuesday, March 01, 2005 1:00p 
> Subject: axis 1.1 Document and Wrapped style work properly? 
> 
>  
> 
> In an article
> (http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-wsstyles.html) I had
> read that axis doesn't support document and wrapped style: 
> 
> "Our Axis walkthrough will travel down several different avenues towards a
> document/literal Web service. All will prove dead ends because, while Axis
> purports to support document/literal, it actually doesn't." 
> 
> Is it true?


Re: Handmade WSDL?

2005-03-01 Thread Elaine Nance
Thank you so very much.
I suspected something like this, especially after investigating a 
well-formed SOAP service (from Melissa Data) and working through 
the client code generated by WSDL2Java for it.

I'm pretty new to all of this so I have to keep looking up 
everything.  And it seems that everything I'm learning involves 
twelve other things to learn as well. ;)

Gotta love it . . .
Elaine
Anne Thomas Manes wrote:
Ah -- I see. This DataSet is coming from a .NET service (probably
generated by ADO.NET), and then stuffed into the SOAP message as a
string. Unfortunately, because the string starts with the 
declaration, you won't be able to get Axis to process it for you. You
are going to have to extract the string and then process it using SAX
or DOM.
You need to go abuse the card processing folks. This is what's known
as a "worst practice".
Anne
<~~
 |  Computers are useless. They can only give you answers.
 | --  Pablo Picasso  --
<~~




Axis Handler tutorial?

2005-03-01 Thread Dan O'Neill
Hi everyone... 

As you can see from my earlier email I'm having some problems with my
Axis handlers. As in every time I call one tomcat decides its wants to
be a toaster and leaves without a word of warning. All I get is
connection reset!

But I think its something I'm doing in the basics thats wrong? So can
anyone point me in the right direction on a tutorial on Axis handlers
or perhaps a working client-handler-service example. It doesn't have
to be very simple or very hard just so I can get a feel for it!

Many thanks all,

Dan O'Neill


Re: Handmade WSDL?

2005-03-01 Thread Airline Pedestal

Hi Anne,

Could you provide an example how to
extract that?


Thanks,

A



--- Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

> Ah -- I see. This DataSet is coming from a .NET
> service (probably
> generated by ADO.NET), and then stuffed into the
> SOAP message as a
> string. Unfortunately, because the string starts
> with the 
> declaration, you won't be able to get Axis to
> process it for you. You
> are going to have to extract the string and then
> process it using SAX
> or DOM.
> 
> You need to go abuse the card processing folks. This
> is what's known
> as a "worst practice".
> 
> Anne
> 





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail


Doubts on WSDL design

2005-03-01 Thread Ana Carolina Chaves Machado
Hi, 

I need implement the Web Service using the Document/Literal style (WSDL) 
based in following Java interface: 

public class AccessControlFacade { 

  public IServices getInstance();
  public User authenticateUser(String login, String password);
  public boolean authorizeService(User user, Service service);
  public Collection listServicesByUser(User user);
  public boolean authorizeOperation(User user, Service service, Operation 
operation);
  public Collection listOperationsByUser(User user, Service service);
  public Collection listUsersByProfile(Profile profile);
  public Collection listServicesByProfile(Profile profile);
} 

where 

public class User {
  private String name;
  private String email;
  private String login;
  private String password;
  private Profile activeProfile;
  private Collection profiles;
  private Collection operations;
} 

public class Profile{ 

private int id;
private String name;
private String description;
private Collection services;
private Collection users; 

} 

public class Service {
private int id;
private String name;
private String description;
private Collection operations;
} 

public class Operation {
  private int id;
  private String name;
  private String description;
  private String link;
  private String operation;
  private Service service;
} 

My doubt is if the signature of the methods these coherent with the style
Document/Literal of Web services and also if the types, as Collection, is 
allowed to reach interoperabilidade. 

What I would have to modify it my Web service to reach interoperability?
In case that I want to use the style of programming Document-Literal Wrapped
what I would have to modify to reach the same objectives? 

I am confused in relation to this two styles and I would like to understand
using this practical example. 

Thanks for attention,
Ana Carolina 



Doubts on beanMapping

2005-03-01 Thread Soti, Dheeraj
Hi,

I am new to webservices. I have a following class structure

Employee (Interface)
|
|
--
|
|
|
|
  PermanentEmployee (Implements Employee)   Temporary
Employee (Implements Employee)
  

If I have a service like:

public class MyService {
public void createEmployee(Employee employee) {


}
}

Then is the following bean mapping correct in deploy.wsdd? While running the
AdminClient everything is fine but when I try to get the wsdl using an url like
htpp://./services/MyService?wsdl then it never comes back.



Thanks

Dheeraj




Re: Doubts on WSDL design

2005-03-01 Thread Bill Keese
Hi Ana,
You should use an arrays rather than collections.  I recommend 
Document-Literal Wrapped .  As per the usual recommendation, you should 
write your WSDL file first, rather than writing the java classes first 
as you have done.  (Since you have already written java classes, I 
suggest you run Java2WSDL to generate a WSDL file, but from now on, you 
should edit that file manually, if necessary.

Bill
Ana Carolina Chaves Machado wrote:
Hi,
I need implement the Web Service using the Document/Literal style 
(WSDL) based in following Java interface:
public class AccessControlFacade {
  public IServices getInstance();
  public User authenticateUser(String login, String password);
  public boolean authorizeService(User user, Service service);
  public Collection listServicesByUser(User user);
  public boolean authorizeOperation(User user, Service service, 
Operation operation);
  public Collection listOperationsByUser(User user, Service service);
  public Collection listUsersByProfile(Profile profile);
  public Collection listServicesByProfile(Profile profile);
}
where
public class User {
  private String name;
  private String email;
  private String login;
  private String password;
  private Profile activeProfile;
  private Collection profiles;
  private Collection operations;
}
public class Profile{
private int id;
private String name;
private String description;
private Collection services;
private Collection users;
}
public class Service {
private int id;
private String name;
private String description;
private Collection operations;
}
public class Operation {
  private int id;
  private String name;
  private String description;
  private String link;
  private String operation;
  private Service service;
}

My doubt is if the signature of the methods these coherent with the style
Document/Literal of Web services and also if the types, as Collection, 
is allowed to reach interoperabilidade.
What I would have to modify it my Web service to reach interoperability?
In case that I want to use the style of programming Document-Literal 
Wrapped
what I would have to modify to reach the same objectives?
I am confused in relation to this two styles and I would like to 
understand
using this practical example.
Thanks for attention,
Ana Carolina




Re: Axis2: RPC -> Message advantages

2005-03-01 Thread Srinath Perera
Hi Eugene; 
I am not much sure about what you mean; anyway I will try

> > Another driving force for Axis2 is to move away from RPC oriented Web 
> > services towards >>more document-oriented, message style asynchronous 
> > service interactions.
> 
> Where is adavatages of this approach in case of using HTTP as transport
> layer? Is this approach moving back to POST/GET methods and servlet model?

not much change in the how the HTTP transport layer is handled (expect
to send HTTP one way 202 OK). It is about how the SOAP message is
processed.

Thanks
Srinath


SOAP-Faults/Java Exception Mapping and Handling.

2005-03-01 Thread Brian Abbott
Title: Message



Hi, I am wondering 
how I register in wsdd a Java Exception to be serialized and deserialized by the 
client and represented as the correct exception type with the correct specific 
fields on the client side.
 
Thank 
you,
 
Brian


stub and skelton

2005-03-01 Thread Pavan Kumar Choukhada
hi

where do axis use generated stub and skelton.
since we just send soap message and it call respective handler and
invoke method using reflection.

thanks

with regards
pavan



--
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html
--


RE: newbie: serializing deserializing nested custom object

2005-03-01 Thread Dino Chiesa
Fabrizio, mi scusi, man non parlo o scritto l'italiano bene. 

If you look at some of the recent discussion on the axis-user list,
you'll see some  recommendations such as: 
 1- stay away from custom collections (such as Hashtable) in web
services interfaces 
 2- define your WSDL first, primo.  Before providing the implementation.
Provide your implementation after running WSDL2Java.  

Despite this, someone on this list may be able to help you if you wish
to ignore recommendation #1.  

-Dino


-Original Message-
From: fabrizio picca [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 12:36 PM
To: axis-user@ws.apache.org
Subject: newbie: serializing deserializing nested custom object

This is my first post, i'm new to axis, so excuse the eventual oddness
of this question.

i wanna call a remote service like this

setTrigger(hashtable triggerMap,String urlRef,String ipRef)

The hashtable triggerMap contains  Trigger custom objects.

Those Triggers are made of String and another custom object : Event.
Event,in the end is made up of two strings and the last custom Object:
Parameter which contains only strings.

following the example found in axis documentation i've wrote down this:

QNameqnT  = new QName( endpoint , "Trigger" );
QNameqnP  = new QName( endpoint ,
"Parameter" );
QNameqnE  = new QName( endpoint ,
"Event" );

 call.registerTypeMapping(Parameter.class, qnP,
new
org.apache.axis.encoding.ser.BeanSerializerFactory(Parameter.class,
qnP),
new
org.apache.axis.encoding.ser.BeanDeserializerFactory(Parameter.class,
qnP));
 call.registerTypeMapping(Event.class, qnE,
new
org.apache.axis.encoding.ser.BeanSerializerFactory(Event.class,
qnE),
new
org.apache.axis.encoding.ser.BeanDeserializerFactory(Event.class,
qnE));
 call.registerTypeMapping(Trigger.class, qnT,
new
org.apache.axis.encoding.ser.BeanSerializerFactory(Trigger.class , qnT),
new
org.apache.axis.encoding.ser.BeanDeserializerFactory(Trigger.class,
qnT));

But all i  can obtain is an Exception like:

No Deserializer for {[endpoint]}Trigger.

I hope i was quite clear in explanation.
Tanks a lot.

Fabrizio


RE: Handmade WSDL?

2005-03-01 Thread Dino Chiesa
Don't waste the effort! 
Instead, fix it at the source. . .


-Original Message-
From: Airline Pedestal [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 6:29 PM
To: axis-user@ws.apache.org; Anne Thomas Manes
Subject: Re: Handmade WSDL?


Hi Anne,

Could you provide an example how to
extract that?


Thanks,

A



--- Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

> Ah -- I see. This DataSet is coming from a .NET service (probably 
> generated by ADO.NET), and then stuffed into the SOAP message as a 
> string. Unfortunately, because the string starts with the  
> declaration, you won't be able to get Axis to process it for you. You 
> are going to have to extract the string and then process it using SAX 
> or DOM.
> 
> You need to go abuse the card processing folks. This is what's known 
> as a "worst practice".
> 
> Anne
> 





__
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail


RE: Document/Literal problem with .NET client

2005-03-01 Thread Dino Chiesa
I apologize, what you sent was a bit too much information for me. 

Maybe this will help.  
Here's a working example of an AXIS web service that is consumable by a
.NET client. 
The source is available, too. 
 
http://dinoch.dyndns.org:7070/axis1.2/AboutCtService.jsp

What I did: 

Started with WSDL
Generated Java helper classes via AXIS WSDL2Java
Implemented a random-data-generator service 
Deployed the service using the generated deploy.wsdd

Then I generated the client-side proxies, again from the static WSDL
(not the dynamically generated WSDL).  Then I built a simple .NET
client. 
Voila. 

-Dino




-Original Message-
From: Murad [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 5:05 AM
To: axis-user@ws.apache.org
Subject: Re: Document/Literal problem with .NET client

Dear Dino,

Thank you very much for your valuable response.Following is the service
class definition.With this service class I provided two sets of service
definitions in the wsdd file which are enclosed below along with their
corresponding generated wsdl.Scenario 1 is with the document/literal
encoding which gives the problem mentioned in my previous mail.And
Scenario 2 is the default encoding scheme(which I believe is
rpc/literal).In scenaio 2 everything is working nice and smooth.With
Scenario 1 I have following observations:

i.In running add method everything is working nice but the return value
in the .NET client I am getting null

ii.One of my methods have methods(getAllIRType) with Complex data data
array as return type. In generated proxy class(by wsdl tool) I find
return type becomes a simple DTO(without the array sign)

iii. Strange to that when the return type is object type in the proxy
class things are ok.

With the first scenrio I tested it with .NET web service studio and
provide u a sample of request and response(take it from the Web Service
Studio) but I am seeing the result object is null. 
 

Service class definition ::




/*
 * Copyright (C) 2004 Sikraft Solutions Ltd. All  Rights Reserved.
 *
 * This software is the confidential and proprietary information
 * of Sikraft Solutions Ltd.
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Sikraft.
 */
package com.sikraft.ihis.inpatient.roomtype;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.sikraft.welkin.business.Result;
import com.sikraft.welkin.business.ServiceFacade;
import com.sikraft.welkin.exception.GenericException;
import com.sikraft.welkin.service.BaseJaxRPCService;


/**
 * Exposes the Inpatient RoomType related service to the external world
 * @author Ahad
 * @version 1.0
 */
public class JaxRpcIRTypeService
extends BaseJaxRPCService
{
  private static Log theLogger =
LogFactory.getLog(JaxRpcIRTypeService.class);
  public static final String SERVICE_NAME = "irtypeService";

  /**
   * creates a room type in the system
   *
   * @param theData PersistantCapableDTO
   */
  public Result add(IRTypeDTO theData) throws GenericException
  {
return provideService(theData, SERVICE_NAME,
ServiceFacade.SERVICE_ADD);
  }

  /**
   * update a room type info existing in the system
   *
   * @param theData PersistantCapableDTO
   */
  public Result modify(IRTypeDTO theData) throws GenericException
  {
return provideService(theData, SERVICE_NAME,
ServiceFacade.SERVICE_MODIFY);
  }

  /**
   * provides all room type of the system
   *
   * @return allIRType List
   */
  public IRTypeDTO[] getAllIRType() throws GenericException
  {
List allIRType = ( (IIRTypeService)
getService(SERVICE_NAME)).getIrtypeDAO().getAllIRType();
IRTypeDTO  allIRTypeArray[] = (IRTypeDTO[]) allIRType.toArray(new
IRTypeDTO[allIRType.size()]);
return  allIRTypeArray;
  }
  public IRTypeDTO findById(Long id)throws GenericException
  {
 theLogger.trace("findById() :: " + id);
 Object obj = findDTOById(IRTypeDTO.class,id);
 theLogger.trace("findById() :: " + obj);
 return (IRTypeDTO)obj;
  }
  public IRTypeDTO[] findIRTypes(String hqlQueryCondition,Object
params[])throws GenericException//Specific field Search
  {
List searchedDepartments =
findPersistantCapableDTOs(IRTypeDTO.class.getName(),hqlQueryCondition,pa
rams);
return (IRTypeDTO[])searchedDepartments.toArray(new
IRTypeDTO[searchedDepartments.size()]);
  }
  public Object[][] findSpecificDataWithFullValue(String
fieldNames[],String fieldValues[],String returnFieldNames[])
  {
return
super.findSpecificData(fieldNames,fieldValues,returnFieldNames,IRTypeDTO
.class);
  }
  public Object[][] findSpecificDataWithPatialValue(String
fieldName,String partialOrFullFieldValue,String returnFieldNames[])
  {
return
super.findSpecificData(fieldName,partialOrFullFieldValue,returnFieldName
s,IRTypeDTO.class);
  }

}

With a above code base followings are two scenarios:
 
Scenario 01. (document/literal)

01.a.

RE: stub and skelton

2005-03-01 Thread Shahi, Ashutosh
Pavan,
The skeleton code is used at the server for delegating the work
to the actual java class. The stubs are used at the client end if u r
using static invocation, which I think you r not using, so u can do
without them at client.

Ashutosh

-Original Message-
From: Pavan Kumar Choukhada [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 9:59 AM
To: axis-user@ws.apache.org
Subject: stub and skelton

hi

where do axis use generated stub and skelton.
since we just send soap message and it call respective handler and
invoke method using reflection.

thanks

with regards
pavan



--
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html
--



RE: stub and skelton

2005-03-01 Thread Pavan Kumar Choukhada
that's true i am not using static invocation.
but i think we do not require skelton on server.
because as i mentioned earlier using RPCProvider axis invoke java class
via reflection.

On Wed, 2005-03-02 at 11:04, Shahi, Ashutosh wrote:
> Pavan,
>   The skeleton code is used at the server for delegating the work
> to the actual java class. The stubs are used at the client end if u r
> using static invocation, which I think you r not using, so u can do
> without them at client.
> 
> Ashutosh
> 
> -Original Message-
> From: Pavan Kumar Choukhada [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 02, 2005 9:59 AM
> To: axis-user@ws.apache.org
> Subject: stub and skelton
> 
> hi
> 
> where do axis use generated stub and skelton.
> since we just send soap message and it call respective handler and
> invoke method using reflection.
> 
> thanks
> 
> with regards
> pavan
> 
> 
> 
> --
> Netcore Solutions Pvt. Ltd.
> Website:  http://www.netcore.co.in
> Spamtraps: http://cleanmail.netcore.co.in/directory.html
> --
> 


--
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html
--


Re: object as parameter

2005-03-01 Thread jayachandra
There is Call.registerTypeMapping method. First register your bean to
some XMLType QName and then use that XMLType in the addParameter. That
should do the job.

e.g.
/* obtain instances of BeanSerializerFactory and
BeanDeserializerFactory as sf and df respecitively
*/
MyXMLType = new QName("http://sample.org/xsd","BeanXMLType";);
Call.registerTypeMapping(MyBean.class, MyXMLType,sf,df);
...
...
Call.addParameter(...)
Call.addParameter("BeanParam", MyXMLType, ParameterMode.IN);
Call.addParameter(...)
...

Hope that helps,
Jayachandra

On Tue, 1 Mar 2005 17:02:20 -, Suzy Fynes
<[EMAIL PROTECTED]> wrote:
> 
> 
>  
> 
> Hi,
> 
>  
> 
> Can anyone tell if there is a different approach to adding a java bean
> (simple types) as a parameter for an axis web service using a java client.
> 
>  
> 
> For strings and ints the following is used
> 
>  
> 
> call.addParameter("name", XMLType.XSD_STRING, ParameterMode.IN);
> 
>  
> 
> what would be used if the parameter is an bean object?
> 
>  
> 
> Thanks
> 
> Suzy


-- 
-- Jaya


Re: stub and skelton

2005-03-01 Thread jayachandra
Not that easy buddy.
Even for RPCProvider how is it to know from the plain SOAP message to
which Java classes the XML need to be deserialized before invoking the
java class.
There comes the need for skeleton code.

Jayachandra

On Wed, 02 Mar 2005 11:23:44 +0530, Pavan Kumar Choukhada
<[EMAIL PROTECTED]> wrote:
> that's true i am not using static invocation.
> but i think we do not require skelton on server.
> because as i mentioned earlier using RPCProvider axis invoke java class
> via reflection.
> 
> On Wed, 2005-03-02 at 11:04, Shahi, Ashutosh wrote:
> > Pavan,
> >   The skeleton code is used at the server for delegating the work
> > to the actual java class. The stubs are used at the client end if u r
> > using static invocation, which I think you r not using, so u can do
> > without them at client.
> >
> > Ashutosh
> >
> > -Original Message-
> > From: Pavan Kumar Choukhada [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 02, 2005 9:59 AM
> > To: axis-user@ws.apache.org
> > Subject: stub and skelton
> >
> > hi
> >
> > where do axis use generated stub and skelton.
> > since we just send soap message and it call respective handler and
> > invoke method using reflection.
> >
> > thanks
> >
> > with regards
> > pavan
> >
> >
> >
> > --
> > Netcore Solutions Pvt. Ltd.
> > Website:  http://www.netcore.co.in
> > Spamtraps: http://cleanmail.netcore.co.in/directory.html
> > --
> >
> 
> --
> Netcore Solutions Pvt. Ltd.
> Website:  http://www.netcore.co.in
> Spamtraps: http://cleanmail.netcore.co.in/directory.html
> --
> 


-- 
-- Jaya


Handling XML response in SOAP client

2005-03-01 Thread Jaidev Nair
Hi All,

I have a small problem with my code.

Can any one tell me how to create a SOAP client using axis which gets
a response from a remote server in XML fromat.I mean my request is in
String but the response given by the service is in XML with the
content which is double.

How can i retreive the value in my java client code.

Can any one please help me in this.

Thanks,

Jaidev.


Re: Doubts on beanMapping

2005-03-01 Thread jayachandra
Even though AdminClient replies back saying
Done PRocessing
deployment may not be successful. I'd suggest you look into the Tomcat
logs directory  %CATALINA_HOME%/logs and open the log corresponding to
the appropriate date. There you would see the detailed server side
error log.
You can deal with the situation better with that info.

Bye
Jayachandra

On Tue, 1 Mar 2005 20:36:55 -0500, Soti, Dheeraj <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am new to webservices. I have a following class structure
> 
>Employee (Interface)
>|
>|
>--
>|
> |
>|
> |
>  PermanentEmployee (Implements Employee)   Temporary
> Employee (Implements Employee)
> 
> If I have a service like:
> 
> public class MyService {
>public void createEmployee(Employee employee) {
>
>
>}
> }
> 
> Then is the following bean mapping correct in deploy.wsdd? While running the
> AdminClient everything is fine but when I try to get the wsdl using an url 
> like
> htpp://./services/MyService?wsdl then it never comes back.
> 
> xmlns:myNS="urn:MyService" />
> 
> Thanks
> 
> Dheeraj
> 
> 


-- 
-- Jaya


Using Axis to wrap an XML response in it's required class

2005-03-01 Thread Matt Robinson
Hello.

I am interacting with a .NET based web service and have used the Apache Axis 
WSDL2Java emitter to generate the required classes.

One of the operations (authenticate) takes a user and password and returns a 
string.  However this string is actually XML that describes a User Profile, 
which is defined as a complex type in the WSDL.

There is a UserProfile.java class that was automatically created by the Apache 
Axis WSDL2Java emitter.  Is there an AXIS tool for taking this XML string and 
'wrapping' it in the corresponding class?  There are no methods in the class to 
do this.

Or do I have to parse this myself? 

Kind Regards,

Matt Robinson



Re: Axis2: RPC -> Message advantages

2005-03-01 Thread Eugene Prokopiev
I am not much sure about what you mean; anyway I will try
Sorry for my english ;)
I try to know about SOAP and Axis evolution and about reasons of it
Another driving force for Axis2 is to move away from RPC oriented Web services towards >>more document-oriented, message style asynchronous service interactions.
Where is adavatages of this approach in case of using HTTP as transport
layer? Is this approach moving back to POST/GET methods and servlet model?

not much change in the how the HTTP transport layer is handled (expect
to send HTTP one way 202 OK). It is about how the SOAP message is
processed.
As for me, mainly SOAP is object-oriented and procedure-oriented 
transport layer between heterogeneous systems. So, main part of SOAP is 
RPC services as the next generation of XML-RPC

If I need to exchange raw XML data I can use many other tools to process 
SOAP message because is't XML. Can you give me a some examples of 
adavatages new built-in Axis tools for SOAP procesing instead of XSLT, 
DOM4J and others?

Thanks
Eugene Prokopiev


any exp. to share w.r.t custom types that use inheritance

2005-03-01 Thread babloosony
Hi All,

Does anybody have experiences to share regarding using custom types
that includes inheritance (java extends keyword) handling and java
Collections handling may be using custom AXIS  (De)Serializers that
can use Castor,JiBX,JAXB in POJO/EJB to be exposed as document literal
style  web service using AXIS ?


Thank you for your time and reply.

Kumar.


Re: ANNOUNCE : Axis 1.2 Release Candidate 3

2005-03-01 Thread Dennis Sosnoski
It looks like the servlet no longer creates a server-config.wsdd the 
first time it's run - you have to actually deploy a service using the 
Admin tool in order to get this generated. Many developers have been 
using the shortcut of modifying the server-config.wsdd file directly to 
include their application, to simplify deploying Axis as a web 
application with preinstalled services. Can you please include a default 
server-config.wsdd as part of the distribution?

Also, a note to other users: You now need to include saaj.jar and 
common-discovery.jar in the classpath when running TCPMonitor - 
otherwise you'll get class not found messages on the console and will 
only see the request HTTP headers displayed. These jars were previously 
not needed for TCPMonitor.

 - Dennis
Dennis M. Sosnoski
Enterprise Java, XML, and Web Services
Training and Consulting
http://www.sosnoski.com
Redmond, WA  425.885.7197

Glen Daniels wrote:
Hi all:
The Axis team would like to announce the release of Axis 1.2's third 
(and final) Release Candidate.  This will be the LAST RC before 1.2 
goes out.  We expect to cut the final release in about a week's time 
(March 9th-10th).

This release has passed the JAX-RPC and SAAJ TCKs (barring a couple of 
tests we are challenging because we feel they are incorrect).  Lots of 
changes for better doc/lit data binding, bug fixes (including 
workarounds for .NET problems), etc.

You can find it at:
http://www.apache.org/dist/ws/axis/1_2RC3/
Please pull it down, kick the tires, and forward any comments to 
[EMAIL PROTECTED]

Thanks,
--Glen on behalf of the Axis team