Re: List or object array in response?

2007-02-28 Thread Deepal Jayasinghe
Hi Ronald ;

Can you please attach other relevant code as well the client code .

Thanks
Deepal

 Absolutely, thanks for the quick reply!

 This is my service operation:

 public ListContactDatabaseInfo getDatabases(AuthInfo authInfo)
 {
 ClientDomain client =
 clientDomainManager.findByLabel(authInfo.getOrganization());
 if (client == null) {
 throw new TripolisSecurityException(client not found);
 }

 User user =
 userManager.findByNameAndClientDomainId(authInfo.getUserName(),
 client.getId());
 if (user == null) {
 throw new TripolisSecurityException(user not found);
 }

 ListContactDatabase databases =
 contactDatabaseManager.findByClientDomain(client.getId());
 ArrayListContactDatabaseInfo databaseInfos = new
 ArrayListContactDatabaseInfo();

 for (ContactDatabase database : databases) {
 databaseInfos.add(
 new ContactDatabaseInfo(
 database.getId().getEncryptedStringValue(),
 database.getName()
 )
 );
 }
 return databaseInfos;
 }

 Note: The returning of an actual ArrayList I got from a posting on the
 mailing list. Before I tried to return an Array and a List of
 ContactDatabaseInfo objects.

 With the use of Spring I have public setters in my service class
 (managers that are injected) which are exposed in the generated wsdl,
 so I use a custom wsdl where I removed these sertters:

 wsdl:definitions
 xmlns:axis2=http://services.tripolis.com;
 xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/;
 xmlns:http=http://schemas.xmlsoap.org/wsdl/http/;
 xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/;
 xmlns:ns0=http://model.services.tripolis.com/xsd;
 xmlns:ns1=http://security.business.tripolis.com/xsd;
 xmlns:ns3=http://datamanager.contact.business.tripolis.com/xsd;
 xmlns:ns2=http://services.tripolis.com/xsd;
 xmlns:xs=http://www.w3.org/2001/XMLSchema;
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
 xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
 targetNamespace=http://services.tripolis.com;

 wsdl:documentationPrototype of the dialogue
 service/wsdl:documentation
 wsdl:types

 xs:schema xmlns:ax22=http://model.services.tripolis.com/xsd;
 targetNamespace=http://model.services.tripolis.com/xsd;
 attributeFormDefault=qualified elementFormDefault=qualified
 xs:element name=AuthInfo type=ax22:AuthInfo /
 xs:complexType name=AuthInfo
 xs:sequence
 xs:element name=organization type=xs:string
 nillable=true /
 xs:element name=userName type=xs:string
 nillable=true /
 xs:element name=password type=xs:string
 nillable=true /
 /xs:sequence
 /xs:complexType
 xs:element name=ContactDatabaseInfo
 type=ax22:ContactDatabaseInfo /
 xs:complexType name=ContactDatabaseInfo
 xs:sequence
 xs:element name=id type=xs:string
 nillable=true /
 xs:element name=name type=xs:string
 nillable=true /
 xs:element name=fieldDescriptors
 maxOccurs=unbounded type=xs:string nillable=true /
 xs:element name=fieldGroups
 maxOccurs=unbounded type=xs:string nillable=true /
 xs:element name=defaultFieldGroupId
 type=xs:string nillable=true /
 /xs:sequence
 /xs:complexType
 /xs:schema

 xs:schema xmlns:ns=http://services.tripolis.com/xsd;
 targetNamespace=http://services.tripolis.com/xsd;
 attributeFormDefault=qualified elementFormDefault=qualified
 xs:element name=getDatabases
 xs:complexType
 xs:sequence
 xs:element name=authInfo
 type=ns0:AuthInfo nillable=true /
 /xs:sequence
 /xs:complexType
 /xs:element
 xs:element name=getDatabasesResponse
 xs:complexType
 xs:sequence
 xs:element name=return
 maxOccurs=unbounded type=ns0:ContactDatabaseInfo nillable=true /
 /xs:sequence
 /xs:complexType
 /xs:element
 /xs:schema
 /wsdl:types

 wsdl:message name=getDatabasesMessage
 wsdl:part name=part1 element=ns2:getDatabases /
 /wsdl:message
 wsdl:message name=getDatabasesResponse
 wsdl:part name=part1 element=ns2:getDatabasesResponse /
 /wsdl:message

 wsdl:portType name=DialogueServicePortType
 wsdl:operation name=getDatabases
 wsdl:input
 xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl;
 message=axis2:getDatabasesMessage 

Re: List or object array in response?

2007-02-28 Thread Ronald Pieterse

Here's my services.xml too :-)

/serviceGroup
   service name=DialogueService
   descriptionPrototype of the dialogue service/description
  
   messageReceivers
   messageReceiver 
mep=http://www.w3.org/2004/08/wsdl/in-only;
   
class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver /

   messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out;
   
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver /
   /messageReceivers   
  
   parameter name=ServiceObjectSupplier locked=false
   
org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier

   /parameter
  
   parameter name=SpringBeanName 
locked=falsedialogueService/parameter
   operation name=getDatabases 
mep=http://www.w3.org/2004/08/wsdl/in-out; /
  
   /service

/serviceGroup

Ronald

Deepal Jayasinghe wrote:

Hi Ronald;

Can you please send us the source code , that will help us to find out
the issue.

Thanks
Deepal

  

Hello,

After working with Axis1.x for some time now I just started working
with Axis2. It works pretty nice out of the box until I tried
returning a List or Array of objects.
I read in some posting that I should get the latest snapshot release
to get this working but that did not help.
I get:* IllegalArgumentException: null rcl*

Does anyone know how I can resolve this? Returning a String or a
complex object works fine by the way.

specs:
I work /code first/; I have a simple webservice operation that should
return a List or an Array of objects. That's it.

Roepie




  




Re: List or object array in response?

2007-02-28 Thread Ronald Pieterse
I just sent my services.xml and here's my client code. That's all. It's 
the most basic way of creating a webservice, right?


Just to make clear: everything works fine apart from returning an Array 
or List. So the Spring connection and returning a string works good.


  ...
   DialogueServiceStub stub = new DialogueServiceStub();
   DialogueServiceStub.GetDatabases getDatabases = new 
DialogueServiceStub.GetDatabases();
  
   AuthInfo authInfo = new AuthInfo();

   authInfo.setOrganization(haralds company);
   authInfo.setUserName([EMAIL PROTECTED]);
   authInfo.setPassword(Ronald1);
   getDatabases.setAuthInfo(authInfo);
  
   DialogueServiceStub.GetDatabasesResponse response = 
stub.getDatabases(getDatabases);

   for (ContactDatabaseInfo databaseInfo : response.get_return())
   {
   System.out.println(db name:  + databaseInfo.getName());
   }
  ...

Ronald

Deepal Jayasinghe wrote:

Hi Ronald ;

Can you please attach other relevant code as well the client code .

Thanks
Deepal

  

Absolutely, thanks for the quick reply!

This is my service operation:

public ListContactDatabaseInfo getDatabases(AuthInfo authInfo)
{
ClientDomain client =
clientDomainManager.findByLabel(authInfo.getOrganization());
if (client == null) {
throw new TripolisSecurityException(client not found);
}
   
User user =

userManager.findByNameAndClientDomainId(authInfo.getUserName(),
client.getId());
if (user == null) {
throw new TripolisSecurityException(user not found);
}
   
ListContactDatabase databases =

contactDatabaseManager.findByClientDomain(client.getId());
ArrayListContactDatabaseInfo databaseInfos = new
ArrayListContactDatabaseInfo();
   
for (ContactDatabase database : databases) {

databaseInfos.add(
new ContactDatabaseInfo(
database.getId().getEncryptedStringValue(),
database.getName()
)
);
}
return databaseInfos;
}

Note: The returning of an actual ArrayList I got from a posting on the
mailing list. Before I tried to return an Array and a List of
ContactDatabaseInfo objects.

With the use of Spring I have public setters in my service class
(managers that are injected) which are exposed in the generated wsdl,
so I use a custom wsdl where I removed these sertters:

wsdl:definitions
xmlns:axis2=http://services.tripolis.com;
xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/;
xmlns:http=http://schemas.xmlsoap.org/wsdl/http/;
xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/;
xmlns:ns0=http://model.services.tripolis.com/xsd;
xmlns:ns1=http://security.business.tripolis.com/xsd;
xmlns:ns3=http://datamanager.contact.business.tripolis.com/xsd;
xmlns:ns2=http://services.tripolis.com/xsd;
xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
targetNamespace=http://services.tripolis.com;
   
wsdl:documentationPrototype of the dialogue

service/wsdl:documentation
wsdl:types
   
xs:schema xmlns:ax22=http://model.services.tripolis.com/xsd;

targetNamespace=http://model.services.tripolis.com/xsd;
attributeFormDefault=qualified elementFormDefault=qualified
xs:element name=AuthInfo type=ax22:AuthInfo /
xs:complexType name=AuthInfo
xs:sequence
xs:element name=organization type=xs:string
nillable=true /
xs:element name=userName type=xs:string
nillable=true /
xs:element name=password type=xs:string
nillable=true /
/xs:sequence
/xs:complexType
xs:element name=ContactDatabaseInfo
type=ax22:ContactDatabaseInfo /
xs:complexType name=ContactDatabaseInfo
xs:sequence
xs:element name=id type=xs:string
nillable=true /
xs:element name=name type=xs:string
nillable=true /
xs:element name=fieldDescriptors
maxOccurs=unbounded type=xs:string nillable=true /
xs:element name=fieldGroups
maxOccurs=unbounded type=xs:string nillable=true /
xs:element name=defaultFieldGroupId
type=xs:string nillable=true /
/xs:sequence
/xs:complexType
/xs:schema
   
xs:schema xmlns:ns=http://services.tripolis.com/xsd;

targetNamespace=http://services.tripolis.com/xsd;
attributeFormDefault=qualified elementFormDefault=qualified
xs:element name=getDatabases
xs:complexType
xs:sequence
xs:element name=authInfo
type=ns0:AuthInfo nillable=true /
/xs:sequence

How to avoid item tag for an array

2007-02-28 Thread cudatha
Hi,

I am relatively new to web services. I am using Axis 1.2.
I am implementing a web service for which the consumer is InfoPath 2003
(part of Office 2003 professional pack) which should be a .Net client.

The requirement for web service is:
the web service should return 'n' number of part beans. And each
part bean will have its own list of attributes names and values.

The return type for the web service is
PartBean[]
Part Bean has attributes
partType :String
partNumber: String
attributes: AttributeBean[]
AttributeBean has attributes all strings
  attributeName: 
absoluteName: 
dataType: 
  attributeValue: 
availableValue: 
readOnly: 
  name: 

Below is the response structure I am receiving when this service is
invoked.


Envelope: 
  Body: 
executePartsSearchResponse: 
  executePartsSearchReturn: 
attributes: 
  item: 
attributeName: 
absoluteName: 
dataType: 
attributeValue: Attr Value 1
availableValue: 
readOnly: false
name: Attr 1
partType: MPG Parent Part
partNumber: MPG1
  executePartsSearchReturn: 
attributes: 
  item: 
attributeName: 
absoluteName: 
dataType: 
attributeValue: Attr Value 1
availableValue: 
readOnly: false
name: Attr 1
partType: MPG Parent Part
partNumber: MPG2



--
Problem here is .Net client (InfoPath) is not able to recognize element
'item'. It is giving below error while parsing the xml response.
Element 'item' is unexpected according to content model of parent
element '{urn:com.micron.plm.wsx.ui.PartsObjectService}attributes'.
Expecting: {urn:com.micron.plm.wsx.ui.PartsObjectService}item.

Is there any easy way to remove 'item' from the xml response. I tried
modifying wsdl file but no success.


I am using wsdd to define the 'beanMapping' for the PartBean,
AttributeBean which looks like as below.
I am using wrapped style for .Net interoperability:

--
deployment name=PartsObjectService
xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
xmlns:xsi=http://www.w3.org/2000/10/XMLSchema-instance;

service name=PartsObjectService provider=java:RPC
style=wrapped use=literal 

namespaceurn:com.micron.plm.wsx.ui.PartsObjectService/namespace

parameter name=className
value=com.micron.plm.wsx.ui.PartsObjectService/
parameter name=allowedMethods
value=executePartsSearch/

beanMapping qname=myNS:com.micron.plm.wsx.ui.PartBean 

xmlns:myNS=urn:com.micron.plm.wsx.ui.PartsObjectService 

languageSpecificType=java:com.micron.plm.wsx.ui.PartBean/

beanMapping qname=myNS:com.micron.plm.wsx.ui.AttributeBean 

xmlns:myNS=urn:com.micron.plm.wsx.ui.PartsObjectService 

languageSpecificType=java:com.micron.plm.wsx.ui.AttributeBean/


/service
/deployment

The wsdl generated by axis is as below:
---
?xml version=1.0 encoding=UTF-8?
wsdl:definitions
targetNamespace=urn:com.micron.plm.wsx.ui.PartsObjectService
xmlns:impl=urn:com.micron.plm.wsx.ui.PartsObjectService
xmlns:intf=urn:com.micron.plm.wsx.ui.PartsObjectService
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://www.w3.org/1999/XMLSchema;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns=http://schemas.xmlsoap.org/wsdl/;
!--WSDL created by Apache Axis version: 1.2alpha
Built on Mar 10, 2006 (12:28:53 PST)--
 wsdl:types
  schema xmlns=http://www.w3.org/2001/XMLSchema;
targetNamespace=urn:com.micron.plm.wsx.ui.PartsObjectService
elementFormDefault=qualified
   complexType name=com.micron.plm.wsx.ui.AttributeBean
sequence
 element name=attributeName nillable=true type=xsd:string/
 element name=absoluteName nillable=true type=xsd:string/
 element name=dataType nillable=true type=xsd:string/
 element name=attributeValue nillable=true type=xsd:string/
 element name=availableValue nillable=true type=xsd:string/
 element name=readOnly type=xsd:boolean/
 element name=name nillable=true type=xsd:string/
/sequence
   /complexType
   complexType name=ArrayOfcom.micron.plm.wsx.ui.AttributeBean
sequence
 element name=item
type=impl:com.micron.plm.wsx.ui.AttributeBean minOccurs=0
maxOccurs=unbounded/
/sequence
   /complexType
   complexType 

Invalid character err in SOAP Response.

2007-02-28 Thread SMT Palanikumar

Hi ,
I am using saaj for invoking webservice deployed on axis2-1.1.1 . I
am getting a invalid character err . the soap message is wellformed .
below is the soap message and the stacktrace .

?xml version=1.0 encoding=utf-8?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
soapenv:Header/
soapenv:Body
QueryResponse xmlns=http://somename/xsd/;
Query
Query1
NameEmpty Name/Name
/Query1
/Query
/QueryResponse
/soapenv:Body
/soapenv:Envelope

org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal
XML character is specified.
at 
org.apache.axiom.om.impl.dom.DocumentImpl.checkQName(DocumentImpl.java:464)
at 
org.apache.axiom.om.impl.dom.DocumentImpl.createElementNS(DocumentImpl.java:201)
at 
org.apache.axis2.saaj.SOAPBodyImpl.addChildElement(SOAPBodyImpl.java:133)
at 
org.apache.axis2.saaj.SOAPConnectionImpl.toSAAJElement(SOAPConnectionImpl.java:257)
at 
org.apache.axis2.saaj.SOAPConnectionImpl.getSOAPMessage(SOAPConnectionImpl.java:210)
at 
org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnectionImpl.java:154)
at 
org.apache.axis2.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:118)

looks like the NCName is not fine. Is there any problem with the xmlns
being anonymous or empty ? .

Please , let me know .

Thanks,
Palanikumar
--
You are the creator of your own destiny

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



Axis2: Problems while deploying the axis2.war within an ear-file to JBoss

2007-02-28 Thread Ines Dannehl
Hi all,

 

I try to deploy our own webservice created with Axis2 to JBoss 4.03SP1.
Therefore I created an own axis2.war containing the new webservice
TestWebserviceService.aar in the services directory of the axis2.war.
The webservice uses an EJB which is contained in a jar-file.

The webservice works fine when I copy both the jar-file and the
axis2.war file to the JBoss deploy directory.

Now, I created an ear-file MyApp.ear containing the EJB jar-file and the
new axis2.war. When I deploy this ear-file to the JBoss all things seem
to be okay. JBoss tells me that the new webservice is active. 

But I cannot access this webservice. I tried it with

 

http://127.0.0.1:8080/axis2/services/TestWebserviceService

 

from the client what works in the first case (both files deployed).

 

A look at the JBoss tmp/deploy directory shows me that the webservice is
situated in a tmp...MyApp.ear-contents subdirectory now. It was directly
in the tmp/deploy directory before. I think that is the reason of having
no access.

 

Is there any idea how to modify the url to get a connection to the
webservice? I already tried

 

http://127.0.0.1:8080/MyApp/axis2/services/TestWebserviceService

 

but without success.

 

Please help!

 

Thanks

Ines

 



Re: [AXIS2] Echo ws with headers

2007-02-28 Thread Lorenzo
thx, but which context i should use?

this:
  opContext.getMessageContext( WSDLConstants.MESSAGE_LABEL_IN_VALUE )
and this:
  getCurrentMessageContext()
return the incoming MessageContext;

this one:   
  opContext.getMessageContext( WSDLConstants.MESSAGE_LABEL_OUT_VALUE );
returns the outgoing MessageContext, but only in the out pipe, in the
service return NULL...

And again, which is the easiest and lighter way to clone incoming
message parts in the outgoing message?

Thx again..

On mer, 2007-02-28 at 10:18 +0530, keith chapman wrote:
 R you trying to add cusom SOAP headers to the response message? If so
 you can try the following in the message Receiver.
 
 // Create a SOAPHeader block
 SOAPHeaderBlock soapHeader = soapFactory.createSOAPHeaderBlock (); 
 
 // Add the SOAP header to the envelop
 msgContext.getEnvelope.getHeader().addChild(soapHeader);
 
 Hope this might help.
 
 Thanks,
 Keith
 
 On 2/28/07, Cencio1980 [EMAIL PROTECTED] wrote:
 Hi,
  
 i'm trying to make a simple echo ws in axis2, but i loose soap
 headers in the response message.
  
 Now i'm trying to copy headers from request message to
 response message with an handler in the out pipe, but i have
 to iterate on each header and add it one by one and i'd like
 to avoid this method.
  
 I do this in the out pipe because response message context is
 null in service and avaiable only in the out pipe.. why?
  
 Some1 can help me?
  
 thx!
 
 
 
 -- 
 Keith Chapman
 WSO2 Inc.
 Oxygen for Web Services Developers.
 http://wso2.org/


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



Re: List or object array in response?

2007-02-28 Thread Ronald Pieterse
After some more research I discovered that it does have to do with the 
spring involvement; I get the *java.lang.IllegalArgumentException: null 
rcl* when I try to return a custom object array like an arry of 
ContactDatabaseInfo objects.
Only then does it fail. When I try to return an array of Strings it 
works fine.


Any thoughts on that?

Deepal Jayasinghe wrote:

Hi Ronald ;

Can you please attach other relevant code as well the client code .

Thanks
Deepal

  

Absolutely, thanks for the quick reply!

This is my service operation:

public ListContactDatabaseInfo getDatabases(AuthInfo authInfo)
{
ClientDomain client =
clientDomainManager.findByLabel(authInfo.getOrganization());
if (client == null) {
throw new TripolisSecurityException(client not found);
}
   
User user =

userManager.findByNameAndClientDomainId(authInfo.getUserName(),
client.getId());
if (user == null) {
throw new TripolisSecurityException(user not found);
}
   
ListContactDatabase databases =

contactDatabaseManager.findByClientDomain(client.getId());
ArrayListContactDatabaseInfo databaseInfos = new
ArrayListContactDatabaseInfo();
   
for (ContactDatabase database : databases) {

databaseInfos.add(
new ContactDatabaseInfo(
database.getId().getEncryptedStringValue(),
database.getName()
)
);
}
return databaseInfos;
}

Note: The returning of an actual ArrayList I got from a posting on the
mailing list. Before I tried to return an Array and a List of
ContactDatabaseInfo objects.

With the use of Spring I have public setters in my service class
(managers that are injected) which are exposed in the generated wsdl,
so I use a custom wsdl where I removed these sertters:

wsdl:definitions
xmlns:axis2=http://services.tripolis.com;
xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/;
xmlns:http=http://schemas.xmlsoap.org/wsdl/http/;
xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/;
xmlns:ns0=http://model.services.tripolis.com/xsd;
xmlns:ns1=http://security.business.tripolis.com/xsd;
xmlns:ns3=http://datamanager.contact.business.tripolis.com/xsd;
xmlns:ns2=http://services.tripolis.com/xsd;
xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
targetNamespace=http://services.tripolis.com;
   
wsdl:documentationPrototype of the dialogue

service/wsdl:documentation
wsdl:types
   
xs:schema xmlns:ax22=http://model.services.tripolis.com/xsd;

targetNamespace=http://model.services.tripolis.com/xsd;
attributeFormDefault=qualified elementFormDefault=qualified
xs:element name=AuthInfo type=ax22:AuthInfo /
xs:complexType name=AuthInfo
xs:sequence
xs:element name=organization type=xs:string
nillable=true /
xs:element name=userName type=xs:string
nillable=true /
xs:element name=password type=xs:string
nillable=true /
/xs:sequence
/xs:complexType
xs:element name=ContactDatabaseInfo
type=ax22:ContactDatabaseInfo /
xs:complexType name=ContactDatabaseInfo
xs:sequence
xs:element name=id type=xs:string
nillable=true /
xs:element name=name type=xs:string
nillable=true /
xs:element name=fieldDescriptors
maxOccurs=unbounded type=xs:string nillable=true /
xs:element name=fieldGroups
maxOccurs=unbounded type=xs:string nillable=true /
xs:element name=defaultFieldGroupId
type=xs:string nillable=true /
/xs:sequence
/xs:complexType
/xs:schema
   
xs:schema xmlns:ns=http://services.tripolis.com/xsd;

targetNamespace=http://services.tripolis.com/xsd;
attributeFormDefault=qualified elementFormDefault=qualified
xs:element name=getDatabases
xs:complexType
xs:sequence
xs:element name=authInfo
type=ns0:AuthInfo nillable=true /
/xs:sequence
/xs:complexType
/xs:element
xs:element name=getDatabasesResponse
xs:complexType
xs:sequence
xs:element name=return
maxOccurs=unbounded type=ns0:ContactDatabaseInfo nillable=true /
/xs:sequence
/xs:complexType
/xs:element
/xs:schema
/wsdl:types
   
wsdl:message name=getDatabasesMessage

wsdl:part name=part1 element=ns2:getDatabases /
/wsdl:message
wsdl:message name=getDatabasesResponse
wsdl:part name=part1 

Re: [AXIS2] Echo ws with headers

2007-02-28 Thread keith chapman

If you try  getCurrentMessageContext() from the skeleton what you get is the
incoming messageContext. In order to add custom headers to the response you
should be adding it to the outgoing messageContext. The envelop is added to
the outgoing messageContext inside the messageReceiver, which means you will
have to hack the MR in order to add the header.

Thanks,
Keith.

On 2/28/07, Lorenzo [EMAIL PROTECTED] wrote:


thx, but which context i should use?

this:
  opContext.getMessageContext( WSDLConstants.MESSAGE_LABEL_IN_VALUE )
and this:
  getCurrentMessageContext()
return the incoming MessageContext;

this one:
  opContext.getMessageContext( WSDLConstants.MESSAGE_LABEL_OUT_VALUE );
returns the outgoing MessageContext, but only in the out pipe, in the
service return NULL...

And again, which is the easiest and lighter way to clone incoming
message parts in the outgoing message?

Thx again..

On mer, 2007-02-28 at 10:18 +0530, keith chapman wrote:
 R you trying to add cusom SOAP headers to the response message? If so
 you can try the following in the message Receiver.

 // Create a SOAPHeader block
 SOAPHeaderBlock soapHeader = soapFactory.createSOAPHeaderBlock ();

 // Add the SOAP header to the envelop
 msgContext.getEnvelope.getHeader().addChild(soapHeader);

 Hope this might help.

 Thanks,
 Keith

 On 2/28/07, Cencio1980 [EMAIL PROTECTED] wrote:
 Hi,

 i'm trying to make a simple echo ws in axis2, but i loose soap
 headers in the response message.

 Now i'm trying to copy headers from request message to
 response message with an handler in the out pipe, but i have
 to iterate on each header and add it one by one and i'd like
 to avoid this method.

 I do this in the out pipe because response message context is
 null in service and avaiable only in the out pipe.. why?

 Some1 can help me?

 thx!



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


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





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


Data type for sending a file

2007-02-28 Thread Noé Amorim

Hi.
I'm trying to send a file through SOAP, i use Zend Studio to create my
wsdl, according with annotations in the code, usually like this.
/**
* @param string $param
* @return string Response
*/

What annotation should i use to make WSDL2Java generate the right
stubs for sending files through SOAP?
Although if i use @param integer $param, i get this on wsdl -
type=xsd:integer -, and WSDL2Java translates this into a BigInteger,
i really don't need a BigInterger, a int datatype is enough, any
thoughs how i could avoid getting BigInteger?

Thanks you in advance.

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



RE: [axis2] REST approach

2007-02-28 Thread Nalini Srivastava

Hi, 

I am new to web services. I was looking at the 'userguide' provided with
axis2 distribution. The sample has used AXIOM data binding mechanism.
Can we use any other mechanism in it's place for the same example.

Regards,
Nalini





 
***The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged material. 
Any review,retransmission,dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.***

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



Dynamically Discovering and Binding from server-config.wsdd?

2007-02-28 Thread Donahue, Bill
 

I am using axis 1.4 on a Linux server with multiple Ethernet ports. 

I would like to have my web-service available on either inet address 

but it seem to only be working for the first address.

I have two ports - eth1 inet addr:192.168.110.84  and eth3 inet
addr:192.168.220.84

Is there a way to have the SOAP response served on the same IP as the
client's 

request without hard coding the address in the wsdl or
server-config.wsdd file?

 

Bill D.



[AXIS2] Count attachment?

2007-02-28 Thread Lorenzo
Hi,

i'm migrating from axis to axis2. 

In Axis starting from the MessageContext i did:
  org.apache.axis.Message requestMessage = msgContext.getMessage();
  requestMessage.countAttachment();

Now in Axis2 how can i do this?
Method countAttachment can be found in
org.apache.axis2.saaj.SOAPMessageImpl but how obtain that object
starting from a org.apache.axis2.context.MessageContext?


Thx in advance.



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



authentication and caching

2007-02-28 Thread Espen Falkevik
Hi.
I guess this might not be a very Axis related question, but I got some great 
help before, so maybe some might be able to help me.

I have some webservices running on Axis on Weblogic. I use basic authentication 
to send and retrieve username/password, and then I create an InitialContext 
against getAccess, in my webservices. After creating the InitialContext, I use 
this for looking up an Ejb on my app. server, and then call some method there. 
By doing this, the user is authenticated at the EJB (got an currentSubject and 
this has some privileges assosiated to it) and in all EJBs which are called 
from the first EJB.

Because the creation of the InitialContext is quite costly, I want to cache 
this (or some other object) so that I don't have to call getAccess each time I 
receive a call to my webservice, and second, the currentSubject is correct (got 
the same privileges) in the first EJB and in all other EJB when I access the 
webservice the second time (and later on).

When I do this now, the InitialContext is cached (I get the same id for the 
InitialContext each time), but from the second call (which is the first call 
that use cached version of the initialContext), the currentSubject in the EJB 
doesn't have any privileges assosiated with it.

Does anyone know how I can fix this / work around this problem?

Regards,
Espen







_
Alt i én. Få Yahoo! Mail med adressekartotek, kalender og
notisblokk. http://no.mail.yahoo.com

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



Re: setParam0(OMElement param) or xs:any

2007-02-28 Thread Kay*

I need to pass a variable number of different objs...
I also tried to pass a Vector of Integer (for an example) but axis2
doesn't know how resolve it and it gives me a xs:any ...
I tried also to pass one my class, called Vettore (with an array of
Object or a Vector) but when I generate the stub, it contains an its
Vettore, different from mine...
I can't explain better...
Thank you for your attention!

Kay*

2007/2/28, Deepal Jayasinghe [EMAIL PROTECTED]:

Hi ;

I am talking about smt like below;
public Address[] compute(Man []  data){
 //...
 }

Do not use just Object ,use the actual type you want to use.

Thanks
Deepal

Kay* wrote:

 Thank you for your answer, but I don't understand  can you please
 do an example?Do you mean that I have to change parameters ?
 Thank you very very much!!!

 Kay*

 2007/2/27, Deepal Jayasinghe  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:

 Hi ;

 When you have a method which take Object then there is no way to find
 out the type of that object. That is why it generates WSDL with
 xsd:any.
 To solve that U need to write the method to take the method with
 correct
 Object type (String [] or what ever).

 Thanks
 Deepal

 Kay* wrote:

  Hello! (Sorry for my bad English...)
  My problem is that my service is like this:
 
 
  public Object[] compute(Object[]  data){
   //...
  }
 
  and MyServiceStub.Compute has
 setParam0(org.apache.axiom.om.OMElement
  [] param) and get_return returns an OMElement[]...
  I don't know how to create an OMElement within Object[] ...and
 viceversa.
 
  Please, can you help me ?
 
  Thank you very much!!!
 
  Kay*


 --
 Thanks,
 Deepal
 
 The highest tower is built one brick at a time



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





--
Thanks,
Deepal

The highest tower is built one brick at a time



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




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



Re: setParam0(OMElement param) or xs:any

2007-02-28 Thread Nilesh Ghorpade
Hi,

There is a utility tool in the AXIS 2 API's namely the BeanUtil I believe. This 
class has some static methods which would enable you to convert from an Object 
to an OMElement and vice versa.

Hope that helps.

Regards

Nilesh


- Original Message 
From: Kay* [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Wednesday, February 28, 2007 7:27:53 PM
Subject: Re: setParam0(OMElement param) or xs:any


I need to pass a variable number of different objs...
I also tried to pass a Vector of Integer (for an example) but axis2
doesn't know how resolve it and it gives me a xs:any ...
I tried also to pass one my class, called Vettore (with an array of
Object or a Vector) but when I generate the stub, it contains an its
Vettore, different from mine...
I can't explain better...
Thank you for your attention!

Kay*

2007/2/28, Deepal Jayasinghe [EMAIL PROTECTED]:
 Hi ;

 I am talking about smt like below;
 public Address[] compute(Man []  data){
  //...
  }

 Do not use just Object ,use the actual type you want to use.

 Thanks
 Deepal

 Kay* wrote:

  Thank you for your answer, but I don't understand  can you please
  do an example?Do you mean that I have to change parameters ?
  Thank you very very much!!!
 
  Kay*
 
  2007/2/27, Deepal Jayasinghe  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]:
 
  Hi ;
 
  When you have a method which take Object then there is no way to find
  out the type of that object. That is why it generates WSDL with
  xsd:any.
  To solve that U need to write the method to take the method with
  correct
  Object type (String [] or what ever).
 
  Thanks
  Deepal
 
  Kay* wrote:
 
   Hello! (Sorry for my bad English...)
   My problem is that my service is like this:
  
  
   public Object[] compute(Object[]  data){
//...
   }
  
   and MyServiceStub.Compute has
  setParam0(org.apache.axiom.om.OMElement
   [] param) and get_return returns an OMElement[]...
   I don't know how to create an OMElement within Object[] ...and
  viceversa.
  
   Please, can you help me ?
  
   Thank you very much!!!
  
   Kay*
 
 
  --
  Thanks,
  Deepal
  
  The highest tower is built one brick at a time
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 
 
 
 

 --
 Thanks,
 Deepal
 
 The highest tower is built one brick at a time



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



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


 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

Using Rampert with Axis2, encrypt attachment

2007-02-28 Thread Jochen Zink
Hallo,

I'm using axis2 1.1.1 with the rampart module to sign and encrypt the soap 
messages. 

I have used the sample 6 from rampart and have done a little change to the 
example. The service handles a file which is send with swa.

To check, if the messages are signed and encrypted I take look to the messages 
with tcpmon tool. 

The messages are encrypted, but I can read the attachment as clear text (its an 
xml document). 

Is there any option to encrypt the attachment to? 

My service.xml looks like this:


service name=RampartFileService scope=application


descriptionFileService/description

operation name=uploadFile
messageReceiver 
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation

parameter 
name=ServiceClassde.nepatec.jzink.webservice.RampertFileService/parameter

module ref=rampart /

parameter name=InflowSecurity
action
itemsTimestamp Signature Encrypt/items

passwordCallbackClassde.nepatec.jzink.webservice.PWCBHandler/passwordCallbackClass

signaturePropFileservice.properties/signaturePropFile   
/action
/parameter

parameter name=OutflowSecurity
action
itemsTimestamp Signature Encrypt/items
userservice/user

passwordCallbackClassde.nepatec.jzink.webservice.PWCBHandler/passwordCallbackClass

signaturePropFileservice.properties/signaturePropFile

signatureKeyIdentifierDirectReference/signatureKeyIdentifier

encryptionKeyIdentifierSKIKeyIdentifier/encryptionKeyIdentifier
encryptionUseruseReqSigCert/encryptionUser
/action
/parameter

/service



Thanks a lot!
__
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!

Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131


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



Re: [AXIS2] Count attachment?

2007-02-28 Thread Thilina Gunarathne

You can try something like following..
requestMessage.getAllContentIDs().size();

~Thilina

On 2/28/07, Lorenzo [EMAIL PROTECTED] wrote:

Hi,

i'm migrating from axis to axis2.

In Axis starting from the MessageContext i did:
  org.apache.axis.Message requestMessage = msgContext.getMessage();
  requestMessage.countAttachment();

Now in Axis2 how can i do this?
Method countAttachment can be found in
org.apache.axis2.saaj.SOAPMessageImpl but how obtain that object
starting from a org.apache.axis2.context.MessageContext?


Thx in advance.



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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: [axis2] REST approach

2007-02-28 Thread Thilina Gunarathne

http://ws.apache.org/axis2/1_1_1/userguide-creatingclients.html#createclients
http://ws.apache.org/axis2/1_1_1/userguide-creatingclients-xmlbeans.html
http://ws.apache.org/axis2/1_1_1/userguide-creatingclients-jibx.html

Hope the above docs will help you..

~Thilina

On 2/28/07, Nalini Srivastava [EMAIL PROTECTED] wrote:


Hi,

I am new to web services. I was looking at the 'userguide' provided with
axis2 distribution. The sample has used AXIOM data binding mechanism.
Can we use any other mechanism in it's place for the same example.

Regards,
Nalini






***The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged material. 
Any review,retransmission,dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.***

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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: Web Service sent hook

2007-02-28 Thread Thilina Gunarathne

AFAIK this is not possible...

~Thilina

On 2/22/07, Punnoose, Roshan [EMAIL PROTECTED] wrote:





Well from looking at the code, I don't think it is implemented.



After the AxisEngine.send function there is no call to invoke any
post-dispatch handlers. Though, it would be pretty easy to implement. Is
that something I could do and submit a patch?




Roshan Punnoose

Phone: 301-497-6039

 


From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 19, 2007 1:13 PM
 To: axis-user@ws.apache.org
 Subject: RE: Web Service sent hook




Does anyone know if this is possible?




Roshan Punnoose

Phone: 301-497-6039

 


From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 15, 2007 11:11 AM
 To: axis-user@ws.apache.org
 Subject: Web Service sent hook



I see that there are handlers/hooks when a request comes in and a response
leaves a Web Service. But is there a way I can get a hook into the moment
when the response has been completely sent from the Web Service. We are
sending a file using MTOM and DataHandlers back to a client, and I want to
delete the file when the file has been sent, but not when there has been an
error in transmission. Any ideas?



Roshan Punnoose

Phone: 301-497-6039





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: [AXIS2] Passing exceptions from the server to the client

2007-02-28 Thread Jose Benjamin Perez Soto

Hi Jeff,

That is my problem, in the generated code, there is a class that is the one
that represents the exception in the server, but never takes the exception,
if it does not go away to a AxisFault. All exception that sends to me in the
generated code, is a AxisFault, and that I do not like, as I solve this?

it is something thus:

public class Test {
   public int getInteger(String cad) throws ErrorDeNumero {
   int res = 0;
   try {
   res = Integer.parseInt(cad);
   }
   catch (NumberFormatException e) {
   throw new ErrorDeNumero(La cadena no es numero valido);
   }
   return res;
   }
}

public class ErrorDeNumero extends AxisFault {

   public ErrorDeNumero(String msg) {
   super(msg);
   }
}
--- services.xml
serviceGroup
   service name=Test
   parameter name=ServiceClass locked=XSD:false
   com.test.service.Test
   /parameter
   operation name=getInteger mep=
http://www.w3.org/2004/08/wsdl/in-out;
   messageReceiver class=
org.apache.axis2.rpc.receivers.RPCMessageReceiver/
   /operation
   messageReceivers
   messageReceiver
   mep=http://www.w3.org/2004/08/wsdl/in-only;
   class=
org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver/
   messageReceiver
   mep=http://www.w3.org/2004/08/wsdl/in-out;
   class=org.apache.axis2.rpc.receivers.RPCMessageReceiver
/
   /messageReceivers
   /service
/serviceGroup


On 2/26/07, Walker, Jeff [EMAIL PROTECTED] wrote:


 Jose,
I think exception handling in web services in general is supposed to be
propagated as SOAP Faults (i.e. an xml structure), not actual Java
exceptions. So, you would define a SOAP Fault in the WSDL (or possibly in
some XML Schema) and the WSDL2Java generator would create some Java
exception classes that represent the SOAP Fault on the server-side.


So the process is something like:

1. Web service code on server runs into a bad condition and creates an
object of an exception class that represents a SOAP Fault. (The exception
subclass(s) are generated for you by Axis, or possibly JAXB).
2. Axis marshals the thrown exception into a SOAP Fault for transport
across the wire.
3. Client receives the SOAP Fault and the stub sitting on the client-side
unmarshals it back into an exception subclass the client code can
understand. (The SOAP Fault has some properties that are essentially strings
that describe the problem that happened on the server. When the exception
subclass is instantiated in the client, those strings fields are populated
for you by the stub).



Re: setParam0(OMElement param) or xs:any

2007-02-28 Thread Kay*

Thank you for your answer! I suppose that BeanUtil's method goes only
with javabean obj, but I'll try to apply to my project ! (sorry for my
English)
Thank you, thank you very much

Kay*

2007/2/28, Nilesh Ghorpade [EMAIL PROTECTED]:


Hi,

There is a utility tool in the AXIS 2 API's namely the BeanUtil I believe.
This class has some static methods which would enable you to convert from an
Object to an OMElement and vice versa.

Hope that helps.

Regards

Nilesh


- Original Message 
From: Kay* [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Wednesday, February 28, 2007 7:27:53 PM
Subject: Re: setParam0(OMElement param) or xs:any


I need to pass a variable number of different objs...
I also tried to pass a Vector of Integer (for an example) but axis2
doesn't know how resolve it and it gives me a xs:any ...
I tried also to pass one my class, called Vettore (with an array of
Object or a Vector) but when I generate the stub, it contains an its
Vettore, different from mine...
I can't explain better...
Thank you for your attention!

Kay*

2007/2/28, Deepal Jayasinghe [EMAIL PROTECTED]:
 Hi ;

 I am talking about smt like below;
 public Address[] compute(Man []  data){
  //...
  }

 Do not use just Object ,use the actual type you want to use.

 Thanks
 Deepal

 Kay* wrote:

  Thank you for your answer, but I don't understand  can you please
  do an example?Do you mean that I have to change parameters ?
  Thank you very very much!!!
 
  Kay*
 
  2007/2/27, Deepal Jayasinghe  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]:
 
  Hi ;
 
  When you have a method which take Object then there is no way to
find
  out the type of that object. That is why it generates WSDL with
  xsd:any.
  To solve that U need to write the method to take the method with
  correct
  Object type (String [] or what ever).
 
  Thanks
  Deepal
 
  Kay* wrote:
 
   Hello! (Sorry for my bad English...)
   My problem is that my service is like this:
  
  
   public Object[] compute(Object[]  data){
//...
   }
  
   and MyServiceStub.Compute has
  setParam0(org.apache.axiom.om.OMElement
   [] param) and get_return returns an OMElement[]...
   I don't know how to create an OMElement within Object[] ...and
  viceversa.
  
   Please, can you help me ?
  
   Thank you very much!!!
  
   Kay*
 
 
  --
  Thanks,
  Deepal
 

  The highest tower is built one brick at a time
 
 
 
 
-
  To unsubscribe, e-mail:
[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 
 
 
 

 --
 Thanks,
 Deepal


 The highest tower is built one brick at a time




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



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


 
Looking for earth-friendly autos?
 Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.


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



Remote Deployment API

2007-02-28 Thread Jorge Jiménez C.
I need to dynamically register (and map to my EJBs) some services and 
(reading some old posts in the list) the only way to do that, is to 
create and deploy the aar files on the appserver. If there is another 
way (implementing some interface and registering as a listener or 
something else, please let me know).


The question: ¿Where can I find some documentation to use the Remote 
Deployment API mentioned in some posts?


Thanks in advance. Just a starting point would be good.

J

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



Re: Error returning MTOM document

2007-02-28 Thread Thilina Gunarathne

This is fixed in the SVN head... If possible please try to use a
nightly build of Axiom..

Thanks,
Thilina

On 2/26/07, Punnoose, Roshan [EMAIL PROTECTED] wrote:





Ok, I'm not sure why, but after a little debugging, I am beginning to find
that the MIMEOutputUtils.java does not flush the BufferedOutputStream (the
response) so the boundary that is added to it never gets to the client. Any
ideas why?




Roshan Punnoose

Phone: 301-497-6039

 


From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 26, 2007 11:35 AM
 To: axis-user@ws.apache.org
 Subject: Error returning MTOM document




Hi,



When a client invokes my server side web service running in WebLogic 8.1,
the request gets to the server properly, but on the way back, the response
seems garbled. It is missing the last MTOM boundary tag. Here is the
response I see in TCPMon:



HTTP/1.1 200 OK

Date: Mon, 26 Feb 2007 16:32:33 GMT

Server: WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 WebLogic
Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 WebLogic Server 8.1 SP2
Fri Dec 5 15:01:51 PST 2003 316284

Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_D6E6F9ADB535E26BAA1172507554129;
type=application/xop+xml;
start=0.urn:uuid:[EMAIL PROTECTED];
start-info=application/soap+xml; charset=UTF-8

Transfer-Encoding: chunked



0f94

--MIMEBoundaryurn_uuid_D6E6F9ADB535E26BAA1172507554129

content-type: application/xop+xml; charset=UTF-8;
type=application/soap+xml;

content-transfer-encoding: binary

content-id:
0.urn:uuid:[EMAIL PROTECTED]



?xml version='1.0' encoding='UTF-8'?soapenv:Envelope
xmlns:wsa=http://www.w3.org/2005/08/addressing;
xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;…
soapenv:Envelope







The response is missing the MIME boundary and instead has a ? Any ideas
why?



Roshan Punnoose

Phone: 301-497-6039


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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



Re: Remote Deployment API

2007-02-28 Thread Angel Todorov

Hi Jorge,

You can take a look at:

https://issues.apache.org/jira/browse/AXIS2-2212

Moreover, you must make sure that in the AxisServlet, the deployer
instance is stored in the SERVLET_CONTEXT, so it can be used later on,
and, most importantly, to have the repoListener synchronized (so that
the scheduler and some remote deployer don't use two instances of a
deployer + configurations).

I haven't included that yet since I want to get any feedback from the
guys about the JIRA-2212 above.

Regards,
Angel

On 2/28/07, Jorge Jiménez C. [EMAIL PROTECTED] wrote:

I need to dynamically register (and map to my EJBs) some services and
(reading some old posts in the list) the only way to do that, is to
create and deploy the aar files on the appserver. If there is another
way (implementing some interface and registering as a listener or
something else, please let me know).

The question: ¿Where can I find some documentation to use the Remote
Deployment API mentioned in some posts?

Thanks in advance. Just a starting point would be good.

J

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




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



Re: Remote Deployment API

2007-02-28 Thread Jorge Jiménez C.
Thanks Angel. I'm sure your help will avoid a lot of head aches in the 
near future, but i need a starting point.


I guess Remote Deployment API is implemented by packages under 
org.apache.axis2.deployment,  but classes in the java-doc are not very 
well documented. ¿Is there any other documentation?


Thanxs

J

Angel Todorov wrote:

Hi Jorge,

You can take a look at:

https://issues.apache.org/jira/browse/AXIS2-2212

Moreover, you must make sure that in the AxisServlet, the deployer
instance is stored in the SERVLET_CONTEXT, so it can be used later on,
and, most importantly, to have the repoListener synchronized (so that
the scheduler and some remote deployer don't use two instances of a
deployer + configurations).

I haven't included that yet since I want to get any feedback from the
guys about the JIRA-2212 above.

Regards,
Angel

On 2/28/07, Jorge Jiménez C. [EMAIL PROTECTED] wrote:

I need to dynamically register (and map to my EJBs) some services and
(reading some old posts in the list) the only way to do that, is to
create and deploy the aar files on the appserver. If there is another
way (implementing some interface and registering as a listener or
something else, please let me know).

The question: ¿Where can I find some documentation to use the Remote
Deployment API mentioned in some posts?

Thanks in advance. Just a starting point would be good.

J

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




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




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



RE: TimeZone Not Handled Properly In java.util.Date Conversions

2007-02-28 Thread Johnson, Larry D \(LJOHNSON\)
Amila,

 

I finally got some time to test the java.util.Data issue.  The SNAPSHOT
that I downloaded seems to take care of the TimeZone issue I originally
reported; however, I have found one additional issue.  The generated
WSDL for the Date object is as follows:

 

  xs:element name=flightTime type=xs:dateTime/

 

Notice there is no 'nillable' attribute on this definition.  There are
times when this value may be null and the SOAP message sent has that
value set to null.  Here is a snippet from the SOAP message returned:

 

  flightTime xmlns:nil=http://www.w3.org/2001/XMLSchema-instance;
nil:nil=true /

 

As stated earlier, we are deploying POJOs and generate the stubs using
the Axis2 supplied WSDL2Java processor.

 

Any thoughts on why the auto-generated WSDL is not including the
nillable=true attribute for this element?

 

 

Regards,

Larry Johnson



From: Johnson, Larry D (LJOHNSON) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 22, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: TimeZone Not Handled Properly In java.util.Date Conversions

 

Amiila,

 

We are deploying our service via POJOs.  I copied a version of saaj into
the axis2 lib directory and the problem was corrected.  I just wanted to
let you know that the SNAPSHOT was not a complete distribution since the
team moved to providing the SOAPEnvelope impl class.

 

I am still trying to get some time to test the Date issue and hopefully
will get that time today.  I will let you know the results.

 

Regards,

Larry Johnson

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 21, 2007 10:54 PM
To: axis-user@ws.apache.org
Subject: Re: TimeZone Not Handled Properly In java.util.Date Conversions

 

 

On 2/21/07, Johnson, Larry D (LJOHNSON) [EMAIL PROTECTED] wrote:

Amila,

 

I downloaded the axis2-SNAPSHOT.zip distribution and tried to rerun the
test.  When the server tries to return the SOAP message, I now receive
the following exception:

 

Caused by: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPEnvelope

   at
com.arinc.afd.clfengine.processor.CommandProcessor.sendCommandToJAGS(Unk
nown Source)

   at
com.arinc.afd.clfengine.processor.jl.GetSeatAvailabilityProcessorJL.proc
essHostRequest

  (Unknown Source)

 

Digging into a little shows that in this SNAPSHOT, the
axis2-saaj-SNAPSHOT.jar file no longer contains a SOAPEvelope class;
however, it does contain a SOAPEnvelopeImpl class.  This impl class
references the javax.xml.soap.SOAPEvelope class from the standard saaj
distribution; however, saaj was not provided within the distribution.

 

I deployed the SNAPSHOT by downloading the archive and then exploding
it.  Once expanded, I build the WAR file by going into the
{path.to.axis2}/axis2-SNAPSHOT/webapp and issuing the following command:
'ant'.  The resulting axis2.war was built without error and was found
residing in the 'dist' directory.  The WAR file was then moved into the
Tomcat 'webapps' directory (after removing the prior distribution).

 

Can you explain how you create your service as well. I hope you creating
it with a POJO class. Then that 
Caused by: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPEnvelope
is not most probably relates to saaj. but it may be an OM problem. Can
you please send your wsdl or POJO then I can have a try.


-- 
Amila Suriarachchi,
WSO2 Inc. 



RE: TimeZone Not Handled Properly In java.util.Date Conversions

2007-02-28 Thread Jorge Fernandez
Hi Larry,

I had the same problem. And I was asked to open a JIRA few days ago: AXIS2-2239

regards,

Jorge Fernandez

Johnson, Larry D (LJOHNSON) [EMAIL PROTECTED] escribió:v\:* 
{behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* 
{behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} 
st1\:*{behavior:url(#default#ieooui) } Amila,
   
  I finally got some time to test the java.util.Data issue.  The SNAPSHOT that 
I downloaded seems to take care of the TimeZone issue I originally reported; 
however, I have found one additional issue.  The generated WSDL for the Date 
object is as follows:
   
xs:element name=flightTime type=xs:dateTime/
   
  Notice there is no ‘nillable’ attribute on this definition.  There are times 
when this value may be null and the SOAP message sent has that value set to 
null.  Here is a snippet from the SOAP message returned:
   
flightTime xmlns:nil=http://www.w3.org/2001/XMLSchema-instance; 
nil:nil=true /
   
  As stated earlier, we are deploying POJOs and generate the stubs using the 
Axis2 supplied WSDL2Java processor.
   
  Any thoughts on why the auto-generated WSDL is not including the 
nillable=”true” attribute for this element?
   
   
Regards,
  Larry Johnson
  
  
-
  
  From: Johnson, Larry D (LJOHNSON) [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 22, 2007 11:50 AM
 To: axis-user@ws.apache.org
 Subject: RE: TimeZone Not Handled Properly In java.util.Date Conversions
  
   
  Amiila,
   
  We are deploying our service via POJOs.  I copied a version of saaj into the 
axis2 lib directory and the problem was corrected.  I just wanted to let you 
know that the SNAPSHOT was not a complete distribution since the team moved to 
providing the SOAPEnvelope impl class.
   
  I am still trying to get some time to test the Date issue and hopefully will 
get that time today.  I will let you know the results.
   
  Regards,
  Larry Johnson
   
  
-
  
  From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 21, 2007 10:54 PM
 To: axis-user@ws.apache.org
 Subject: Re: TimeZone Not Handled Properly In java.util.Date Conversions
  
   
   
On 2/21/07, Johnson, Larry D (LJOHNSON) [EMAIL PROTECTED] wrote:
  Amila,
   
  I downloaded the axis2-SNAPSHOT.zip distribution and tried to rerun the test. 
 When the server tries to return the SOAP message, I now receive the following 
exception:
   
  Caused by: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPEnvelope
 at 
com.arinc.afd.clfengine.processor.CommandProcessor.sendCommandToJAGS(Unknown 
Source)
 at 
com.arinc.afd.clfengine.processor.jl.GetSeatAvailabilityProcessorJL.processHostRequest
(Unknown Source)
   
  Digging into a little shows that in this SNAPSHOT, the 
axis2-saaj-SNAPSHOT.jar file no longer contains a SOAPEvelope class; however, 
it does contain a SOAPEnvelopeImpl class.  This impl class references the 
javax.xml.soap.SOAPEvelope class from the standard saaj distribution; however, 
saaj was not provided within the distribution.
   
  I deployed the SNAPSHOT by downloading the archive and then exploding it.  
Once expanded, I build the WAR file by going into the 
{path.to.axis2}/axis2-SNAPSHOT/webapp and issuing the following command: 'ant'. 
 The resulting axis2.war was built without error and was found residing in the 
'dist' directory.  The WAR file was then moved into the Tomcat 'webapps' 
directory (after removing the prior distribution).
   
  
  
  
  Can you explain how you create your service as well. I hope you creating it 
with a POJO class. Then that 
 Caused by: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPEnvelope is not 
most probably relates to saaj. but it may be an OM problem. Can you please send 
your wsdl or POJO then I can have a try.
 
 
 -- 
 Amila Suriarachchi,
 WSO2 Inc. 
  
  


-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

RE: TimeZone Not Handled Properly In java.util.Date Conversions

2007-02-28 Thread Johnson, Larry D \(LJOHNSON\)
Jorge,

 

Thanks, I'll watch that JIRA... :-)

 

Regards,

Larry Johnson

 



From: Jorge Fernandez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 28, 2007 9:47 AM
To: axis-user@ws.apache.org
Subject: RE: TimeZone Not Handled Properly In java.util.Date Conversions

 

Hi Larry,

I had the same problem. And I was asked to open a JIRA few days ago: AXIS2-2239

regards,

Jorge Fernandez

Johnson, Larry D (LJOHNSON) [EMAIL PROTECTED] escribió:

Amila,

 

I finally got some time to test the java.util.Data issue.  The SNAPSHOT that I 
downloaded seems to take care of the TimeZone issue I originally reported; 
however, I have found one additional issue.  The generated WSDL for the Date 
object is as follows:

 

  xs:element name=flightTime type=xs:dateTime/

 

Notice there is no 'nillable' attribute on this definition.  There are times 
when this value may be null and the SOAP message sent has that value set to 
null.  Here is a snippet from the SOAP message returned:

 

  flightTime xmlns:nil=http://www.w3.org/2001/XMLSchema-instance; 
nil:nil=true /

 

As stated earlier, we are deploying POJOs and generate the stubs using the 
Axis2 supplied WSDL2Java processor.

 

Any thoughts on why the auto-generated WSDL is not including the 
nillable=true attribute for this element?

 

 

Regards,

Larry Johnson



From: Johnson, Larry D (LJOHNSON) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 22, 2007 11:50 AM
To: axis-user@ws.apache.org
Subject: RE: TimeZone Not Handled Properly In java.util.Date Conversions

 

Amiila,

 

We are deploying our service via POJOs.  I copied a version of saaj into the 
axis2 lib directory and the problem was corrected.  I just wanted to let you 
know that the SNAPSHOT was not a complete distribution since the team moved to 
providing the SOAPEnvelope impl class.

 

I am still trying to get some time to test the Date issue and hopefully will 
get that time today.  I will let you know the results.

 

Regards,

Larry Johnson

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 21, 2007 10:54 PM
To: axis-user@ws.apache.org
Subject: Re: TimeZone Not Handled Properly In java.util.Date Conversions

 

 

On 2/21/07, Johnson, Larry D (LJOHNSON) [EMAIL PROTECTED] wrote:

Amila,

 

I downloaded the axis2-SNAPSHOT.zip distribution and tried to rerun the test.  
When the server tries to return the SOAP message, I now receive the following 
exception:

 

Caused by: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPEnvelope

   at 
com.arinc.afd.clfengine.processor.CommandProcessor.sendCommandToJAGS(Unknown 
Source)

   at 
com.arinc.afd.clfengine.processor.jl.GetSeatAvailabilityProcessorJL.processHostRequest

  (Unknown Source)

 

Digging into a little shows that in this SNAPSHOT, the axis2-saaj-SNAPSHOT.jar 
file no longer contains a SOAPEvelope class; however, it does contain a 
SOAPEnvelopeImpl class.  This impl class references the 
javax.xml.soap.SOAPEvelope class from the standard saaj distribution; however, 
saaj was not provided within the distribution.

 

I deployed the SNAPSHOT by downloading the archive and then exploding it.  Once 
expanded, I build the WAR file by going into the 
{path.to.axis2}/axis2-SNAPSHOT/webapp and issuing the following command: 'ant'. 
 The resulting axis2.war was built without error and was found residing in the 
'dist' directory.  The WAR file was then moved into the Tomcat 'webapps' 
directory (after removing the prior distribution).

 

Can you explain how you create your service as well. I hope you creating it 
with a POJO class. Then that 
Caused by: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPEnvelope is not 
most probably relates to saaj. but it may be an OM problem. Can you please send 
your wsdl or POJO then I can have a try.


-- 
Amila Suriarachchi,
WSO2 Inc. 

 

  




LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com 
http://us.rd.yahoo.com/mail/es/tagline/messenger/*http:/es.voice.yahoo.com/ 



Re: Problem installing/running CodeGen Eclipse plugin

2007-02-28 Thread Tom Preston

I am having the same problem when trying to run the codegen plugin.

I don't have the given ECLIPSE_WORKSPACE/.metadata/.log 
directory structure under my current Eclipse 
install (which is 3.2.0).

Tom Preston




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



RE: Web Service sent hook

2007-02-28 Thread Punnoose, Roshan
Thanks for the reply. I was able to override the
CommonsHttpTransportSender to perform my logic after the response had
been sent. The only problem is, I had to make sure that I could tell
when it was an actual response to a request. But nothing to check in.

Also, why is it not possible? Wouldn't it be as easy as creating
Dispatch handlers? Just have post-dispatch handlers?

Roshan Punnoose
Phone: 301-497-6039

-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 28, 2007 9:27 AM
To: axis-user@ws.apache.org
Subject: Re: Web Service sent hook

AFAIK this is not possible...

~Thilina

On 2/22/07, Punnoose, Roshan [EMAIL PROTECTED] wrote:




 Well from looking at the code, I don't think it is implemented.



 After the AxisEngine.send function there is no call to invoke any
 post-dispatch handlers. Though, it would be pretty easy to implement.
Is
 that something I could do and submit a patch?




 Roshan Punnoose

 Phone: 301-497-6039

  


 From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 19, 2007 1:13 PM
  To: axis-user@ws.apache.org
  Subject: RE: Web Service sent hook




 Does anyone know if this is possible?




 Roshan Punnoose

 Phone: 301-497-6039

  


 From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 15, 2007 11:11 AM
  To: axis-user@ws.apache.org
  Subject: Web Service sent hook



 I see that there are handlers/hooks when a request comes in and a
response
 leaves a Web Service. But is there a way I can get a hook into the
moment
 when the response has been completely sent from the Web Service. We
are
 sending a file using MTOM and DataHandlers back to a client, and I
want to
 delete the file when the file has been sent, but not when there has
been an
 error in transmission. Any ideas?



 Roshan Punnoose

 Phone: 301-497-6039




-- 
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Error returning MTOM document

2007-02-28 Thread Punnoose, Roshan
Thanks! Will check it out

Roshan Punnoose
Phone: 301-497-6039

-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 28, 2007 9:26 AM
To: axis-user@ws.apache.org
Subject: Re: Error returning MTOM document

This is fixed in the SVN head... If possible please try to use a
nightly build of Axiom..

Thanks,
Thilina

On 2/26/07, Punnoose, Roshan [EMAIL PROTECTED] wrote:




 Ok, I'm not sure why, but after a little debugging, I am beginning to
find
 that the MIMEOutputUtils.java does not flush the BufferedOutputStream
(the
 response) so the boundary that is added to it never gets to the
client. Any
 ideas why?




 Roshan Punnoose

 Phone: 301-497-6039

  


 From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 26, 2007 11:35 AM
  To: axis-user@ws.apache.org
  Subject: Error returning MTOM document




 Hi,



 When a client invokes my server side web service running in WebLogic
8.1,
 the request gets to the server properly, but on the way back, the
response
 seems garbled. It is missing the last MTOM boundary tag. Here is the
 response I see in TCPMon:



 HTTP/1.1 200 OK

 Date: Mon, 26 Feb 2007 16:32:33 GMT

 Server: WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
WebLogic
 Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 WebLogic Server 8.1
SP2
 Fri Dec 5 15:01:51 PST 2003 316284

 Content-Type: multipart/related;
 boundary=MIMEBoundaryurn_uuid_D6E6F9ADB535E26BAA1172507554129;
 type=application/xop+xml;
 start=0.urn:uuid:[EMAIL PROTECTED];
 start-info=application/soap+xml; charset=UTF-8

 Transfer-Encoding: chunked



 0f94

 --MIMEBoundaryurn_uuid_D6E6F9ADB535E26BAA1172507554129

 content-type: application/xop+xml; charset=UTF-8;
 type=application/soap+xml;

 content-transfer-encoding: binary

 content-id:
 0.urn:uuid:[EMAIL PROTECTED]



 ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope
 xmlns:wsa=http://www.w3.org/2005/08/addressing;
 xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;...
 soapenv:Envelope

 





 The response is missing the MIME boundary and instead has a ? Any
ideas
 why?



 Roshan Punnoose

 Phone: 301-497-6039


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




-- 
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Web Service sent hook

2007-02-28 Thread Davanum Srinivas

Roshan,

Looks like you have a case for a enhancement bug in JIRA :)

-- dims

On 2/28/07, Punnoose, Roshan [EMAIL PROTECTED] wrote:

Thanks for the reply. I was able to override the
CommonsHttpTransportSender to perform my logic after the response had
been sent. The only problem is, I had to make sure that I could tell
when it was an actual response to a request. But nothing to check in.

Also, why is it not possible? Wouldn't it be as easy as creating
Dispatch handlers? Just have post-dispatch handlers?

Roshan Punnoose
Phone: 301-497-6039

-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 28, 2007 9:27 AM
To: axis-user@ws.apache.org
Subject: Re: Web Service sent hook

AFAIK this is not possible...

~Thilina

On 2/22/07, Punnoose, Roshan [EMAIL PROTECTED] wrote:




 Well from looking at the code, I don't think it is implemented.



 After the AxisEngine.send function there is no call to invoke any
 post-dispatch handlers. Though, it would be pretty easy to implement.
Is
 that something I could do and submit a patch?




 Roshan Punnoose

 Phone: 301-497-6039

  


 From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 19, 2007 1:13 PM
  To: axis-user@ws.apache.org
  Subject: RE: Web Service sent hook




 Does anyone know if this is possible?




 Roshan Punnoose

 Phone: 301-497-6039

  


 From: Punnoose, Roshan [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 15, 2007 11:11 AM
  To: axis-user@ws.apache.org
  Subject: Web Service sent hook



 I see that there are handlers/hooks when a request comes in and a
response
 leaves a Web Service. But is there a way I can get a hook into the
moment
 when the response has been completely sent from the Web Service. We
are
 sending a file using MTOM and DataHandlers back to a client, and I
want to
 delete the file when the file has been sent, but not when there has
been an
 error in transmission. Any ideas?



 Roshan Punnoose

 Phone: 301-497-6039




--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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


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





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

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



Serialization of Array of Custom datatypes

2007-02-28 Thread frankpan74

Hi, 

I am having a hard time using Axis with xml schema generated datatypes. 
Here is my problem:

I start with an xml schema that contains some custom datatypes:

complexType name=Sequence
sequence
element name=id type=string /
element name=description type=string /
element name=data type=string /
element name=type type=tns:SequenceType /
/sequence
/complexType
simpleType name=SequenceType
restriction base=string
enumeration value=dna /
enumeration value=rna /
enumeration value=protein /
enumeration value=nucleotide /
enumeration value=unknown /
/restriction 
/simpleType
complexType name=ListOfSequence
sequence
element name=sequence type=tns:Sequence minOccurs=0
maxOccurs=unbounded/  
/sequence
/complexType

I then use xjc (from JAXB) to generate the java classes which then are used
to build webservices. When deploy the webservice, I specify the typemapping
as follows:

  beanMapping qname=myNS:ListOfSequence
xmlns:myNS=http://cs.nmsu.edu/bsis/schema/datatype;
languageSpecificType=java:edu.nmsu.cs.bsis.schema.datatype.ListOfSequence/
  beanMapping qname=myNS:Sequence
xmlns:myNS=http://cs.nmsu.edu/bsis/schema/datatype;
languageSpecificType=java:edu.nmsu.cs.bsis.schema.datatype.Sequence/
typeMapping
xmlns:myNS=http://cs.nmsu.edu/bsis/schema/datatype;
qname=myNS:SequenceType
languageSpecificType
=java:edu.nmsu.cs.bsis.schema.datatype.SequenceType
   
serializer=org.apache.axis.encoding.ser.EnumSerializerFactory
deserializer
=org.apache.axis.encoding.ser.EnumDeserializerFactory
encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
   /

I then wrote client to visit this service. There are several problems
when doing so:
 
1. the Enum type SequenceType is not deserialized correctly (it generates
null pointer error). After explore the source code of EnumDeserializer, I
found that it is using a fromString() method to deserialize the Enum type.
This method is not generated with xjc. That is, the Enum Ser/Deser will not
work with xjc generated Enum type. 

2. xjc convert the ListOfSequence type to a java class that contains a
ListSequence data member. It is serialized as an array but is not
deserialized correctly (I always get zero on the list size). 

Because of those problems, I noticed that Axis (I am using the 1.3 version)
is not comforming to the JAXB framework. So I start to use the WSDL2Java
tool to generate the datatypes from the xml schema. But still I got other
problems:

1. the wsdl2java will not even generate the ListOfSequence class unless I
add another subelement  to the schema definition, like so,
   complexType name=ListOfSequence
sequence
element name=sequence type=tns:Sequence minOccurs=0
maxOccurs=unbounded/  
element name=size type=xsd:integer/
/sequence
/complexType
   which I don't like to do so (any solutions?)

2. the wsdl2java tool generates the ListOfSequence class with a Sequence
Array data member (Sequence[]). I then redeployed the webservice (with the
same typemapping as above) and wrote a client to visit it. However, it
always give me a ClassCastException as follows:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.ClassCastException:
org.apache.axis.encoding.ser.BeanDeserializer
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}hostname:bio2

java.lang.ClassCastException: org.apache.axis.encoding.ser.BeanDeserializer
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at 

axis2 on Websphere

2007-02-28 Thread Xu, Larry
Hi guys, I have a Axis2 webservice deployed on a Websphere App Server 6,
and my client web app is deployed on Websphere App Server 5, whenever I
try to invoke in the webservice in my web app client, it gives me
ClassDefNotFound exception for various class which ARE included in the
axis jars that I put in my web app's web-inf/lib directory. When I do a
Class.forName() for that class I can find it, yet during runtime it
still gives me the ClassDefNotFound exception. Is there some
incompatibility issues with WAS 5 and axis2 jars?

 

 

 

Thanks,

 

 

 

Larry Xu

 



RE: axis2 on Websphere

2007-02-28 Thread Spies, Brennan
Larry,

 

You *probably* have a classloader issue. If you look at the MBean (here for
the embedded version of WAS 5 in RAD, you'll have to find the correct MBean
for WAS 6...)

 

WebSphere:name=UTC.war,process=server1,Application=IBMUTC,platform=common,

 
node=localhost,J2EEName=IBMUTC#UTC.war,Server=server1,version=5.0,type=WebMod
ule,

 
mbeanIdentifier=cells/localhost/applications/IBMUTC.ear/deployments/IBMUTC/de
ployment.xml#WebModuleDeployment_1,

cell=localhost

 

getClassLoaderInfo(java.lang.String) 

 

level: (int)   

atDepthOnly: (boolean)

showClasses: true  

showCodeSource: true

showDelegation: true   

showHierarchy: true

showModules: (boolean)  

showDepth: true

 

This operation will return an XML with your classloader tree, showing which
classes were loaded and from what source.

 

Brennan

 

-Original Message-
From: Xu, Larry [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 28, 2007 2:57 PM
To: axis-user@ws.apache.org
Subject: axis2 on Websphere

 

Hi guys, I have a Axis2 webservice deployed on a Websphere App Server 6, and
my client web app is deployed on Websphere App Server 5, whenever I try to
invoke in the webservice in my web app client, it gives me ClassDefNotFound
exception for various class which ARE included in the axis jars that I put in
my web app's web-inf/lib directory. When I do a Class.forName() for that
class I can find it, yet during runtime it still gives me the
ClassDefNotFound exception. Is there some incompatibility issues with WAS 5
and axis2 jars?

 

 

 

Thanks,

 

 

 

Larry Xu

 



Re: [Axis2] Any way to use GoogleSearch.wsdl with Axis2?

2007-02-28 Thread Anne Thomas Manes

It's not possible. The Goggle API uses SOAP Encoding, and Axis2 does
not support SOAP Encoding. Try Axis 1.4 instead.

Anne

On 2/27/07, VinceK [EMAIL PROTECTED] wrote:


What would be the best way to use  http://api.google.com/GoogleSearch.wsdl
with Axis2?

--
View this message in context: 
http://www.nabble.com/-Axis2--Any-way-to-use-GoogleSearch.wsdl-with-Axis2--tf3306741.html#a9197924
Sent from the Axis - User mailing list archive at Nabble.com.


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




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



How to deploy e simple webservice in axis2

2007-02-28 Thread Pierpaolo Pagnoni
I'm a new user in AXIS2 and I've some difficult to deploy a ws.

I must build a ws to exchange attachments with MTOM, but I don't know how 
deploy a simple example (ee a WS calculator with a service sum)

Before Axis2 I've used AXIS 1.4, with Axis 1.4 I use Eclipse + WTP to create a 
WS or java2WSDL, WSDL2JAVA and AdminClient

I cannot find a simple guide in AXIS2 as the the AXIS1 guide.

I've also try to use axis2-eclipse-codegen-wizard but the code produced for 
the server and the client is very cryptic

Please helpme, is very very urgent

Thanks in advance
Pierpaolo


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada1marz07



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



Re: How to deploy e simple webservice in axis2

2007-02-28 Thread Thilina Gunarathne

Hope you have already looked at [1]  [2].. Then you can have a look
at [3]  [4]..

~Thilina

[1]http://ws.apache.org/axis2/1_1_1/quickstartguide.html
[2]http://ws.apache.org/axis2/1_1_1/userguide.html
[3]http://ws.apache.org/axis2/1_1_1/mtom-guide.html
[4]http://ws.apache.org/axis2/1_1_1/mtom-guide.html#25

On 3/1/07, Pierpaolo Pagnoni [EMAIL PROTECTED] wrote:

I'm a new user in AXIS2 and I've some difficult to deploy a ws.

I must build a ws to exchange attachments with MTOM, but I don't know how 
deploy a simple example (ee a WS calculator with a service sum)

Before Axis2 I've used AXIS 1.4, with Axis 1.4 I use Eclipse + WTP to create a 
WS or java2WSDL, WSDL2JAVA and AdminClient

I cannot find a simple guide in AXIS2 as the the AXIS1 guide.

I've also try to use axis2-eclipse-codegen-wizard but the code produced for 
the server and the client is very cryptic

Please helpme, is very very urgent

Thanks in advance
Pierpaolo


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada1marz07



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





--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

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



MOTM and Encoding/Decoding

2007-02-28 Thread Derek Clayton

Hello all,

I have written a SOAP client using Axis2 which receives a binary file in the 
response.  The binary file is attached using MOTM XOP.  When I use an http 
sniffer to look at the response everything looks good...the response 
contains an XOP:Include reference to the attached content.  The attached 
content in this case is sent as binary but it's just an XML file which I can 
visually inspect.


However, when I print out the respsonse with the following code:

OMElement result = servClient.sendReceive(method);
System.out.println(result);

I get this body:

soap:Body/soap:Envelope
PassExcelBinaryResponse 
xmlns=http:///soap/WebServices.asp;PassExcelBinaryResultPD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjxOZXdEYXRhU2V0Pg0KICA8eHM6c2NoZW1hIGlkPSJOZXdEYXRhU2V0IiB4bWxucz0iIiB4bWxuczp4cz0iaHR0cDovL3d3dLOTS 
AND LOTS MORE


The size of the attached binary file is 900K.  The size of the content in 
PassExcelBinaryResult is suspiciously around 30% larger...it looks like 
Axis2 (Axiom?) has encoded the attached file.


For reference here is my code to write the attached binary:

OMText binaryNode = (OMText)xmlElement.getFirstOMChild();
DataHandler dh = (DataHandler)binaryNode.getDataHandler();
FileOutputStream out = new FileOutputStream(../../test/data/temp.xml);
dh.writeTo(out);
out.close();

So my question: Is Axis2 encoding the binary attachment merely for display 
purposes?  Or will it try to encode the binary attachment and then have to 
decode it when I write the file.


As mentioned using the above code is working however it is very slow..it is 
about 4x slower to read the attachment than an equivalent client written for 
.NET.  This is what led me to start wondering why it was so slow and seeing 
that the content seemed to be encoded after I receive the response.


Thanks,

Derek

_
Find out the restaurants participating in Winterlicious 
http://local.live.com/default.aspx?v=2cp=43.658648~-79.383962style=rlvl=15tilt=-90dir=0alt=-1000scene=3702663cid=7ABE80D1746919B4!1329 

From January 26 to February 8, 2007



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



Re: TimeZone Not Handled Properly In java.util.Date Conversions

2007-02-28 Thread Amila Suriarachchi

I think deepal may help you on this.
Please attache your java class as well to that jira.


--
Amila Suriarachchi,
WSO2 Inc.


Re: How to deploy e simple webservice in axis2

2007-02-28 Thread Dimuthu Leelaratne

Hi Pierpaolo,

Here is my favorite simplest sample. It is a Hello World sample.

http://wso2.org/library/95

Cheers,
Dimuthu.
--
http://wso2.org

On 3/1/07, Pierpaolo Pagnoni [EMAIL PROTECTED] wrote:

I'm a new user in AXIS2 and I've some difficult to deploy a ws.

I must build a ws to exchange attachments with MTOM, but I don't know how 
deploy a simple example (ee a WS calculator with a service sum)

Before Axis2 I've used AXIS 1.4, with Axis 1.4 I use Eclipse + WTP to create a 
WS or java2WSDL, WSDL2JAVA and AdminClient

I cannot find a simple guide in AXIS2 as the the AXIS1 guide.

I've also try to use axis2-eclipse-codegen-wizard but the code produced for 
the server and the client is very cryptic

Please helpme, is very very urgent

Thanks in advance
Pierpaolo


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada1marz07



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




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



Accessing an Axis + java based Webservice from Flex 2

2007-02-28 Thread user1234

Hi,
I have a axis based webservice which has 2 methods, load(int id) and
save(User user). 
These methods are implemented in java. 
The User class (object of which goes as argument in save method) has 4
attributes, their corresponding getters and setters. Additionality, when I
generated webservice using axis, it has added some methods responsible for
serializing / deserializing object of User class in user class itself. 
On the Flex side, I have same user class (as ActionScript class) with same
name attributes and getters/setters. 
When I call save() method of webservice passing object of user class from
action script on flex side, it gives me following error: 

[FaultEvent fault=[RPC Fault faultString=Error #1069: Property _dateOfBirth
not found on com.keane.vx.AppFuseExample.model.PersonFormInputs and there is
no default value. faultCode=EncodingError faultDetail=null]
messageId=null type=fault bubbles=false cancelable=true eventPhase=2] 

Although the load () method, which takes integer as parameter works fine. 

Do I need to serialize the user object before I pass it to webservice? Or is
it the job of Axis? 
Are there any samples demonstrating passing flex objects to java/axis web
service. 

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Accessing-an-Axis-%2B-java-based-Webservice-from-Flex-2-tf3325493.html#a9245150
Sent from the Axis - User mailing list archive at Nabble.com.


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