a problem when using wsimport to generate stubs from a Axis 1.4 server

2007-01-29 Thread WANG Chi
Hi all,

I have a web service developed in Axis 1.4, and I want to use JAX-WS as the 
client, I use wsimport to generate the stubs ,but the following errors occured, 
can someone help me? thank you very much. 

D:\open source\jax-ws\jaxws-ri\bin wsimport -d d:\test\test1 -s d:\test\test2 
http://localhost:8081/otasoap/services/LogonManager?wsdl

warning: src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) 'type 
definition' component.
  line ? of 
http://localhost:8081/otasoap/services/LogonManager?wsdl#types?schema2
error: undefined simple or complex type 'soapenc:Array'
  line 0 of 
http://localhost:8081/otasoap/services/LogonManager?wsdl#types?schema2
error: undefined attribute 'soapenc:arrayType'
  line 0 of 
http://localhost:8081/otasoap/services/LogonManager?wsdl#types?schema2
error: undefined simple or complex type 'soapenc:Array'
  line 0 of 
http://localhost:8081/otasoap/services/LogonManager?wsdl#types?schema2
error: undefined attribute 'soapenc:arrayType'
  line 0 of 
http://localhost:8081/otasoap/services/LogonManager?wsdl#types?schema2
error: undefined simple or complex type 'soapenc:string'
  line 0 of 
http://localhost:8081/otasoap/services/LogonManager?wsdl#types?schema3
error: undefined simple or complex type 'soapenc:string'
  line 0 of 
http://localhost:8081/otasoap/services/LogonManager?wsdl#types?schema1
error: undefined simple or complex type 'soapenc:string'
  line 0 of 
http://localhost:8081/otasoap/services/LogonManager?wsdl#types?schema1


The WSDL got from the Axis server is as following, I use RPC/ENCODING style.

  ?xml version=1.0 encoding=UTF-8 ? 
- wsdl:definitions targetNamespace=urn:logon.soap.ota.gemplus.com 
xmlns:apachesoap=http://xml.apache.org/xml-soap; 
xmlns:impl=urn:logon.soap.ota.gemplus.com 
xmlns:intf=urn:logon.soap.ota.gemplus.com 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:tns1=http://soap.ota.gemplus.com; 
xmlns:tns2=http://bean.soap.ota.gemplus.com; 
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; 
xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
- !-- 
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)
  -- 
- wsdl:types
- schema targetNamespace=http://soap.ota.gemplus.com; 
xmlns=http://www.w3.org/2001/XMLSchema;
  import namespace=http://bean.soap.ota.gemplus.com; / 
  import namespace=urn:logon.soap.ota.gemplus.com / 
  import namespace=http://schemas.xmlsoap.org/soap/encoding/; / 
- complexType name=SoapFault
- sequence
  element name=errorCode nillable=true type=soapenc:string / 
  element name=errorMessage nillable=true type=soapenc:string / 
  /sequence
  /complexType
- complexType name=ServiceBreakDownFault
- complexContent
- extension base=tns1:SoapFault
  sequence / 
  /extension
  /complexContent
  /complexType
- complexType name=DeniedAccessFault
- complexContent
- extension base=tns1:SoapFault
  sequence / 
  /extension
  /complexContent
  /complexType
- complexType name=ExpiredAccountFault
- complexContent
- extension base=tns1:SoapFault
  sequence / 
  /extension
  /complexContent
  /complexType
  /schema
- schema targetNamespace=urn:logon.soap.ota.gemplus.com 
xmlns=http://www.w3.org/2001/XMLSchema;
  import namespace=http://soap.ota.gemplus.com; / 
  import namespace=http://bean.soap.ota.gemplus.com; / 
  import namespace=http://schemas.xmlsoap.org/soap/encoding/; / 
- complexType name=ArrayOf_soapenc_string
- complexContent
- restriction base=soapenc:Array
  attribute ref=soapenc:arrayType wsdl:arrayType=xsd:string[] / 
  /restriction
  /complexContent
  /complexType
- complexType name=ArrayOf_tns2_CategoryBean
- complexContent
- restriction base=soapenc:Array
  attribute ref=soapenc:arrayType wsdl:arrayType=tns2:CategoryBean[] / 
  /restriction
  /complexContent
  /complexType
  /schema
- schema targetNamespace=http://bean.soap.ota.gemplus.com; 
xmlns=http://www.w3.org/2001/XMLSchema;
  import namespace=http://soap.ota.gemplus.com; / 
  import namespace=urn:logon.soap.ota.gemplus.com / 
  import namespace=http://schemas.xmlsoap.org/soap/encoding/; / 
- complexType name=CategoryBean
- sequence
  element name=granted type=xsd:boolean / 
  element name=name nillable=true type=soapenc:string / 
  /sequence
  /complexType
  /schema
  /wsdl:types
- wsdl:message name=getAccessRightsResponse
  wsdl:part name=getAccessRightsReturn type=impl:ArrayOf_tns2_CategoryBean 
/ 
  /wsdl:message
- wsdl:message name=logoutResponse
  wsdl:part name=logoutReturn type=xsd:boolean / 
  /wsdl:message
- wsdl:message name=getAccessRightsRequest
  wsdl:part name=in0 type=soapenc:string / 
  wsdl:part name=in1 type=impl:ArrayOf_soapenc_string / 
  /wsdl:message
- wsdl:message name=DeniedAccessFault
  wsdl:part name=fault type=tns1:DeniedAccessFault / 
  /wsdl:message
- wsdl:message name=logonRequest
  wsdl:part name=in0 type=soapenc:string / 
  wsdl:part name=in1 type=soapenc:string / 
  /wsdl:message
- wsdl:message name=ExpiredAccountFault
  wsdl:part name=fault 

[Axis2] adb client in pojo example receives Unexpected subelement error

2007-01-29 Thread htang27
I had to modify AddressBookADBClient because setParam0 is not available
in the generated service stub.

//addEntry.setParam0(entry);
addEntry.setEntry(entry);
//findEntry.setParam0(Abby Cadabby);
findEntry.setName(Abby Cadabby);

When executed, it received java.lang.RuntimeException: Unexpected
subelement city, does anyone have any idea why?

Thanks


 

Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

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



[axis2] wsdl2java problems

2007-01-29 Thread mailinglists
Using wsdl2java on the attached wsdl produces some incorrect results.  
The xml that i would expect the generated code to produce is in  
expected.xml the code it actually produces is in actual.xml. The  
element name for element1 is incorrect, element2 should contain the  
string directly instead of having it as a child node, element2 is also  
missing the attribute that it should have.
There seems to be problems with wsdl2java's handling of enumerations  
in anything other than the most basic cases


test.wsdl
Description: application/xml
MessageType
	Element1String1/Element1
	Element2 attribute = String2String3Element2
MessageTypeMessageType
	BaseTypeString1/BaseType
	Element2
		BaseTypeString3/BaseType
	Element2
MessageType
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

[AXIS2] Using OperationContext in a web services implementation class

2007-01-29 Thread Vasil Benov

Hi all,

Is it possible to access the OperationContext in a services implementation
class?

Thanks in advance

Regards, Vasil

--
Vasil Benov,
Mobile: +359(0)889/202682
@-mail: benovv at gmail dot com
ICQ: 140269988

GPG Fingerprint: 2CDC 5DA0 4C0A 7C06 5259  DE12 ACF3 177C 8906 0908
Public Key URL:
   *) http://random.sks.keyserver.penguin.de/


Re: [AXIS2] Using OperationContext in a web services implementation class

2007-01-29 Thread Deepal Jayasinghe
Yes you can do the following;
MessageContext msgCtx = MessageContext.getCurrentMessageContext();
msgCtx.getOperationContext();

Thanks
Deepal

 Hi all,

 Is it possible to access the OperationContext in a services
 implementation class?

 Thanks in advance

 Regards, Vasil

 -- 
 Vasil Benov,
 Mobile: +359(0)889/202682
 @-mail: benovv at gmail dot com
 ICQ: 140269988

 GPG Fingerprint: 2CDC 5DA0 4C0A 7C06 5259  DE12 ACF3 177C 8906 0908
 Public Key URL:
 *) http://random.sks.keyserver.penguin.de/ 


-- 
Thanks,
Deepal

The highest tower is built one brick at a time



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



Re: [AXIS2] Using OperationContext in a web services implementation class

2007-01-29 Thread Vasil Benov

Thanks Deepal,

Regards, Vasil

On 1/29/07, Deepal Jayasinghe [EMAIL PROTECTED] wrote:


Yes you can do the following;
MessageContext msgCtx = MessageContext.getCurrentMessageContext();
msgCtx.getOperationContext();

Thanks
Deepal

 Hi all,

 Is it possible to access the OperationContext in a services
 implementation class?

 Thanks in advance

 Regards, Vasil

 --
 Vasil Benov,
 Mobile: +359(0)889/202682
 @-mail: benovv at gmail dot com
 ICQ: 140269988

 GPG Fingerprint: 2CDC 5DA0 4C0A 7C06 5259  DE12 ACF3 177C 8906 0908
 Public Key URL:
 *) http://random.sks.keyserver.penguin.de/


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





--
Vasil Benov,
Mobile: +359(0)889/202682
@-mail: benovv at gmail dot com
ICQ: 140269988

GPG Fingerprint: 2CDC 5DA0 4C0A 7C06 5259  DE12 ACF3 177C 8906 0908
Public Key URL:
   *) http://random.sks.keyserver.penguin.de/


Re: [axis2]: sympletype extension as an attribute not generated

2007-01-29 Thread Amila Suriarachchi

ADB currently supports only the basic types for attribute types.

On 1/27/07, Anne Thomas Manes [EMAIL PROTECTED] wrote:


Please file a JIRA.

On 1/24/07, Eric Deshayes [EMAIL PROTECTED] wrote:
 Hi,
 I have tried to generate some databinding for a schema that contains
that
 type:
   xsd:simpleType name=CurrencyType
 xsd:restriction base=xsd:string
   xsd:pattern value=[a-zA-Z]{3} /
 /xsd:restriction
   /xsd:simpleType
 as an attribute:

   xsd:complexType name=TransactionType
 xsd:attribute name=quantity type=xsd:nonNegativeInteger
 use=required /
 xsd:attribute name=price type=xsd:decimal use=required /
 xsd:attribute name=currency type=myProj:CurrencyType
use=optional
 /
   /xsd:complexType

 The generated class type (TransactionType.java) does not contain any
 currency field.
 The field only appears when the type is used as an element.
 Is that feature not supported yet? Will that be supported?
 Thanks in advance,
 Eric





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





--
Amila Suriarachchi,
WSO2 Inc.


Re: return type from Web Service

2007-01-29 Thread rajac

Hi Paul,

Soap Message
--
Request
---

POST /axis2/services/TestService HTTP/1.1
SOAPAction: urn:anonOutInOp
User-Agent: Axis2
Host: 127.0.0.1:
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8

e9
?xml version='1.0' encoding='UTF-8'?
   soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Header /
  soapenv:Body
 getAddress xmlns=http://service.pojo.sample/xsd; /
  /soapenv:Body
   /soapenv:Envelope0


Response


HTTP/1.1 500 Internal Server Error
Set-Cookie: JSESSIONID=E5B3411D045F4632AE14226BF1137FC2; Path=/axis2
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 29 Jan 2007 10:50:57 GMT
Server: Apache-Coyote/1.1
Connection: close

160
?xml version='1.0' encoding='UTF-8'?
   soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Header /
  soapenv:Body
 soapenv:Fault
faultcodesoapenv:Client/faultcode
faultstringException occurred while trying to invoke service
method getAddress/faultstring
detail /
 /soapenv:Fault
  /soapenv:Body
   /soapenv:Envelope
0

My client is interacting with stub and stub in turns interacting with
client..

TestStub.java
--
public class TestStub{


  RPCServiceClient serviceClient = null;

  Options options = null;

  EndpointReference targetEPR = null;

  

public TestStub() throws AxisFault{
serviceClient = new RPCServiceClient();
options = serviceClient.getOptions();
targetEPR = new
EndpointReference(http://localhost:/axis2/services/TestService;);
options.setTo(targetEPR);
}

public TestBean getAddresses()throws AxisFault{

QName opGetAddress = new QName(http://service.pojo.sample/xsd;,
getAddress);

Object[] opGetAddressesArgs = new Object[] { };
Class[] returnTypes = new Class[] { TestBean.class };


Object[] response = serviceClient.invokeBlocking(opGetAddress,
opGetAddressesArgs, returnTypes);

System.out.println(Length is : +response.length );
TestBean obj = (TestBean)response[0];
System.out.println(TestBean :  + obj);
return obj;
   
}
}

TestClient.java
--

public class TestClient{
public static void main(String args[]){
try{
TestStub stub = new TestStub();
TestBean str = stub.getAddresses();
System.out.println(Name is : + str.getAddresses());
}catch(Exception ex){
System.out.println(Exception in Client Program :: + 
ex);
}
}
}


Exception is:



Addresses frm Sample Bean inside WS : [r3, r2, r1, r4]
- Exception occurred while trying to invoke service method getAddress
org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: null
rcl
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:316)
at
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:624)
at
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:591)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:117)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:193)
at
org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:97)
at
org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessage
Receiver.java:136)


Also uploaded the relevent files.

Thanks,
Raja



pzfreo wrote:
 
 Raja
 
 Please can you use TCPMON to capture the SOAP message and post it
 here? That would really help. Also you might need to show us what your
 client code looks like.
 
 Thanks!
 
 Paul
 
 On 1/28/07, rajac [EMAIL PROTECTED] wrote:

 Hi,
   I have little knowledge on Axis2 and just started working on it few
 days back.
   At present I am trying to develop web service that will basically
 interact the business methods and return it back as bean to client.

 Something like:
 --
 Client - | | - Web Service Interface  - Actual business
 method

 I am using RPCMessageReceiver for this purpose.

 My business methods are already fixed and most of them are
 returning
 Java Collection type object as return type. Presently I am trying to
 create
 a web service layer that will get the Collection type object from
 business
 method, then I am 

Problems with WSDL2Java upgrading from Axis 1.2 to Axis 1.4

2007-01-29 Thread Terry Mueller
I have tested WSDL2Java with our WSDL using Axis 1.2 without any 
problems. When I upgrade to Axis 1.4 (drop in new jars), the same 
command generates code with compile errors. There are three basic 
compilation problems: (1) in some constructors of simple types there is 
call to super(foo,bar) that doesn't exist (2) the throws clauses 
declaration contains an array and (3) the class in the throws clause 
does not extend java.lang.Exception.



I was having a play with Lisa test tool from http://www.itko.com/ which 
uses Axis 1.4 so I can't upgrade to Axis 2 yet.



Any ideas?

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



Re: return type from Web Service

2007-01-29 Thread Paul Fremantle

Raja

Thanks! You've found a real bug! Its a problem serializing Sets. Would
you be willing to raise a JIRA?

Paul

On 1/29/07, rajac [EMAIL PROTECTED] wrote:


Hi Paul,

Soap Message
--
Request
---

POST /axis2/services/TestService HTTP/1.1
SOAPAction: urn:anonOutInOp
User-Agent: Axis2
Host: 127.0.0.1:
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8

e9
?xml version='1.0' encoding='UTF-8'?
   soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Header /
  soapenv:Body
 getAddress xmlns=http://service.pojo.sample/xsd; /
  /soapenv:Body
   /soapenv:Envelope0


Response


HTTP/1.1 500 Internal Server Error
Set-Cookie: JSESSIONID=E5B3411D045F4632AE14226BF1137FC2; Path=/axis2
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 29 Jan 2007 10:50:57 GMT
Server: Apache-Coyote/1.1
Connection: close

160
?xml version='1.0' encoding='UTF-8'?
   soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Header /
  soapenv:Body
 soapenv:Fault
faultcodesoapenv:Client/faultcode
faultstringException occurred while trying to invoke service
method getAddress/faultstring
detail /
 /soapenv:Fault
  /soapenv:Body
   /soapenv:Envelope
0

My client is interacting with stub and stub in turns interacting with
client..

TestStub.java
--
public class TestStub{


  RPCServiceClient serviceClient = null;

  Options options = null;

  EndpointReference targetEPR = null;



public TestStub() throws AxisFault{
serviceClient = new RPCServiceClient();
options = serviceClient.getOptions();
targetEPR = new
EndpointReference(http://localhost:/axis2/services/TestService;);
options.setTo(targetEPR);
}

public TestBean getAddresses()throws AxisFault{

QName opGetAddress = new QName(http://service.pojo.sample/xsd;,
getAddress);

Object[] opGetAddressesArgs = new Object[] { };
Class[] returnTypes = new Class[] { TestBean.class };


Object[] response = serviceClient.invokeBlocking(opGetAddress,
opGetAddressesArgs, returnTypes);

System.out.println(Length is : +response.length );
TestBean obj = (TestBean)response[0];
System.out.println(TestBean :  + obj);
return obj;

}
}

TestClient.java
--

public class TestClient{
public static void main(String args[]){
try{
TestStub stub = new TestStub();
TestBean str = stub.getAddresses();
System.out.println(Name is : + str.getAddresses());
}catch(Exception ex){
System.out.println(Exception in Client Program :: + 
ex);
}
}
}


Exception is:



Addresses frm Sample Bean inside WS : [r3, r2, r1, r4]
- Exception occurred while trying to invoke service method getAddress
org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: null
rcl
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:316)
at
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:624)
at
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:591)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:117)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240)
at
org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:193)
at
org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:97)
at
org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessage
Receiver.java:136)


Also uploaded the relevent files.

Thanks,
Raja



pzfreo wrote:

 Raja

 Please can you use TCPMON to capture the SOAP message and post it
 here? That would really help. Also you might need to show us what your
 client code looks like.

 Thanks!

 Paul

 On 1/28/07, rajac [EMAIL PROTECTED] wrote:

 Hi,
   I have little knowledge on Axis2 and just started working on it few
 days back.
   At present I am trying to develop web service that will basically
 interact the business methods and return it back as bean to client.

 Something like:
 --
 Client - | | - Web Service Interface  - Actual business
 method

 I am using RPCMessageReceiver for this purpose.

 My business methods are already fixed and most of them are
 returning
 Java Collection type object as return type. Presently I am trying to
 create
 a web service layer that 

Re: [axis2] wsdl2java problems

2007-01-29 Thread Anne Thomas Manes

There are namespace errors in your WSDL. You have not declared a
namespace for your WSDL targetNamespace; therefore you have no way to
reference any of your WSDL elements. Perhaps you meant to use the same
targetNamespace for both your WSDL and schema?

It's always a good idea to validate a WSDL before running wsdl2java on it.

Anne

On 1/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Using wsdl2java on the attached wsdl produces some incorrect results.
The xml that i would expect the generated code to produce is in
expected.xml the code it actually produces is in actual.xml. The
element name for element1 is incorrect, element2 should contain the
string directly instead of having it as a child node, element2 is also
missing the attribute that it should have.
There seems to be problems with wsdl2java's handling of enumerations
in anything other than the most basic cases


-
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: return type from Web Service

2007-01-29 Thread rajac

Hi Paul,

  Would you please guide me how to report this bug in JIRA?

Regards,
Raja


pzfreo wrote:
 
 Raja
 
 Thanks! You've found a real bug! Its a problem serializing Sets. Would
 you be willing to raise a JIRA?
 
 Paul
 
 On 1/29/07, rajac [EMAIL PROTECTED] wrote:

 Hi Paul,

 Soap Message
 --
 Request
 ---

 POST /axis2/services/TestService HTTP/1.1
 SOAPAction: urn:anonOutInOp
 User-Agent: Axis2
 Host: 127.0.0.1:
 Transfer-Encoding: chunked
 Content-Type: text/xml; charset=UTF-8

 e9
 ?xml version='1.0' encoding='UTF-8'?
soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Header /
   soapenv:Body
  getAddress xmlns=http://service.pojo.sample/xsd; /
   /soapenv:Body
/soapenv:Envelope0


 Response
 

 HTTP/1.1 500 Internal Server Error
 Set-Cookie: JSESSIONID=E5B3411D045F4632AE14226BF1137FC2; Path=/axis2
 Content-Type: text/xml;charset=UTF-8
 Transfer-Encoding: chunked
 Date: Mon, 29 Jan 2007 10:50:57 GMT
 Server: Apache-Coyote/1.1
 Connection: close

 160
 ?xml version='1.0' encoding='UTF-8'?
soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Header /
   soapenv:Body
  soapenv:Fault
 faultcodesoapenv:Client/faultcode
 faultstringException occurred while trying to invoke
 service
 method getAddress/faultstring
 detail /
  /soapenv:Fault
   /soapenv:Body
/soapenv:Envelope
 0

 My client is interacting with stub and stub in turns interacting with
 client..

 TestStub.java
 --
 public class TestStub{


   RPCServiceClient serviceClient = null;

   Options options = null;

   EndpointReference targetEPR = null;



 public TestStub() throws AxisFault{
 serviceClient = new RPCServiceClient();
 options = serviceClient.getOptions();
 targetEPR = new
 EndpointReference(http://localhost:/axis2/services/TestService;);
 options.setTo(targetEPR);
 }

 public TestBean getAddresses()throws AxisFault{

 QName opGetAddress = new
 QName(http://service.pojo.sample/xsd;,
 getAddress);

 Object[] opGetAddressesArgs = new Object[] { };
 Class[] returnTypes = new Class[] { TestBean.class };


 Object[] response = serviceClient.invokeBlocking(opGetAddress,
 opGetAddressesArgs, returnTypes);

 System.out.println(Length is : +response.length );
 TestBean obj = (TestBean)response[0];
 System.out.println(TestBean :  + obj);
 return obj;

 }
 }

 TestClient.java
 --

 public class TestClient{
 public static void main(String args[]){
 try{
 TestStub stub = new TestStub();
 TestBean str = stub.getAddresses();
 System.out.println(Name is : +
 str.getAddresses());
 }catch(Exception ex){
 System.out.println(Exception in Client Program
 :: + ex);
 }
 }
 }


 Exception is:
 


 Addresses frm Sample Bean inside WS : [r3, r2, r1, r4]
 - Exception occurred while trying to invoke service method getAddress
 org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: null
 rcl
 at
 org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199)
 at
 org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:316)
 at
 org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:624)
 at
 org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:591)
 at
 org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:117)
 at
 org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240)
 at
 org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:193)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:97)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessage
 Receiver.java:136)


 Also uploaded the relevent files.

 Thanks,
 Raja



 pzfreo wrote:
 
  Raja
 
  Please can you use TCPMON to capture the SOAP message and post it
  here? That would really help. Also you might need to show us what your
  client code looks like.
 
  Thanks!
 
  Paul
 
  On 1/28/07, rajac [EMAIL PROTECTED] wrote:
 
  Hi,
I have little knowledge on Axis2 and just started working on it
 few
  days back.
At present I am trying to develop web service that will
 basically
  interact the business methods and return it back as bean to client.
 
  Something like:
  --
  Client - | | - Web Service Interface  - Actual
 

RE: return type from Web Service

2007-01-29 Thread Gurpreet Singh Dhanoa, HCL-Industry Solutions

On Apache web site. You can see link to report a bug and the system in which u 
report a bug is called as JIRA

-Original Message-
From: rajac [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 29, 2007 8:16 AM
To: axis-user@ws.apache.org
Subject: Re: return type from Web Service


Hi Paul,

  Would you please guide me how to report this bug in JIRA?

Regards,
Raja


pzfreo wrote:
 
 Raja
 
 Thanks! You've found a real bug! Its a problem serializing Sets. Would
 you be willing to raise a JIRA?
 
 Paul
 
 On 1/29/07, rajac [EMAIL PROTECTED] wrote:

 Hi Paul,

 Soap Message
 --
 Request
 ---

 POST /axis2/services/TestService HTTP/1.1
 SOAPAction: urn:anonOutInOp
 User-Agent: Axis2
 Host: 127.0.0.1:
 Transfer-Encoding: chunked
 Content-Type: text/xml; charset=UTF-8

 e9
 ?xml version='1.0' encoding='UTF-8'?
soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Header /
   soapenv:Body
  getAddress xmlns=http://service.pojo.sample/xsd; /
   /soapenv:Body
/soapenv:Envelope0


 Response
 

 HTTP/1.1 500 Internal Server Error
 Set-Cookie: JSESSIONID=E5B3411D045F4632AE14226BF1137FC2; Path=/axis2
 Content-Type: text/xml;charset=UTF-8
 Transfer-Encoding: chunked
 Date: Mon, 29 Jan 2007 10:50:57 GMT
 Server: Apache-Coyote/1.1
 Connection: close

 160
 ?xml version='1.0' encoding='UTF-8'?
soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Header /
   soapenv:Body
  soapenv:Fault
 faultcodesoapenv:Client/faultcode
 faultstringException occurred while trying to invoke
 service
 method getAddress/faultstring
 detail /
  /soapenv:Fault
   /soapenv:Body
/soapenv:Envelope
 0

 My client is interacting with stub and stub in turns interacting with
 client..

 TestStub.java
 --
 public class TestStub{


   RPCServiceClient serviceClient = null;

   Options options = null;

   EndpointReference targetEPR = null;



 public TestStub() throws AxisFault{
 serviceClient = new RPCServiceClient();
 options = serviceClient.getOptions();
 targetEPR = new
 EndpointReference(http://localhost:/axis2/services/TestService;);
 options.setTo(targetEPR);
 }

 public TestBean getAddresses()throws AxisFault{

 QName opGetAddress = new
 QName(http://service.pojo.sample/xsd;,
 getAddress);

 Object[] opGetAddressesArgs = new Object[] { };
 Class[] returnTypes = new Class[] { TestBean.class };


 Object[] response = serviceClient.invokeBlocking(opGetAddress,
 opGetAddressesArgs, returnTypes);

 System.out.println(Length is : +response.length );
 TestBean obj = (TestBean)response[0];
 System.out.println(TestBean :  + obj);
 return obj;

 }
 }

 TestClient.java
 --

 public class TestClient{
 public static void main(String args[]){
 try{
 TestStub stub = new TestStub();
 TestBean str = stub.getAddresses();
 System.out.println(Name is : +
 str.getAddresses());
 }catch(Exception ex){
 System.out.println(Exception in Client Program
 :: + ex);
 }
 }
 }


 Exception is:
 


 Addresses frm Sample Bean inside WS : [r3, r2, r1, r4]
 - Exception occurred while trying to invoke service method getAddress
 org.apache.axiom.om.OMException: java.lang.IllegalArgumentException: null
 rcl
 at
 org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199)
 at
 org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:316)
 at
 org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:624)
 at
 org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:591)
 at
 org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:117)
 at
 org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240)
 at
 org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:193)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:97)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessage
 Receiver.java:136)


 Also uploaded the relevent files.

 Thanks,
 Raja



 pzfreo wrote:
 
  Raja
 
  Please can you use TCPMON to capture the SOAP message and post it
  here? That would really help. Also you might need to show us what your
  client code looks like.
 
  Thanks!
 
  Paul
 
  On 1/28/07, rajac [EMAIL PROTECTED] wrote:
 
  Hi,
I have little knowledge on Axis2 and just 

Re: [axis2] wsdl2java problems

2007-01-29 Thread Amila Suriarachchi

Please log a jira

On 1/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Using wsdl2java on the attached wsdl produces some incorrect results.
The xml that i would expect the generated code to produce is in
expected.xml the code it actually produces is in actual.xml. The
element name for element1 is incorrect, element2 should contain the
string directly instead of having it as a child node, element2 is also
missing the attribute that it should have.
There seems to be problems with wsdl2java's handling of enumerations
in anything other than the most basic cases


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






--
Amila Suriarachchi,
WSO2 Inc.


Deserializing substitutionGroup and abstract types

2007-01-29 Thread Amy Krause

Hi,

I'm having a very similar problem as described here:
http://marc.theaimsgroup.com/?l=axis-userm=113819830006177w=2

My schema is included below.
I'm trying to implement a composite pattern. There are three types derived 
from an abstract type as follows:


Workflow (abstract)
   / |\
   Parallel   Sequence  Pipeline

Both parallel and sequence elements must contain nested Workflow elements 
(one or more of parallel, sequence or pipeline), whereas pipeline elements 
cannot - they form the leaves of the workflow tree.

An example of a document would be:

perform
  sequence
parallel
  pipeline ... /pipeline
  pipeline ... /pipeline
/parallel
pipeline ... /pipeline
  /sequence
perform

In the schema I've defined an abstract Workflow element and elements 
parallel, sequence and pipeline. These are substitution elements for the 
Workflow element.
When I generate Java beans with WSDL2Java there is no trace of the 
parallel and sequence elements. There is a Java class called Composite 
which extends WorkflowComponent but there is no way of telling whether 
this Composite object used to be a sequence or a parallel element. How can 
I force Axis to generate Java beans corresponding to those elements?


Any help with this would be appreciated.

Thanks,
Amy



 !-- root element --
 xsd:element name=perform
xsd:complexType
  xsd:sequence
xsd:element ref=tns:workflow/
  /xsd:sequence
/xsd:complexType
  /xsd:element

  !-- work flow group and component --

  xsd:element name=workflow abstract=true
   type=tns:WorkflowComponent
  /xsd:element

  xsd:complexType name=WorkflowComponent
  /xsd:complexType

  xsd:element name=parallel
   substitutionGroup=tns:workflow
   type=tns:Composite/
  xsd:element name=sequence
   substitutionGroup=tns:workflow
   type=tns:Composite/

  xsd:complexType name=Composite
xsd:complexContent
  xsd:extension base=tns:WorkflowComponent
xsd:sequence
  xsd:element ref=tns:workflow maxOccurs=unbounded/
/xsd:sequence
  /xsd:extension
/xsd:complexContent
  /xsd:complexType

  xsd:element name=pipeline
   substitutionGroup=tns:workflow
   type=tns:Pipeline/

  xsd:complexType name=Pipeline
xsd:complexContent
  xsd:extension base=tns:WorkflowComponent
xsd:sequence
  xsd:element ref=tns:activity minOccurs=1
  maxOccurs=unbounded/
/xsd:sequence
  /xsd:extension
/xsd:complexContent
  /xsd:complexType

  xsd:element name=activity
 !-- some definitions here ... --
  /xsd:element


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



Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-29 Thread Sathija Pavuluri

Paul,

No, I have not used that approach yet, but was looking at that option. My 
question regarding that, however is, does it
support POJOs that are hierarchical because that's what I really need.
In the Weather example in the POJO guide, if Weather extended from say ABC 
(could be abstract and also has its public
getter/setters), would things be any different?
And can the client and service still make use of this hierarchy without doing 
anything additional that whats described
in that sample?

Thanks,
Sathija.


 Sajith

 Are you following the POJO sample?

 Paul

 On 1/26/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
  When you run WSDL2Java -ss -sd to create the server side skeleton and
  ADB binding objects it generates a message receiver and services.xml
  for you. You simply need to type ant to built it all into an AAR.

 Paul,
 I am using the code first approach and generating wsdl from the java classes.
 How does what you described stick into this method?

 Thanks.
 Sathija

 
  Paul
 
  On 1/26/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
  Deepal,
 
  Both the server and client use ADB binding.
 
   If you are using ADB in server side you do not need to use
   RPCMessageReceiver.
 
  What message receiver do I need to use then?
 
  Thanks,
  Sathija.
 
 
 
   Hi Sathija ;
  
  Hello,
  
  I am using Axis2 1.1.1 for my web services and use ADB for data binding 
  with RPCMessageReceiver.
  
  
   are you using ADB in client side or server side ?
   If you are using ADB in server side you do not need to use
   RPCMessageReceiver.
  
  I have been unsuccessfully trying to return a datatype 'A1' to my 
  client. 'A1' extends from an abstract object
 'A'
  that also contains from attributes.
  
  However, when the client receives the response, all attributes from A1 
  are in the response but attributes from
 A
  are
  missing.
  
  So I am back to thinking if ADB supports this object hierarchy. I have 
  seen some older posts with such
 scenarios
  but
  no useful suggestions.
  
  Thanks!
  Sathija.
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  
   --
   Thanks,
   Deepal
   
   The highest tower is built one brick at a time
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Paul Fremantle
  VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
 
  http://bloglines.com/blog/paulfremantle
  [EMAIL PROTECTED]
 
  Oxygenating the Web Service Platform, www.wso2.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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




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

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

 Oxygenating the Web Service Platform, www.wso2.com

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





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



Re: Maven Build

2007-01-29 Thread Davanum Srinivas

Ted,

See enclosed pom.xml snippets for the list of dependencies and
repositories that i use.

Thanks,
dims

On 1/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi,

I'm trying to generate client Stubs using Axis2 and Maven2 but I'm having
trouble identifying all the dependencies required to build and execute the
resulting classes.  Does anyone have a working Maven2 POM I can use to get
the dependencies required to build and execute the stubs or is there a link
somewhere to the same that I haven't yet come across?

Many Thanks

Ted


Whilst this email has been checked for all known viruses, recipients should 
undertake their own virus checking as Xansa will not accept any liability 
whatsoever.

This email and any files transmitted with it are confidential and protected by 
client privilege.  It is solely for the use of the intended recipient.
Please delete it and notify the sender if you have received it in
error. Unauthorised use is prohibited.

Any opinions expressed in this email are those of the individual and not
necessarily the organisation.
 Xansa, Registered Office: 420 Thames Valley Park Drive,
 Thames Valley Park, Reading, RG6 1PU, UK.
 Registered in England No.1000954.
 t  +44 (0)8702 416181
 w  www.xansa.com

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





--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
dependencies
dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.3/version
scopeprovided/scope
/dependency
dependency
groupIdorg.apache.axis2/groupId
artifactIdaxis2-java2wsdl/artifactId
version1.1.1/version
/dependency
dependency
groupIdorg.apache.axis2/groupId
artifactIdaxis2-kernel/artifactId
version1.1.1/version
/dependency
dependency
groupIdorg.apache.axis2/groupId
artifactIdaxis2-codegen/artifactId
version1.1.1/version
/dependency
dependency
groupIdorg.apache.axis2/groupId
artifactIdaxis2-adb-codegen/artifactId
version1.1.1/version
/dependency
dependency
groupIdorg.apache.axis2/groupId
artifactIdaxis2-adb/artifactId
version1.1.1/version
/dependency
dependency
groupIdorg.apache.axis2/groupId
artifactIdaxis2-tools/artifactId
version1.1.1/version
/dependency
dependency
groupIdorg.apache.ws.commons.axiom/groupId
artifactIdaxiom-api/artifactId
version1.2.2/version
exclusions
   exclusion
  groupIdlog4j/groupId
  artifactIdlog4j/artifactId
   /exclusion
/exclusions
/dependency
dependency
groupIdorg.apache.ws.commons.axiom/groupId
artifactIdaxiom-impl/artifactId
version1.2.2/version
exclusions
   exclusion
  groupIdlog4j/groupId
  artifactIdlog4j/artifactId
   /exclusion
/exclusions
/dependency
dependency
groupIdorg.apache.ws.commons.schema/groupId
artifactIdXmlSchema/artifactId
version1.2/version
/dependency
dependency
groupIdorg.apache.neethi/groupId
artifactIdneethi/artifactId
version2.0/version
/dependency
dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging/artifactId
version1.1/version
exclusions
   exclusion
  groupIdlog4j/groupId
  artifactIdlog4j/artifactId
   /exclusion
   exclusion
  groupIdlogkit/groupId
  artifactIdlogkit/artifactId
   /exclusion
   exclusion
  groupIdavalon-framework/groupId
  artifactIdavalon-framework/artifactId
   /exclusion
/exclusions
/dependency
dependency
groupIdcommons-httpclient/groupId
artifactIdcommons-httpclient/artifactId
version3.0.1/version
exclusions
   exclusion
  groupIdjunit/groupId
  artifactIdjunit/artifactId
   /exclusion
/exclusions
/dependency
dependency
groupIdcommons-codec/groupId
artifactIdcommons-codec/artifactId
version1.3/version
exclusions
   exclusion
  groupIdjunit/groupId
  artifactIdjunit/artifactId
   

Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-29 Thread Paul Fremantle

Sajitha

The client won't be able to see the hierarchy. In other words the
client will only see a Weather schema, it won't know that Weather
extends from ABC. But apart from that it should work fine.

Paul

On 1/29/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:


Paul,

No, I have not used that approach yet, but was looking at that option. My 
question regarding that, however is, does it
support POJOs that are hierarchical because that's what I really need.
In the Weather example in the POJO guide, if Weather extended from say ABC 
(could be abstract and also has its public
getter/setters), would things be any different?
And can the client and service still make use of this hierarchy without doing 
anything additional that whats described
in that sample?

Thanks,
Sathija.


 Sajith

 Are you following the POJO sample?

 Paul

 On 1/26/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
  When you run WSDL2Java -ss -sd to create the server side skeleton and
  ADB binding objects it generates a message receiver and services.xml
  for you. You simply need to type ant to built it all into an AAR.

 Paul,
 I am using the code first approach and generating wsdl from the java classes.
 How does what you described stick into this method?

 Thanks.
 Sathija

 
  Paul
 
  On 1/26/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
  Deepal,
 
  Both the server and client use ADB binding.
 
   If you are using ADB in server side you do not need to use
   RPCMessageReceiver.
 
  What message receiver do I need to use then?
 
  Thanks,
  Sathija.
 
 
 
   Hi Sathija ;
  
  Hello,
  
  I am using Axis2 1.1.1 for my web services and use ADB for data binding 
with RPCMessageReceiver.
  
  
   are you using ADB in client side or server side ?
   If you are using ADB in server side you do not need to use
   RPCMessageReceiver.
  
  I have been unsuccessfully trying to return a datatype 'A1' to my 
client. 'A1' extends from an abstract object
 'A'
  that also contains from attributes.
  
  However, when the client receives the response, all attributes from A1 
are in the response but attributes from
 A
  are
  missing.
  
  So I am back to thinking if ADB supports this object hierarchy. I have 
seen some older posts with such
 scenarios
  but
  no useful suggestions.
  
  Thanks!
  Sathija.
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  
   --
   Thanks,
   Deepal
   
   The highest tower is built one brick at a time
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Paul Fremantle
  VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
 
  http://bloglines.com/blog/paulfremantle
  [EMAIL PROTECTED]
 
  Oxygenating the Web Service Platform, www.wso2.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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




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

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

 Oxygenating the Web Service Platform, www.wso2.com

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





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





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

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

Oxygenating the Web Service Platform, www.wso2.com

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



RE: Axis2 1.1.1 session works fine in browser but doesn't work in Stub client.

2007-01-29 Thread Zhou, Sam

Hi,


Actually The web service works perfectly when I use browser to invoke
the web service from
http://localhost:8080/axis2/rest/MySessionService/plusone. It returns
exactly 1,2,3, ..., n when I refresh n times.

The client Stub returns only 1,1,1... (should be 1,2,3...), even if I
call multiple times in the same stub. I used tcpip monitor to track the
raw traffic, the stub call doesn't contain JSESSIONID cookie at all.
That is also explained why browser invocation remembered session but
stub invocation didn't. Although I followed the step to enable session
in client stub 

stub._getServiceClient().getOptions().setManageSession(true);

somewhere in stub settings is not right because it doesn't return
JSESSIONID to server at all. The 1,1,1 returns are caused by server
treating each call as a new session. 


You can download the source code from
https://issues.apache.org/jira/secure/attachment/12349699/Axis2+MySessio
nService.zip

Bug#
https://issues.apache.org/jira/browse/AXIS2-2042


To: Sanjiva, I need SessionContext instead of ServiceContext, 

private SessionContext getSessionContext() {
MessageContext messageContext = MessageContext
.getCurrentMessageContext();

SessionContext sessionContext = null;
if(messageContext != null) {
sessionContext =
messageContext.getSessionContext();
}

return sessionContext;
}   

To: Deepal, I've also enabled transportsession in service.xml

..
service name=MySessionService  scope=transportsession
..

Thanks,
Sam.

-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Sunday, January 28, 2007 11:44 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 1.1.1 session works fine in browser but doesn't work
in Stub client.

Hi ;

SessionContext is the one which keep transport dependent session data ,
and that will be only created if the service is deployed in transport
session.

Thanks
Deepal

Sanjiva Weerawarana wrote:

H. I think your getSessionContext() should be modified to do 
messageContext.getServiceContext(). Can you see whether that works?

I'm not sure what sessionContext is .. have to look around :(.

Sanjiva.

On Fri, 2007-01-26 at 13:59 -0500, Zhou, Sam wrote:
  

Hi,

 

I developed the following sample code using Axis 2 with session 
management. The service is very simple, it has a single method called 
plusone(). Whenever you call plusone() with session enabled, it will 
return counter++. The counter is initialized to 0 in init() and stored

in session.

 

I believe the server side code works fine, because after I deployed 
MySessionService.aar, if I use my browser to refresh

http://localhost:8080/axis2/rest/MySessionService/plusone

 

It will return 1, 2, 3, 4, 5, 6, etc.

 

However, in my Stub client test code, even if I coded

 

stub._getServiceClient().getOptions().setManageSession(true);

 

All the 3 direct stub.plusone() calls only return 1, 1, 1 instead of 
1, 2, 3.

 

Attached are source codes in zip file. If you want to regenerate codes

from scratch, please use README.TXT. All the codes should work fine in

Eclipse 3.2.1 except I removed libraries of Axis2 and JUnit.

 

Please note I set the session scope to transport session in 
service.xml.

 

I really appreciate if somebody could tell me what part in my code is 
wrong and why the session doesn't work for Stub. I can email you the 
source code if you need it. I cannot attach to axis-user group, it is 
regarded as spam.

 

Thanks a lot,


Sam.
 
=== MySessionServiceTest.java = package 
com.compuware.axis2.gen;
 
public class MySessionServiceTest extends junit.framework.TestCase {
 
 public void testplusone() throws java.lang.Exception {
 
  com.compuware.axis2.gen.MySessionServiceStub stub = new 
com.compuware.axis2.gen.MySessionServiceStub(
http://localhost:8080/axis2/services/MySessionService/plusone;);
  stub._getServiceClient().getOptions().setManageSession(true);
  
  System.out.println(plusone()= + stub.plusone().get_return());  
 System.out.println(plusone()= + stub.plusone().get_return());  
 System.out.println(plusone()= + stub.plusone().get_return());
 
 }
 
 public org.apache.axis2.databinding.ADBBean getTestObject(
   java.lang.Class type) throws Exception {
  return (org.apache.axis2.databinding.ADBBean) type.newInstance();  }

}

 MySessionServiceSkeleton.java === package 
com.compuware.axis2.gen;
 
import org.apache.axis2.context.*;
import com.compuware.axis2.xsd.*;
import org.apache.axis2.transport.http.*;
 
public class MySessionServiceSkeleton implements
  MySessionServiceSkeletonInterface {
 
 private static String PROP_COUNTER = property.counter;
 
 public com.compuware.axis2.xsd.PlusoneResponse plusone() {  
 printMessage(plusone(), begin);
  
  SessionContext sessionContext = getSessionContext();
  
  int 

Re: [axis2] wsdl2java problems

2007-01-29 Thread Ajith Ranabahu

Hi,
Is this using ADB ? I guess we have limitations in handling simple
types and simple type extensions. Would it be possible to use a more
capable databinding (say XMLBeans) and try it out ?

In anycase please log a Jira as well.

Ajith

On 1/29/07, Amila Suriarachchi [EMAIL PROTECTED] wrote:

Please log a jira

On 1/29/07, [EMAIL PROTECTED]  [EMAIL PROTECTED]
wrote:

 Using wsdl2java on the attached wsdl produces some incorrect results.
 The xml that i would expect the generated code to produce is in
 expected.xml the code it actually produces is in actual.xml. The
 element name for element1 is incorrect, element2 should contain the
 string directly instead of having it as a child node, element2 is also
 missing the attribute that it should have.
 There seems to be problems with wsdl2java's handling of enumerations
 in anything other than the most basic cases



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






--
Amila Suriarachchi,
WSO2 Inc.



--
Ajith Ranabahu

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



Missing complex type

2007-01-29 Thread Ted . Pritchard
Hi,

I have the following wsdl:

(See attached file: SSO.wsdl)

Can anyone tell me why or give me reasons why the complex type
RetrieveUserResultsStructure is not being generated in the client stub?

Many Thanks

Ted

Whilst this email has been checked for all known viruses, recipients should 
undertake their own virus checking as Xansa will not accept any liability 
whatsoever.

This email and any files transmitted with it are confidential and protected by 
client privilege.  It is solely for the use of the intended recipient.
Please delete it and notify the sender if you have received it in
error. Unauthorised use is prohibited.

Any opinions expressed in this email are those of the individual and not
necessarily the organisation.
 Xansa, Registered Office: 420 Thames Valley Park Drive,
 Thames Valley Park, Reading, RG6 1PU, UK.
 Registered in England No.1000954.
 t  +44 (0)8702 416181
 w  www.xansa.com

SSO.wsdl
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-29 Thread Sathija Pavuluri
 The client won't be able to see the hierarchy. In other words the
 client will only see a Weather schema, it won't know that Weather
 extends from ABC. But apart from that it should work fine.

Does that mean that data from parent class will be lost?

I actually tested this out with these objects.

public class CustomerDTO {
private String name;
private String phone;
private String address;
// public getters/setters
}

public class PremierCustomerDTO extends CustomerDTO {
private String clubName;
private String vipNumber;
// public getters/setters
}

My service class returns a PremierCustomerDTO with data populated on it for all 
five attributes.
Whereas, after I retrieve the PremierCustomerDTO at the client side, only the 2 
attrs (clubName, vipNumber) declared
on it are returned.
The other 3 from the parent are null.

Is that the way its designed to work? Or should I be doing something different?

Thanks!
Sathija.


 Paul

 On 1/29/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:

 Paul,

 No, I have not used that approach yet, but was looking at that option. My 
 question regarding that, however is, does
 it
 support POJOs that are hierarchical because that's what I really need.
 In the Weather example in the POJO guide, if Weather extended from say ABC 
 (could be abstract and also has its
 public
 getter/setters), would things be any different?
 And can the client and service still make use of this hierarchy without 
 doing anything additional that whats
 described
 in that sample?

 Thanks,
 Sathija.


  Sajith
 
  Are you following the POJO sample?
 
  Paul
 
  On 1/26/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
   When you run WSDL2Java -ss -sd to create the server side skeleton and
   ADB binding objects it generates a message receiver and services.xml
   for you. You simply need to type ant to built it all into an AAR.
 
  Paul,
  I am using the code first approach and generating wsdl from the java 
  classes.
  How does what you described stick into this method?
 
  Thanks.
  Sathija
 
  
   Paul
  
   On 1/26/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
   Deepal,
  
   Both the server and client use ADB binding.
  
If you are using ADB in server side you do not need to use
RPCMessageReceiver.
  
   What message receiver do I need to use then?
  
   Thanks,
   Sathija.
  
  
  
Hi Sathija ;
   
   Hello,
   
   I am using Axis2 1.1.1 for my web services and use ADB for data 
   binding with RPCMessageReceiver.
   
   
are you using ADB in client side or server side ?
If you are using ADB in server side you do not need to use
RPCMessageReceiver.
   
   I have been unsuccessfully trying to return a datatype 'A1' to my 
   client. 'A1' extends from an abstract
 object
  'A'
   that also contains from attributes.
   
   However, when the client receives the response, all attributes from 
   A1 are in the response but attributes
 from
  A
   are
   missing.
   
   So I am back to thinking if ADB supports this object hierarchy. I 
   have seen some older posts with such
  scenarios
   but
   no useful suggestions.
   
   Thanks!
   Sathija.
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
   
   
--
Thanks,
Deepal

The highest tower is built one brick at a time
   
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
   --
   Paul Fremantle
   VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
  
   http://bloglines.com/blog/paulfremantle
   [EMAIL PROTECTED]
  
   Oxygenating the Web Service Platform, www.wso2.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Paul Fremantle
  VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
 
  http://bloglines.com/blog/paulfremantle
  [EMAIL PROTECTED]
 
  Oxygenating the Web Service Platform, www.wso2.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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




 --
 

Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-29 Thread Paul Fremantle

Sounds like a bug to me. Can you please raise a JIRA?

Paul

On 1/29/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:

 The client won't be able to see the hierarchy. In other words the
 client will only see a Weather schema, it won't know that Weather
 extends from ABC. But apart from that it should work fine.

Does that mean that data from parent class will be lost?

I actually tested this out with these objects.

public class CustomerDTO {
private String name;
private String phone;
private String address;
// public getters/setters
}

public class PremierCustomerDTO extends CustomerDTO {
private String clubName;
private String vipNumber;
// public getters/setters
}

My service class returns a PremierCustomerDTO with data populated on it for all 
five attributes.
Whereas, after I retrieve the PremierCustomerDTO at the client side, only the 2 
attrs (clubName, vipNumber) declared
on it are returned.
The other 3 from the parent are null.

Is that the way its designed to work? Or should I be doing something different?

Thanks!
Sathija.


 Paul

 On 1/29/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:

 Paul,

 No, I have not used that approach yet, but was looking at that option. My 
question regarding that, however is, does
 it
 support POJOs that are hierarchical because that's what I really need.
 In the Weather example in the POJO guide, if Weather extended from say ABC 
(could be abstract and also has its
 public
 getter/setters), would things be any different?
 And can the client and service still make use of this hierarchy without 
doing anything additional that whats
 described
 in that sample?

 Thanks,
 Sathija.


  Sajith
 
  Are you following the POJO sample?
 
  Paul
 
  On 1/26/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
   When you run WSDL2Java -ss -sd to create the server side skeleton and
   ADB binding objects it generates a message receiver and services.xml
   for you. You simply need to type ant to built it all into an AAR.
 
  Paul,
  I am using the code first approach and generating wsdl from the java 
classes.
  How does what you described stick into this method?
 
  Thanks.
  Sathija
 
  
   Paul
  
   On 1/26/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
   Deepal,
  
   Both the server and client use ADB binding.
  
If you are using ADB in server side you do not need to use
RPCMessageReceiver.
  
   What message receiver do I need to use then?
  
   Thanks,
   Sathija.
  
  
  
Hi Sathija ;
   
   Hello,
   
   I am using Axis2 1.1.1 for my web services and use ADB for data 
binding with RPCMessageReceiver.
   
   
are you using ADB in client side or server side ?
If you are using ADB in server side you do not need to use
RPCMessageReceiver.
   
   I have been unsuccessfully trying to return a datatype 'A1' to my 
client. 'A1' extends from an abstract
 object
  'A'
   that also contains from attributes.
   
   However, when the client receives the response, all attributes from 
A1 are in the response but attributes
 from
  A
   are
   missing.
   
   So I am back to thinking if ADB supports this object hierarchy. I 
have seen some older posts with such
  scenarios
   but
   no useful suggestions.
   
   Thanks!
   Sathija.
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
   
   
--
Thanks,
Deepal

The highest tower is built one brick at a time
   
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
   --
   Paul Fremantle
   VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
  
   http://bloglines.com/blog/paulfremantle
   [EMAIL PROTECTED]
  
   Oxygenating the Web Service Platform, www.wso2.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Paul Fremantle
  VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
 
  http://bloglines.com/blog/paulfremantle
  [EMAIL PROTECTED]
 
  Oxygenating the Web Service Platform, www.wso2.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 -
 To 

Re: [axis2] wsdl2java problems

2007-01-29 Thread Alan Birtles
Yes i am using ADB, I have worked round it by writing a new wsdl and  
using strings instead of the enumerations then modifying the generated  
code. I have rasised a JIRA here:  
https://issues.apache.org/jira/browse/AXIS2-2053

Quoting Ajith Ranabahu [EMAIL PROTECTED]:


Hi,
Is this using ADB ? I guess we have limitations in handling simple
types and simple type extensions. Would it be possible to use a more
capable databinding (say XMLBeans) and try it out ?

In anycase please log a Jira as well.

Ajith

On 1/29/07, Amila Suriarachchi [EMAIL PROTECTED] wrote:

Please log a jira

On 1/29/07, [EMAIL PROTECTED]  [EMAIL PROTECTED]
wrote:


Using wsdl2java on the attached wsdl produces some incorrect results.
The xml that i would expect the generated code to produce is in
expected.xml the code it actually produces is in actual.xml. The
element name for element1 is incorrect, element2 should contain the
string directly instead of having it as a child node, element2 is also
missing the attribute that it should have.
There seems to be problems with wsdl2java's handling of enumerations
in anything other than the most basic cases




-

To unsubscribe, e-mail:

[EMAIL PROTECTED]

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







--
Amila Suriarachchi,
WSO2 Inc.



--
Ajith Ranabahu

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




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



Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-29 Thread Sathija Pavuluri
I have created a JIRA: AXIS2-2055
Also attached the entire source and the tcpmon response to the JIRA.

Thanks.
Sathija.


 Sounds like a bug to me. Can you please raise a JIRA?

 Paul

 On 1/29/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
  The client won't be able to see the hierarchy. In other words the
  client will only see a Weather schema, it won't know that Weather
  extends from ABC. But apart from that it should work fine.

 Does that mean that data from parent class will be lost?

 I actually tested this out with these objects.

 public class CustomerDTO {
 private String name;
 private String phone;
 private String address;
 // public getters/setters
 }

 public class PremierCustomerDTO extends CustomerDTO {
 private String clubName;
 private String vipNumber;
 // public getters/setters
 }

 My service class returns a PremierCustomerDTO with data populated on it for 
 all five attributes.
 Whereas, after I retrieve the PremierCustomerDTO at the client side, only 
 the 2 attrs (clubName, vipNumber) declared
 on it are returned.
 The other 3 from the parent are null.

 Is that the way its designed to work? Or should I be doing something 
 different?

 Thanks!
 Sathija.

 
  Paul
 
  On 1/29/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
 
  Paul,
 
  No, I have not used that approach yet, but was looking at that option. My 
  question regarding that, however is,
 does
  it
  support POJOs that are hierarchical because that's what I really need.
  In the Weather example in the POJO guide, if Weather extended from say 
  ABC (could be abstract and also has its
  public
  getter/setters), would things be any different?
  And can the client and service still make use of this hierarchy without 
  doing anything additional that whats
  described
  in that sample?
 
  Thanks,
  Sathija.
 
 
   Sajith
  
   Are you following the POJO sample?
  
   Paul
  
   On 1/26/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
When you run WSDL2Java -ss -sd to create the server side skeleton and
ADB binding objects it generates a message receiver and services.xml
for you. You simply need to type ant to built it all into an AAR.
  
   Paul,
   I am using the code first approach and generating wsdl from the java 
   classes.
   How does what you described stick into this method?
  
   Thanks.
   Sathija
  
   
Paul
   
On 1/26/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
Deepal,
   
Both the server and client use ADB binding.
   
 If you are using ADB in server side you do not need to use
 RPCMessageReceiver.
   
What message receiver do I need to use then?
   
Thanks,
Sathija.
   
   
   
 Hi Sathija ;

Hello,

I am using Axis2 1.1.1 for my web services and use ADB for data 
binding with RPCMessageReceiver.


 are you using ADB in client side or server side ?
 If you are using ADB in server side you do not need to use
 RPCMessageReceiver.

I have been unsuccessfully trying to return a datatype 'A1' to my 
client. 'A1' extends from an abstract
  object
   'A'
that also contains from attributes.

However, when the client receives the response, all attributes 
from A1 are in the response but attributes
  from
   A
are
missing.

So I am back to thinking if ADB supports this object hierarchy. I 
have seen some older posts with such
   scenarios
but
no useful suggestions.

Thanks!
Sathija.


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






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



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


   
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
   
http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]
   
Oxygenating the Web Service Platform, www.wso2.com
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
   --
   Paul Fremantle
   VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
  
   http://bloglines.com/blog/paulfremantle
   

[Axis2][rampart] How to enable MTOM in rampart

2007-01-29 Thread Sebastian Roschke
Hi all,

I try to send the encrypted parts optimized Mime parts. In Rampart 1.0
there was an option optimizeParts that helps to configure MTOM in SOAP
messages.

Is there an equivalent feature in Rampart 1.1? I tried something like
ramp:optimizeParts.../ramp:optimizeParts but it doesn't work for me.
How to configure Rampart 1.1 with policies to send MTOM messages?

Thanks for the help,

Regards,
Sebastian



signature.asc
Description: OpenPGP digital signature


Out-Only MEP Cleint

2007-01-29 Thread Callner, David A.

 Hi I was wondering if it is possible to create a Out-Only MEP Server
and create the client so that it acts as a client without a web
service.  If not could somebody explain to me as to why the client
needs to run a web server as well.

Thanks,
David Callner
Senior Software Systems Engineer
The MITRE Corporation
Center for Advanced Aviation System Development
7515 Colshire Dr.
McLean, VA. 22102
[EMAIL PROTECTED] 
703.983.6431 (work) 
 
This American system of ours . . . call it capitalism, call it what
you like, gives to each and every one of us a great opportunity if we
only seize it with both hands and make the most of it.  Al Capone

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



Re: Deserializing substitutionGroup and abstract types

2007-01-29 Thread Jeff Greif

Abstract types and substitution groups seem not to be well supported
in most web service machinery.  Even if you find a supporting
platform, there may be interoperability problems if clients use other
platforms.  You might have an easier time getting something like this
to work:

element name=sequence type=tns:Workflow/
element name=parallel type=tns:Workflow/
element name=pipeline type=tns:Pipeline/

complexType name=Workflow
  choice maxOccurs=unbounded
 element ref=sequence/
 element ref=parallel/
 element ref=pipeline/
   /choice
/complexType

complexType name=Pipeline
  ...
/complexType

Jeff

On 1/29/07, Amy Krause [EMAIL PROTECTED] wrote:

Hi,

I'm having a very similar problem as described here:
http://marc.theaimsgroup.com/?l=axis-userm=113819830006177w=2

My schema is included below.
I'm trying to implement a composite pattern. There are three types derived
from an abstract type as follows:

 Workflow (abstract)
/ |\
Parallel   Sequence  Pipeline

Both parallel and sequence elements must contain nested Workflow elements
(one or more of parallel, sequence or pipeline), whereas pipeline elements
cannot - they form the leaves of the workflow tree.
An example of a document would be:

perform
   sequence
 parallel
   pipeline ... /pipeline
   pipeline ... /pipeline
 /parallel
 pipeline ... /pipeline
   /sequence
perform

In the schema I've defined an abstract Workflow element and elements
parallel, sequence and pipeline. These are substitution elements for the
Workflow element.
When I generate Java beans with WSDL2Java there is no trace of the
parallel and sequence elements. There is a Java class called Composite
which extends WorkflowComponent but there is no way of telling whether
this Composite object used to be a sequence or a parallel element. How can
I force Axis to generate Java beans corresponding to those elements?

Any help with this would be appreciated.

Thanks,
Amy



  !-- root element --
  xsd:element name=perform
 xsd:complexType
   xsd:sequence
 xsd:element ref=tns:workflow/
   /xsd:sequence
 /xsd:complexType
   /xsd:element

   !-- work flow group and component --

   xsd:element name=workflow abstract=true
type=tns:WorkflowComponent
   /xsd:element

   xsd:complexType name=WorkflowComponent
   /xsd:complexType

   xsd:element name=parallel
substitutionGroup=tns:workflow
type=tns:Composite/
   xsd:element name=sequence
substitutionGroup=tns:workflow
type=tns:Composite/

   xsd:complexType name=Composite
 xsd:complexContent
   xsd:extension base=tns:WorkflowComponent
 xsd:sequence
   xsd:element ref=tns:workflow maxOccurs=unbounded/
 /xsd:sequence
   /xsd:extension
 /xsd:complexContent
   /xsd:complexType

   xsd:element name=pipeline
substitutionGroup=tns:workflow
type=tns:Pipeline/

   xsd:complexType name=Pipeline
 xsd:complexContent
   xsd:extension base=tns:WorkflowComponent
 xsd:sequence
   xsd:element ref=tns:activity minOccurs=1
   maxOccurs=unbounded/
 /xsd:sequence
   /xsd:extension
 /xsd:complexContent
   /xsd:complexType

   xsd:element name=activity
  !-- some definitions here ... --
   /xsd:element


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




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



Re: Axis2 Eclipse code generator plugin for jibx

2007-01-29 Thread informaticu007-pfc
I Sent a JIRA with the description of the steps I followed (AXIS2-2058)

Regards 

Jorge

[EMAIL PROTECTED] escribió: Hi Lahiru:

I don't know if it's normal but I've just realized that when I built the plugin 
after uncommenting the databinding jibx and built again the jar file, its size 
went from 76 kb to 98 kb. I think I'm doing something wrong but I don't know 
what.

Thanks:

   Jorge

Lahiru Sandakith [EMAIL PROTECTED] escribió: Hi, 
we have experienced random behavior, when we  codegen using jibx. 
As you say, if you have uncommented the databinding jibx, copy the libs, make 
the changes in the plugins.xml and build the plugin after that replace the 
existing plugin at eclipse plugins directory, it should work.  

If the eclipse workspace had inconsistencies because of the plugin change that 
you did manually you can try deleting the codegen plugin dir located at 
ECLIPSE_WORKSPACE/.metadata/plugins/  but this is equivalent to eclipse 
restart. 

Thanks 

Lahiru Sandakith

On 1/27/07, [EMAIL PROTECTED]  [EMAIL PROTECTED] wrote:Hi: 

I'd already done what you've suggested and it didn't work. 
I've added the axis2-jibx, jibx-run and jibx-bind to the 
/plugins/Axis2_Codegen_Wizard_1.2.1/lib directory and then added this entries 
to the /plugins/Axis2_Codegen_Wizard_1.2.1/plugin.xml:

library name=lib/jibx- run-1.1.2.jar
 export name=*/
  /library
  library  name=lib/jibx-bind-1.1.2.jar
 export name=*/
  /library 
  library name=lib/axis2-jibx-1.1.jar
 export name=*/
  /library


but the problem is the same. Thankyou anyway for trying.
Anyone else can help  me??
Thankyou

Ajith Ranabahu [EMAIL PROTECTED] escribió:  Hi,
I guess this is something that should be recorded as a Jira since if
the code generator listed jibx as an option the jibx jars need to be
in the distribution.
In the meanwhile  please try the following and see whether it works. 

1. copy the jar files to the
/plugins/Axis2_Codegen_Wizard_1.2.1/lib directory

2. Update the plugin.xml file


I. find the following entries
   ..
   library name=Axis2CodegenWizard.jar
 export name=*/
  /library
  library name=lib/activation-1.1.jar
 export name=*/
  /library
  ..
 These should be inside the runtime element.

   II. Add jibx jar entries similar to this

  library name=lib/axis2-jibx.jar
 export name=*/
  /library
.


3. Restart eclipse.

HTH
Ajith

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


[EMAIL PROTECTED]  escribió:
  Hi there!

I'm new to this whole thing of axis2 and I would be grateful if someone could 
help me with this: 

I would like to use the eclipse code generator plugin for generating code using 
jibx databinding. I watched out in the source  code that comes with the plugin 
and I found that the option is available in the databinding combo box, but was 
disabled and I  uncommented it. Then, when I used that option I got a message: 

an error occurred while completing process -java.lang.InterruptedException:
java.lang.RuntimeException: JiBX framework jars not in classpath 

I tried copying the jars files axis2-jibx, jibx-run and jibx-bind from the 
axis2 lib directory and put into the plugin lib directory and even taking the 
class files from the axis2-jibx and updating the axis2-1.1.jar  file from the 
plugin lib directory with those classes but the problem was still the same. 

Could anyone help me, please?

Thank you in advance


-

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

-

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





-- 
Regards
Lahiru Sandakith 


-

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


-

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

[AXIS2] AXIOM sample in user guide not working

2007-01-29 Thread mvkirankumar

Hi,

I just tried to make my own sample service by referring to the user guide.


Creating a Service From Scratch
Creating a service from scratch is not the most convenient way to do it, but
it does give you the most control. The process involves several steps.

The short story:

Create the service class, with each operation represented by a method that
takes as its argument a org.apache.axiom.om.OMElement object. (An OMElement
is how the AXIs2 Object Model (AXIOM) represents an XML element.) 
Create the service descriptor, services.xml, which defines the class to be
used by the service and the appropriate message receivers. 
Create the .aar file, with the classes in their proper locations based on
package and the services.xml file in the META-INF directory. 
Deploy the .aar file by using the Web Administration application or by
copying it to the Axis2 services directory. 

=

I created a sample service, then a services.xml into the META-INF folder.
prepared a jar with .aar and put it in the tomcat axis2 services directory.

The service does not generate a wsdl.

Then i manually generated a wsdl by java2wsdl. the wsdl gets generated but
not able to access by client.
Why is the specified sample not working out of the box.
can someone help me.

I have attached the relevant files as a zip file.

thanks
kiran kumar. http://www.nabble.com/file/6093/AXIOMHelloProject.zip
AXIOMHelloProject.zip 
-- 
View this message in context: 
http://www.nabble.com/-AXIS2--AXIOM-sample-in-user-guide-not-working-tf3137319.html#a8694264
Sent from the Axis - User mailing list archive at Nabble.com.


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



[AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread mvkirankumar

Hi,

Please suggest me with the following:

Which xml java binding framework should i use or which one is stable to use.
I have tried AXIOM sample, jibx both do not work.
Only the samples given in axis2 works.
if i try out something, they do not work.

Please help me, to take up a robust framework to implement in my project.

thanks
kiran kumar.
-- 
View this message in context: 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread Davanum Srinivas

If you have a complicated schema, you should use xmlbeans. If you are
willing to sacrifice a bit of schema support for better performance,
use ADB. As i mention usually, start from WSDL/Schema. (NOT from
java/pojo's).

thanks,
dims

On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:


Hi,

Please suggest me with the following:

Which xml java binding framework should i use or which one is stable to use.
I have tried AXIOM sample, jibx both do not work.
Only the samples given in axis2 works.
if i try out something, they do not work.

Please help me, to take up a robust framework to implement in my project.

thanks
kiran kumar.
--
View this message in context: 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: Configuration in Rampart 1.1

2007-01-29 Thread Sriram Vaidyanathan
Hi Ruchith,
 I have raised a JIRA for the problem: 
https://issues.apache.org/jira/browse/RAMPART-18

Thanks,
Sriram Vaidyanathan
Software Engineer - Java
Copart Auto Auctions, Inc.
4665 Business Center Drive
Fairfield, CA 94534
www.copart.com http://www.copart.com/ 
(707) 639-5428

-Original Message-
From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
Sent: Friday, January 26, 2007 8:51 PM
To: axis-user@ws.apache.org
Subject: Re: Configuration in Rampart 1.1

Hi,

We need to do this.
JIRA please :-)

Thanks,
Ruchith

On 1/27/07, Sriram Vaidyanathan [EMAIL PROTECTED] wrote:
 Thanks Ruchith.
  Another question I had is, If I had defined custom fault to be thrown from 
 an operation and those faults are currently not getting secured. Is there a 
 way to secure the outgoing faults from the service with the same security 
 policy used for securing outgoing messages.?

 Thanks,
 Sriram Vaidyanathan
 Software Engineer - Java
 Copart Auto Auctions, Inc.
 4665 Business Center Drive
 Fairfield, CA 94534
 www.copart.com http://www.copart.com/
 (707) 639-5428

 -Original Message-
 From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 24, 2007 6:34 PM
 To: axis-user@ws.apache.org
 Subject: Re: Configuration in Rampart 1.1

 Hi Sriram,

 This should be possible by specifying message level policies in the
 services.xml.

 Simply remove the EncryptedParts and SignedParts assertions from the
 service level policy and include those assertions at the message
 level. For example:

 service
 operation name=echo
 message label=in
  wsp:Policy wsu:Id=InputMessagePolicy
 xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
 xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
 sp:SignedParts
 xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
 sp:Body/
 /sp:SignedParts
 sp:EncryptedParts
 xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;
 sp:Body/
 /sp:EncryptedParts
  /wsp:Policy
 /message
 /operation

 wsp:Policy wsu:Id=ServicePolicy
 xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
 xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
  .
  .
  .
  .
 /wsp:Policy

 /service

 Please make sure that you don't have a
 sp:OnlySignEntireHeadersAndBody/ assertion in the binding policy as
 well.


 Thanks,
 Ruchith

 On 1/25/07, Sriram Vaidyanathan [EMAIL PROTECTED] wrote:
  Hello Ruchith /Dimuthu,
 
  Thanks for your responses!!
 
  I was just using the Policy sample03, which does both the Signature and the 
  Encryption, and it works very well. My question is there a way for me to 
  specify to the service to only expect Inflow messages to be secured and 
  not secure Outflow messages like it was possible in the Rampart 1.0 
  configuration.
 
  Thanks,
  Sriram Vaidyanathan
  Software Engineer - Java
  Copart Auto Auctions, Inc.
  4665 Business Center Drive
  Fairfield, CA 94534
  www.copart.com http://www.copart.com/
  (707) 639-5248
 
  -Original Message-
  From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 19, 2007 2:56 AM
  To: axis-user@ws.apache.org
  Subject: Re: Configuration in Rampart 1.1
 
  Hi Sriram,
 
  Note that you must use Rampart policy[1] in configuring rampart along
  with the standard WS-SecurityPolicy.
 
  The WS-SecPolicy stuff are not really straight forward. Therefore I
  believe we will be maintaining the rampart-1.0 configuration for a few
  more versions :-). However the rampart-1.0 configuration causes a few
  issues when we try to interop with other implementations. For example
  if the endpoint policy requires a signed Timestamp with strict
  header layout, the rampart-1.0 configuration fails to satisfy those
  requirements. Therefore the best option
 
  Thanks,
  Ruchith
 
  [1] 
  http://ws.apache.org/axis2/modules/rampart/1_1/sec-conf/rampart-config.xsd
 
  On 1/18/07, Dimuthu Leelaratne [EMAIL PROTECTED] wrote:
   Hi Sriram,
  
   As I understand your single client can tallk to multiple services but
   with different security requirements. For configurations now we
   encourage using Policy file according to WS Security Policy
   specification 
   (http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf).
  
   Since your services require different security settings, we may have
   to create different Policy.xml files. After that according to the
   service the client is going to invoke you  can load the relevant
   Policy file as follows.
  
   StAXOMBuilder builder  = new StAXOMBuilder(pathToPolicyfile);
   Policy 

Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread mvkirankumar

Thanks Davanum Srinivas for your response.

OK, you advise to start from WSDL rather than java/pojo's.

I got two questions:

1. But, does that mean we have to prepare a WSDL on our own first and then
start off.
Sorry, if this question is silly. I am new to this axis world.

2. I would have a big xml data with complicated schema. So using xmlbeans
would work fine means, which one is stable to use xmlbeans AXIS1.4 or AXIS2.

Thanks,
Kiran kumar.


Davanum Srinivas wrote:
 
 If you have a complicated schema, you should use xmlbeans. If you are
 willing to sacrifice a bit of schema support for better performance,
 use ADB. As i mention usually, start from WSDL/Schema. (NOT from
 java/pojo's).
 
 thanks,
 dims
 
 On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:

 Hi,

 Please suggest me with the following:

 Which xml java binding framework should i use or which one is stable to
 use.
 I have tried AXIOM sample, jibx both do not work.
 Only the samples given in axis2 works.
 if i try out something, they do not work.

 Please help me, to take up a robust framework to implement in my project.

 thanks
 kiran kumar.
 --
 View this message in context:
 http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
 Sent from the Axis - User mailing list archive at Nabble.com.


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

-- 
View this message in context: 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread Davanum Srinivas

#1) Yes. Start with Schema first (i use XMLSPY to write xsd's). Then
follow instructions from Anne here to fill up the template WSDL.

#2) Axis2 w/o a doubt.

thanks,
dims


On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:


Thanks Davanum Srinivas for your response.

OK, you advise to start from WSDL rather than java/pojo's.

I got two questions:

1. But, does that mean we have to prepare a WSDL on our own first and then
start off.
Sorry, if this question is silly. I am new to this axis world.

2. I would have a big xml data with complicated schema. So using xmlbeans
would work fine means, which one is stable to use xmlbeans AXIS1.4 or AXIS2.

Thanks,
Kiran kumar.


Davanum Srinivas wrote:

 If you have a complicated schema, you should use xmlbeans. If you are
 willing to sacrifice a bit of schema support for better performance,
 use ADB. As i mention usually, start from WSDL/Schema. (NOT from
 java/pojo's).

 thanks,
 dims

 On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:

 Hi,

 Please suggest me with the following:

 Which xml java binding framework should i use or which one is stable to
 use.
 I have tried AXIOM sample, jibx both do not work.
 Only the samples given in axis2 works.
 if i try out something, they do not work.

 Please help me, to take up a robust framework to implement in my project.

 thanks
 kiran kumar.
 --
 View this message in context:
 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
 Sent from the Axis - User mailing list archive at Nabble.com.


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




--
View this message in context: 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread Davanum Srinivas

oops forgot the link:

http://mail-archives.apache.org/mod_mbox/ws-axis-user/200609.mbox/[EMAIL 
PROTECTED]

-- dims

On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:

#1) Yes. Start with Schema first (i use XMLSPY to write xsd's). Then
follow instructions from Anne here to fill up the template WSDL.

#2) Axis2 w/o a doubt.

thanks,
dims


On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:

 Thanks Davanum Srinivas for your response.

 OK, you advise to start from WSDL rather than java/pojo's.

 I got two questions:

 1. But, does that mean we have to prepare a WSDL on our own first and then
 start off.
 Sorry, if this question is silly. I am new to this axis world.

 2. I would have a big xml data with complicated schema. So using xmlbeans
 would work fine means, which one is stable to use xmlbeans AXIS1.4 or AXIS2.

 Thanks,
 Kiran kumar.


 Davanum Srinivas wrote:
 
  If you have a complicated schema, you should use xmlbeans. If you are
  willing to sacrifice a bit of schema support for better performance,
  use ADB. As i mention usually, start from WSDL/Schema. (NOT from
  java/pojo's).
 
  thanks,
  dims
 
  On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
 
  Hi,
 
  Please suggest me with the following:
 
  Which xml java binding framework should i use or which one is stable to
  use.
  I have tried AXIOM sample, jibx both do not work.
  Only the samples given in axis2 works.
  if i try out something, they do not work.
 
  Please help me, to take up a robust framework to implement in my project.
 
  thanks
  kiran kumar.
  --
  View this message in context:
  
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
  -
  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]
 
 
 

 --
 View this message in context: 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
 Sent from the Axis - User mailing list archive at Nabble.com.


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




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




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

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



[Axis2] Trouble using java2wsdl.sh tool

2007-01-29 Thread Mike Ferraro
Hello,

I've tried using the java2wsdl.sh command line tool in order to generate
a WSDL file from my existing Java object.  When I first tried to run the
script, I got this messages:

./java2wsdl.sh: AXIS2_HOME=/usr/users/mferraro/axis2-1.1.1: is not an
identifier
./java2wsdl.sh: JAVA_HOME=/usr/java: is not an identifier

This was caused by improper export statements in the script.  I fixed
the export statements but then I got this message:

 Using AXIS2_HOME:   /usr/users/mferraro/axis2-1.1.1
 Using JAVA_HOME:   /usr/java
Unrecognized option: -sn
Could not create the Java virtual machine.
Does anyone know what the problem is here?

The command that I'm using is:
./java2wsdl.sh -cp /usr/users/mferraro/cdws-1.0.jar -sn emailUpdate -cn
edu/harvard/cait/cdws/EmailService

(When I removed the -sn option, I got the same error message except for
the -cn option.)

Thank you,
-
Mike Ferraro
Senior Software Engineer
CAIT : Information Technology Infrastructure Services
Harvard University
ph: 617-384-6683



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



[Axis2] Trouble deploying axis2.war

2007-01-29 Thread Mike Ferraro
Hello,

I'm new to Axis2 and am trying to go through the instructions from the
beginning.  My goal is to develop a set of web services using existing
Java objects.  I tried downloading the latest war file and dropping into
my app server.  I use Weblogic.  I dropped the war file into the
appropriate directory and deployed the application through the WL admin
console.  In the startup log I got the message below.  Does anyone know
the cause of this?

Thank you,
Mike Ferraro

Jan 29, 2007 1:33:16 PM EST Error HTTP BEA-101125
[ServletContext(id=4653899,name=axis2,context-path=/axis2)] Error occu
rred while instantiating servlet: AxisServlet.
java.lang.NoSuchMethodError:
javax.xml.namespace.QName.init(Ljava/lang/String;Ljava/lang/String;Lja
va/lang/String;)V
at
org.apache.axis2.engine.InstanceDispatcher.clinit(InstanceDispatcher.j
ava:41)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at
org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:88)
at
org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList(AxisConfi
gBuilder.java:264)
at
org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders(AxisCon
figBuilder.java:292)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigB
uilder.java:107)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(D
eploymentEngine.java:690)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.init(WarBasedAxis
Configurator.java:129)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle
t.java:392)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletS
tubImpl.java:993)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.
java:869)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp
l.java:848)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:787)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServ
letContext.java:3252)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppSer
vletContext.java:3197)
at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppSe
rvletContext.java:3174)
at
weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletC
ontext.java:5647)
at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869)
at
weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.ja
va:2022)
at
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer
.java:2063)
at
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.act
ivateContainer(SlaveDeployer.java:2592)
at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(Sla
veDeployer.java:2515)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer
.java:2317)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(Slav
eDeployer.java:2399)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeploye
r.java:2311)
at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(Slav
eDeployer.java:2479)
at
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveD
eployer.java:798)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeploye
r.java:507)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeploy
er.java:465)
at
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandle
r.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

Jan 29, 2007 1:33:16 PM EST Error HTTP BEA-101216 Servlet:
AxisServlet failed to preload on startup in Web application
: axis2.
javax.servlet.ServletException: Servlet class:
'org.apache.axis2.transport.http.AxisServlet' doesn't have a default
constructor
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletS
tubImpl.java:997)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu

RE: [Axis2] Trouble deploying axis2.war

2007-01-29 Thread Spies, Brennan
Mike,

You have an older version of the QName class that is getting loaded before
the one in your Axis library...if you are using Weblogic 9.2, you might want
to take a look at using a Filtering Classloader to load the class from your
Axis lib instead:
http://e-docs.bea.com/wls/docs92/programming/classloading.html#filteringClass
Loader


Brennan Spies
Sr. Programmer Analyst
Shared Application Services

-Original Message-
From: Mike Ferraro [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 29, 2007 11:16 AM
To: axis-user@ws.apache.org
Subject: [Axis2] Trouble deploying axis2.war

Hello,

I'm new to Axis2 and am trying to go through the instructions from the
beginning.  My goal is to develop a set of web services using existing
Java objects.  I tried downloading the latest war file and dropping into
my app server.  I use Weblogic.  I dropped the war file into the
appropriate directory and deployed the application through the WL admin
console.  In the startup log I got the message below.  Does anyone know
the cause of this?

Thank you,
Mike Ferraro

Jan 29, 2007 1:33:16 PM EST Error HTTP BEA-101125
[ServletContext(id=4653899,name=axis2,context-path=/axis2)] Error occu
rred while instantiating servlet: AxisServlet.
java.lang.NoSuchMethodError:
javax.xml.namespace.QName.init(Ljava/lang/String;Ljava/lang/String;Lja
va/lang/String;)V
at
org.apache.axis2.engine.InstanceDispatcher.clinit(InstanceDispatcher.j
ava:41)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at
org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:88)
at
org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList(AxisConfi
gBuilder.java:264)
at
org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders(AxisCon
figBuilder.java:292)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigB
uilder.java:107)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(D
eploymentEngine.java:690)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.init(WarBasedAxis
Configurator.java:129)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle
t.java:392)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletS
tubImpl.java:993)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.
java:869)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp
l.java:848)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:787)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServ
letContext.java:3252)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppSer
vletContext.java:3197)
at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppSe
rvletContext.java:3174)
at
weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletC
ontext.java:5647)
at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869)
at
weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.ja
va:2022)
at
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer
.java:2063)
at
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.act
ivateContainer(SlaveDeployer.java:2592)
at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(Sla
veDeployer.java:2515)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer
.java:2317)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(Slav
eDeployer.java:2399)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeploye
r.java:2311)
at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(Slav
eDeployer.java:2479)
at
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveD
eployer.java:798)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeploye
r.java:507)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeploy
er.java:465)
at
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandle
r.java:25)
  

Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread Sathija Pavuluri
  As i mention usually, start from WSDL/Schema. (NOT from
   java/pojo's).

Sorry for chipping into this thread with an unrelated question, but wanted to 
know why you say that
Is that because axis2 has less good features for pojo services?
I had read some articles early on when I was jumping into this, that didnt 
advocate for either approach.

Thanks,
Sathija.



 oops forgot the link:

 http://mail-archives.apache.org/mod_mbox/ws-axis-user/200609.mbox/[EMAIL 
 PROTECTED]

 -- dims

 On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:
 #1) Yes. Start with Schema first (i use XMLSPY to write xsd's). Then
 follow instructions from Anne here to fill up the template WSDL.

 #2) Axis2 w/o a doubt.

 thanks,
 dims


 On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
 
  Thanks Davanum Srinivas for your response.
 
  OK, you advise to start from WSDL rather than java/pojo's.
 
  I got two questions:
 
  1. But, does that mean we have to prepare a WSDL on our own first and then
  start off.
  Sorry, if this question is silly. I am new to this axis world.
 
  2. I would have a big xml data with complicated schema. So using xmlbeans
  would work fine means, which one is stable to use xmlbeans AXIS1.4 or 
  AXIS2.
 
  Thanks,
  Kiran kumar.
 
 
  Davanum Srinivas wrote:
  
   If you have a complicated schema, you should use xmlbeans. If you are
   willing to sacrifice a bit of schema support for better performance,
   use ADB. As i mention usually, start from WSDL/Schema. (NOT from
   java/pojo's).
  
   thanks,
   dims
  
   On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
  
   Hi,
  
   Please suggest me with the following:
  
   Which xml java binding framework should i use or which one is stable to
   use.
   I have tried AXIOM sample, jibx both do not work.
   Only the samples given in axis2 works.
   if i try out something, they do not work.
  
   Please help me, to take up a robust framework to implement in my 
   project.
  
   thanks
   kiran kumar.
   --
   View this message in context:
   http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
   Sent from the Axis - User mailing list archive at Nabble.com.
  
  
   -
   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]
  
  
  
 
  --
  View this message in context:
 http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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

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



Java2Wsdl

2007-01-29 Thread Callner, David A.
Will Axis2 Java2Wsdl work with MUSE?
 
David Callner
Senior Software Systems Engineer
The MITRE Corporation
Center for Advanced Aviation System Development
7515 Colshire Dr.
McLean, VA. 22102
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
703.983.6431 (work) 
 
This American system of ours . . . call it capitalism, call it what
you like, gives to each and every one of us a great opportunity if we
only seize it with both hands and make the most of it.  Al Capone
 


Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread Davanum Srinivas

That's the best practice i recommend from experience. Advice not
related to whether you use Axis2 or not.

thanks,
dims

On 1/29/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:

  As i mention usually, start from WSDL/Schema. (NOT from
   java/pojo's).

Sorry for chipping into this thread with an unrelated question, but wanted to 
know why you say that
Is that because axis2 has less good features for pojo services?
I had read some articles early on when I was jumping into this, that didnt 
advocate for either approach.

Thanks,
Sathija.



 oops forgot the link:

 http://mail-archives.apache.org/mod_mbox/ws-axis-user/200609.mbox/[EMAIL 
PROTECTED]

 -- dims

 On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:
 #1) Yes. Start with Schema first (i use XMLSPY to write xsd's). Then
 follow instructions from Anne here to fill up the template WSDL.

 #2) Axis2 w/o a doubt.

 thanks,
 dims


 On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
 
  Thanks Davanum Srinivas for your response.
 
  OK, you advise to start from WSDL rather than java/pojo's.
 
  I got two questions:
 
  1. But, does that mean we have to prepare a WSDL on our own first and then
  start off.
  Sorry, if this question is silly. I am new to this axis world.
 
  2. I would have a big xml data with complicated schema. So using xmlbeans
  would work fine means, which one is stable to use xmlbeans AXIS1.4 or 
AXIS2.
 
  Thanks,
  Kiran kumar.
 
 
  Davanum Srinivas wrote:
  
   If you have a complicated schema, you should use xmlbeans. If you are
   willing to sacrifice a bit of schema support for better performance,
   use ADB. As i mention usually, start from WSDL/Schema. (NOT from
   java/pojo's).
  
   thanks,
   dims
  
   On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
  
   Hi,
  
   Please suggest me with the following:
  
   Which xml java binding framework should i use or which one is stable to
   use.
   I have tried AXIOM sample, jibx both do not work.
   Only the samples given in axis2 works.
   if i try out something, they do not work.
  
   Please help me, to take up a robust framework to implement in my 
project.
  
   thanks
   kiran kumar.
   --
   View this message in context:
   
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
   Sent from the Axis - User mailing list archive at Nabble.com.
  
  
   -
   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]
  
  
  
 
  --
  View this message in context:
 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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

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



Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread mvkirankumar

Davanum,

This method of preparing a schema and then wsdl, then using ADB/XMLBEANS is
Document/Literal only right.
Also, i guess only Doc/Lit wrapped is interoperable to transfer huge amount
of xml data inbuilt inside the soap body.

Please correct me, if am wrong.

Thanks.
kiran.


Davanum Srinivas wrote:
 
 oops forgot the link:
 
 http://mail-archives.apache.org/mod_mbox/ws-axis-user/200609.mbox/[EMAIL 
 PROTECTED]
 
 -- dims
 
 On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:
 #1) Yes. Start with Schema first (i use XMLSPY to write xsd's). Then
 follow instructions from Anne here to fill up the template WSDL.

 #2) Axis2 w/o a doubt.

 thanks,
 dims


 On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
 
  Thanks Davanum Srinivas for your response.
 
  OK, you advise to start from WSDL rather than java/pojo's.
 
  I got two questions:
 
  1. But, does that mean we have to prepare a WSDL on our own first and
 then
  start off.
  Sorry, if this question is silly. I am new to this axis world.
 
  2. I would have a big xml data with complicated schema. So using
 xmlbeans
  would work fine means, which one is stable to use xmlbeans AXIS1.4 or
 AXIS2.
 
  Thanks,
  Kiran kumar.
 
 
  Davanum Srinivas wrote:
  
   If you have a complicated schema, you should use xmlbeans. If you are
   willing to sacrifice a bit of schema support for better performance,
   use ADB. As i mention usually, start from WSDL/Schema. (NOT from
   java/pojo's).
  
   thanks,
   dims
  
   On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
  
   Hi,
  
   Please suggest me with the following:
  
   Which xml java binding framework should i use or which one is stable
 to
   use.
   I have tried AXIOM sample, jibx both do not work.
   Only the samples given in axis2 works.
   if i try out something, they do not work.
  
   Please help me, to take up a robust framework to implement in my
 project.
  
   thanks
   kiran kumar.
   --
   View this message in context:
  
 http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
   Sent from the Axis - User mailing list archive at Nabble.com.
  
  
  
 -
   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]
  
  
  
 
  --
  View this message in context:
 http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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

 
 
 -- 
 Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8696783
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread Davanum Srinivas

Kiran,

Please read this:
http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html

Wrapped is a convention used when writing doc/lit wsdl's. There is no
difference in the amount of payload.

thanks,
dims

On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:


Davanum,

This method of preparing a schema and then wsdl, then using ADB/XMLBEANS is
Document/Literal only right.
Also, i guess only Doc/Lit wrapped is interoperable to transfer huge amount
of xml data inbuilt inside the soap body.

Please correct me, if am wrong.

Thanks.
kiran.


Davanum Srinivas wrote:

 oops forgot the link:

 http://mail-archives.apache.org/mod_mbox/ws-axis-user/200609.mbox/[EMAIL 
PROTECTED]

 -- dims

 On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:
 #1) Yes. Start with Schema first (i use XMLSPY to write xsd's). Then
 follow instructions from Anne here to fill up the template WSDL.

 #2) Axis2 w/o a doubt.

 thanks,
 dims


 On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
 
  Thanks Davanum Srinivas for your response.
 
  OK, you advise to start from WSDL rather than java/pojo's.
 
  I got two questions:
 
  1. But, does that mean we have to prepare a WSDL on our own first and
 then
  start off.
  Sorry, if this question is silly. I am new to this axis world.
 
  2. I would have a big xml data with complicated schema. So using
 xmlbeans
  would work fine means, which one is stable to use xmlbeans AXIS1.4 or
 AXIS2.
 
  Thanks,
  Kiran kumar.
 
 
  Davanum Srinivas wrote:
  
   If you have a complicated schema, you should use xmlbeans. If you are
   willing to sacrifice a bit of schema support for better performance,
   use ADB. As i mention usually, start from WSDL/Schema. (NOT from
   java/pojo's).
  
   thanks,
   dims
  
   On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
  
   Hi,
  
   Please suggest me with the following:
  
   Which xml java binding framework should i use or which one is stable
 to
   use.
   I have tried AXIOM sample, jibx both do not work.
   Only the samples given in axis2 works.
   if i try out something, they do not work.
  
   Please help me, to take up a robust framework to implement in my
 project.
  
   thanks
   kiran kumar.
   --
   View this message in context:
  
 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
   Sent from the Axis - User mailing list archive at Nabble.com.
  
  
  
 -
   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]
  
  
  
 
  --
  View this message in context:
 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
  Sent from the Axis - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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

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




--
View this message in context: 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8696783
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: Session Connection pooling in Axis2 WS

2007-01-29 Thread Ho, Wen Yue
Hi Paul,

If my web-service is in Request/ Session scope, which means one instance for 
every single request.
Then if my web service on its process involves creating a singleton object 
(e.g.: DBConnection Pooling, etc.), will it break the singleton concept, as it 
will create one singleton for each single request/ service object?
What will be the correct way to design this?
Separate them as a separate web-services, one set in 'request' session and the 
singleton one set in 'application' session?

Thanks in advance,
wen

-Original Message-
From: Paul Fremantle [mailto:[EMAIL PROTECTED] 
Sent: January 26, 2007 7:55 AM
To: axis-user@ws.apache.org
Subject: Re: Session Connection pooling in Axis2 WS

Session scope is simply the lifecycle of the objects and state that
Axis2 manages.

So if you define request, then each new request will instantiate a new service 
object.
If you define transportsession, then Axis2 will use HTTP cookies. Each client 
will re-use the same service object.
If you define soapsession, it will do the same thing, except using SOAP headers 
instead of cookies.
If you define application, then you will have a single service object for all 
requests.

It is up to you to make sure that youre object can support the right threading 
model for application. For request you need not worry about thread safety 
because each request has its own service object.

Paul

On 1/26/07, Stadelmann Josef [EMAIL PROTECTED] wrote:
 Sanjiva

 What is session scope?

 you have to define one of
 scope=request
 scope=transportsession
 scope=soapsession
 scope=application

 which one do you mean?
 Josef

 -Ursprüngliche Nachricht-
 Von: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 25. Januar 2007 06:29
 An: axis-user@ws.apache.org
 Betreff: RE: Session Connection pooling in Axis2 WS


 It depends on the scope of the service .. if its deployed in 
 application scope then only one instance is created. If its in session 
 scope then its one instance per session and so on.

 See: http://wso2.org/library/231

 Sanjiva.

 On Wed, 2007-01-24 at 11:45 -0500, Ho, Wen Yue wrote:
  Hi,
 
  I think my question is not clear and confusing.
  Sorry, a newbie here :-)
 
  Please allow me to re-phrase my question.
  How does Axis2 handle multiple request to the webservices?
  AFAIK, Axis2 is a servlet and by default, a (single) servlet should 
  be able to handle multiple HTTP requests.
  For each incoming request session, will axis (servlet) instantiate 
  just one instance of the websrvice class for multiple requests?
  Or it will instantiate one webservice object for each request?
 
  Your assistance will be highly appreciated.
  Thank you.
 
 
 
 
  
  __
  From: Ho, Wen Yue [mailto:[EMAIL PROTECTED]
  Sent: January 23, 2007 2:26 PM
  To: axis-user@ws.apache.org
  Subject: Session Connection pooling in Axis2 WS
 
 
 
  Hi,
 
  I have a legacy system that provides an API to access the system 
  thru their own Session object.
  I need to pool this session objects within my web services developed 
  using Axis2.
 
  Correct me if I'm wrong.
  AFAIK, Axis2 by default will make one thread per request to the web 
  service.
  I think this means singleton class won't work, since one thread will 
  instantiate one singleton.
  Any advice on how to do this?
 
  Thanks in advance.
 
 
  
  NOTICE OF CONFIDENTIALITY
  This communication including any information transmitted with it is 
  intended only for the use of the addressees and is confidential.
  If you are not an intended recipient or responsible for delivering 
  the message to an intended recipient, any review, disclosure, 
  conversion to hard copy, dissemination, reproduction or other use of 
  any part of this communication is strictly prohibited, as is the 
  taking or omitting of any action in reliance upon this communication.
  If you receive this communication in error or without authorization 
  please notify us immediately by return e-mail or otherwise and 
  permanently delete the entire communication from any computer, disk 
  drive, or other storage medium.
 
  If the above disclaimer is not properly readable, it can be found at 
  www.td.com/legal
 
  AVERTISSEMENT DE CONFIDENTIALITE
  Ce courriel, ainsi que tout renseignement ci-inclus, destiné 
  uniquement aux destinataires susmentionnés,  est confidentiel.  Si 
  vous n'êtes pas le destinataire prévu ou un agent responsable de la 
  livraison de ce courriel, tout examen, divulgation, copie, 
  impression, reproduction, distribution, ou autre utilisation d'une 
  partie de ce courriel est strictement interdit de même que toute 
  intervention ou abstraction à cet égard.  Si vous avez reçu ce 
  message par erreur ou sans autorisation, veuillez en aviser 
  immédiatement l'expéditeur par retour de courriel ou par un autre 
  moyen et supprimer immédiatement cette communication entière de 

Proxy setting when using AXIS2's SAAJ APIs

2007-01-29 Thread Yadav, Yogendra \(IT\)
Hi,
Sun's SAAJ implementation reads proxy settings from system properties.
System.setProperty( https.proxyHost, host);
System.setProperty( https.proxyPort, port);
 
I want to use proxy using SAAJ APIs provided by AXIS2. In AXIS2's
implementation SOAPConnectionImpl.java the Options object is created
new. The call() method does not provide an ability to set proxy. Anybody
knows how to do proxy settings while using SAAJ APIs in AXIS2 ?
 
Appreciate it.
thanx
-yogen


NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.


Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread Anne Thomas Manes

I heartily concur with Dims. If you plan to use the same framework on
both client and server, then you will probably get by very well by
following the code-first approach. But if you will ever have the need
to interoperate with other frameworks, you'll do much better adopting
a Schema-first approach. Also keep in mind that the code-first
approach should be used only for application integration. It is not an
appropriate means to achieve SOA.

SOA is all about reuse. And it involve reuse not just of application
functionality, but also of data structures. The fundamental unit of
reuse is the XML types that your applications and services share.

If you use the code-first approach, then you will generate a different
set of XML types for every service. If you have two services that work
with customer data, you will generate two incompatible customer types.
That is absolutely what you don't want to do. Your organization should
define a set of common shared types that represent your core
information structures, and your service interfaces should share these
structures. You should not generate these structures from code.

Anne

On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:

That's the best practice i recommend from experience. Advice not
related to whether you use Axis2 or not.

thanks,
dims

On 1/29/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
   As i mention usually, start from WSDL/Schema. (NOT from
java/pojo's).

 Sorry for chipping into this thread with an unrelated question, but wanted to 
know why you say that
 Is that because axis2 has less good features for pojo services?
 I had read some articles early on when I was jumping into this, that didnt 
advocate for either approach.

 Thanks,
 Sathija.



  oops forgot the link:
 
  http://mail-archives.apache.org/mod_mbox/ws-axis-user/200609.mbox/[EMAIL 
PROTECTED]
 
  -- dims
 
  On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:
  #1) Yes. Start with Schema first (i use XMLSPY to write xsd's). Then
  follow instructions from Anne here to fill up the template WSDL.
 
  #2) Axis2 w/o a doubt.
 
  thanks,
  dims
 
 
  On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
  
   Thanks Davanum Srinivas for your response.
  
   OK, you advise to start from WSDL rather than java/pojo's.
  
   I got two questions:
  
   1. But, does that mean we have to prepare a WSDL on our own first and 
then
   start off.
   Sorry, if this question is silly. I am new to this axis world.
  
   2. I would have a big xml data with complicated schema. So using xmlbeans
   would work fine means, which one is stable to use xmlbeans AXIS1.4 or 
AXIS2.
  
   Thanks,
   Kiran kumar.
  
  
   Davanum Srinivas wrote:
   
If you have a complicated schema, you should use xmlbeans. If you are
willing to sacrifice a bit of schema support for better performance,
use ADB. As i mention usually, start from WSDL/Schema. (NOT from
java/pojo's).
   
thanks,
dims
   
On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
   
Hi,
   
Please suggest me with the following:
   
Which xml java binding framework should i use or which one is stable 
to
use.
I have tried AXIOM sample, jibx both do not work.
Only the samples given in axis2 works.
if i try out something, they do not work.
   
Please help me, to take up a robust framework to implement in my 
project.
   
thanks
kiran kumar.
--
View this message in context:

http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
Sent from the Axis - User mailing list archive at Nabble.com.
   
   
-
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]
   
   
   
  
   --
   View this message in context:
  
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
   Sent from the Axis - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
 
 
 
  --
  Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 -
 To unsubscribe, e-mail: [EMAIL 

Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread mvkirankumar

Hi Anne,

Thanks for your expert advice.

Will follow the same, first design a schema then wsdl.

Then generate the ADB binding classes using wsdl2java tool.

I am working on it and now i got one question:

Instead of importing the XSD into the wsdl, i can even write the schema
definition into the xs:schema of wsdl right?

Thanks,
Kiran Kumar.


Anne Thomas Manes wrote:
 
 I heartily concur with Dims. If you plan to use the same framework on
 both client and server, then you will probably get by very well by
 following the code-first approach. But if you will ever have the need
 to interoperate with other frameworks, you'll do much better adopting
 a Schema-first approach. Also keep in mind that the code-first
 approach should be used only for application integration. It is not an
 appropriate means to achieve SOA.
 
 SOA is all about reuse. And it involve reuse not just of application
 functionality, but also of data structures. The fundamental unit of
 reuse is the XML types that your applications and services share.
 
 If you use the code-first approach, then you will generate a different
 set of XML types for every service. If you have two services that work
 with customer data, you will generate two incompatible customer types.
 That is absolutely what you don't want to do. Your organization should
 define a set of common shared types that represent your core
 information structures, and your service interfaces should share these
 structures. You should not generate these structures from code.
 
 Anne
 
 On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:
 That's the best practice i recommend from experience. Advice not
 related to whether you use Axis2 or not.

 thanks,
 dims

 On 1/29/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
As i mention usually, start from WSDL/Schema. (NOT from
 java/pojo's).
 
  Sorry for chipping into this thread with an unrelated question, but
 wanted to know why you say that
  Is that because axis2 has less good features for pojo services?
  I had read some articles early on when I was jumping into this, that
 didnt advocate for either approach.
 
  Thanks,
  Sathija.
 
 
 
   oops forgot the link:
  
  
 http://mail-archives.apache.org/mod_mbox/ws-axis-user/200609.mbox/[EMAIL 
 PROTECTED]
  
   -- dims
  
   On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:
   #1) Yes. Start with Schema first (i use XMLSPY to write xsd's). Then
   follow instructions from Anne here to fill up the template WSDL.
  
   #2) Axis2 w/o a doubt.
  
   thanks,
   dims
  
  
   On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
   
Thanks Davanum Srinivas for your response.
   
OK, you advise to start from WSDL rather than java/pojo's.
   
I got two questions:
   
1. But, does that mean we have to prepare a WSDL on our own first
 and then
start off.
Sorry, if this question is silly. I am new to this axis world.
   
2. I would have a big xml data with complicated schema. So using
 xmlbeans
would work fine means, which one is stable to use xmlbeans AXIS1.4
 or AXIS2.
   
Thanks,
Kiran kumar.
   
   
Davanum Srinivas wrote:

 If you have a complicated schema, you should use xmlbeans. If
 you are
 willing to sacrifice a bit of schema support for better
 performance,
 use ADB. As i mention usually, start from WSDL/Schema. (NOT from
 java/pojo's).

 thanks,
 dims

 On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:

 Hi,

 Please suggest me with the following:

 Which xml java binding framework should i use or which one is
 stable to
 use.
 I have tried AXIOM sample, jibx both do not work.
 Only the samples given in axis2 works.
 if i try out something, they do not work.

 Please help me, to take up a robust framework to implement in
 my project.

 thanks
 kiran kumar.
 --
 View this message in context:

 http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
 Sent from the Axis - User mailing list archive at Nabble.com.



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



   
--
View this message in context:
  
 http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
Sent from the Axis - User mailing list archive at Nabble.com.
   
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Missing complex type

2007-01-29 Thread Anne Thomas Manes

Is that the only type that isn't being generated?

One issue I see with the schema is that you've repeatedly defined a
s:choice with minOccurs=1, yet both of the choices specify
minOccurs=0. I don't believe that's valid.

But I don't see a reason why that one type wouldn't be generated if
all the other types are...

Anne

On 1/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi,

I have the following wsdl:

(See attached file: SSO.wsdl)

Can anyone tell me why or give me reasons why the complex type
RetrieveUserResultsStructure is not being generated in the client stub?

Many Thanks

Ted

Whilst this email has been checked for all known viruses, recipients should 
undertake their own virus checking as Xansa will not accept any liability 
whatsoever.

This email and any files transmitted with it are confidential and protected by 
client privilege.  It is solely for the use of the intended recipient.
Please delete it and notify the sender if you have received it in
error. Unauthorised use is prohibited.

Any opinions expressed in this email are those of the individual and not
necessarily the organisation.
 Xansa, Registered Office: 420 Thames Valley Park Drive,
 Thames Valley Park, Reading, RG6 1PU, UK.
 Registered in England No.1000954.
 t  +44 (0)8702 416181
 w  www.xansa.com

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





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



Re: [AXIS2] Which binding framework should i use for complex xml handling

2007-01-29 Thread Anne Thomas Manes

yes, you can.

On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:


Hi Anne,

Thanks for your expert advice.

Will follow the same, first design a schema then wsdl.

Then generate the ADB binding classes using wsdl2java tool.

I am working on it and now i got one question:

Instead of importing the XSD into the wsdl, i can even write the schema
definition into the xs:schema of wsdl right?

Thanks,
Kiran Kumar.


Anne Thomas Manes wrote:

 I heartily concur with Dims. If you plan to use the same framework on
 both client and server, then you will probably get by very well by
 following the code-first approach. But if you will ever have the need
 to interoperate with other frameworks, you'll do much better adopting
 a Schema-first approach. Also keep in mind that the code-first
 approach should be used only for application integration. It is not an
 appropriate means to achieve SOA.

 SOA is all about reuse. And it involve reuse not just of application
 functionality, but also of data structures. The fundamental unit of
 reuse is the XML types that your applications and services share.

 If you use the code-first approach, then you will generate a different
 set of XML types for every service. If you have two services that work
 with customer data, you will generate two incompatible customer types.
 That is absolutely what you don't want to do. Your organization should
 define a set of common shared types that represent your core
 information structures, and your service interfaces should share these
 structures. You should not generate these structures from code.

 Anne

 On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:
 That's the best practice i recommend from experience. Advice not
 related to whether you use Axis2 or not.

 thanks,
 dims

 On 1/29/07, Sathija Pavuluri [EMAIL PROTECTED] wrote:
As i mention usually, start from WSDL/Schema. (NOT from
 java/pojo's).
 
  Sorry for chipping into this thread with an unrelated question, but
 wanted to know why you say that
  Is that because axis2 has less good features for pojo services?
  I had read some articles early on when I was jumping into this, that
 didnt advocate for either approach.
 
  Thanks,
  Sathija.
 
 
 
   oops forgot the link:
  
  
 http://mail-archives.apache.org/mod_mbox/ws-axis-user/200609.mbox/[EMAIL 
PROTECTED]
  
   -- dims
  
   On 1/29/07, Davanum Srinivas [EMAIL PROTECTED] wrote:
   #1) Yes. Start with Schema first (i use XMLSPY to write xsd's). Then
   follow instructions from Anne here to fill up the template WSDL.
  
   #2) Axis2 w/o a doubt.
  
   thanks,
   dims
  
  
   On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:
   
Thanks Davanum Srinivas for your response.
   
OK, you advise to start from WSDL rather than java/pojo's.
   
I got two questions:
   
1. But, does that mean we have to prepare a WSDL on our own first
 and then
start off.
Sorry, if this question is silly. I am new to this axis world.
   
2. I would have a big xml data with complicated schema. So using
 xmlbeans
would work fine means, which one is stable to use xmlbeans AXIS1.4
 or AXIS2.
   
Thanks,
Kiran kumar.
   
   
Davanum Srinivas wrote:

 If you have a complicated schema, you should use xmlbeans. If
 you are
 willing to sacrifice a bit of schema support for better
 performance,
 use ADB. As i mention usually, start from WSDL/Schema. (NOT from
 java/pojo's).

 thanks,
 dims

 On 1/29/07, mvkirankumar [EMAIL PROTECTED] wrote:

 Hi,

 Please suggest me with the following:

 Which xml java binding framework should i use or which one is
 stable to
 use.
 I have tried AXIOM sample, jibx both do not work.
 Only the samples given in axis2 works.
 if i try out something, they do not work.

 Please help me, to take up a robust framework to implement in
 my project.

 thanks
 kiran kumar.
 --
 View this message in context:

 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8694267
 Sent from the Axis - User mailing list archive at Nabble.com.



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



   
--
View this message in context:
  
 
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8695199
Sent from the Axis - User mailing list archive at Nabble.com.
   
   
   
 

Re: [Fwd: Re: Problems with WSDL2Java upgrading from Axis 1.2 to Axis 1.4]

2007-01-29 Thread Anne Thomas Manes

Okay ... just for starters, your import statement is in error.

You are trying to import a schema definition (PegsTour.xsd) using
wsdl:import. wsdl:import may be used only to import WSDL descriptions,
not schemas. Axis 1.2 was lax and permitted you to do this, but Axis 1.4 is
more strict.

You must add a wsdl:types section to the document, define a schema, and
use xsd:import or xsd:include to import/include the schema. You use
xsd:import to import a schema in a different namespace, and you use
xsd:include to include multiple schema files that define the same
namespace.

Next, the PegsTour.xsd schema references a ton of components that are not
defined in the schema file. My guess is that they are defined in all the
other schema files that you supplied, but you don't xsd:include them into
the schema. Therefore, you can't reference them. You must add an
xsd:include statement for each of the other schema files. I haven't looked
at the other schema files, but if any of them reference components described
in other schema files, you must also add xsd:include statements to those
schemas.

Regards,
Anne


On 1/29/07, Cantrell, Andrew [EMAIL PROTECTED] wrote:




--- Original Message 

*Subject: *

Re: Problems with WSDL2Java upgrading from Axis 1.2 to Axis 1.4

*Date: *

Mon, 29 Jan 2007 07:53:21 -0500

*From: *

Anne Thomas Manes [EMAIL PROTECTED] [EMAIL PROTECTED]

*Reply-To: *

axis-user@ws.apache.org

*To: *

axis-user@ws.apache.org

*References: *

[EMAIL PROTECTED] [EMAIL PROTECTED]



Please post the WSDL.



On 1/29/07, Terry Mueller [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I have tested WSDL2Java with our WSDL using Axis 1.2 without any

 problems. When I upgrade to Axis 1.4 (drop in new jars), the same

 command generates code with compile errors. There are three basic

 compilation problems: (1) in some constructors of simple types there is

 call to super(foo,bar) that doesn't exist (2) the throws clauses

 declaration contains an array and (3) the class in the throws clause

 does not extend java.lang.Exception.





 I was having a play with Lisa test tool from http://www.itko.com/ which

 uses Axis 1.4 so I can't upgrade to Axis 2 yet.





 Any ideas?



 -

 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]







--

Regards,
Terry

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





[Axis2] Service Endpoint related question

2007-01-29 Thread Vedha Vijayan
Hi,

  I have few questions regarding the service end point in a wsdl: (I'm
using Axis2 1.1.1 version)

My initial endpoint for UserService was
http://localhost:8080/Comergent/services/UserService, and things worked
fine. I have Axis2 installed as an embedded webapp. I wanted my service
endpoint to point to
http://localhost:8080/Comergent/ws/matrix/services/UserService instead.
My wsdl is updated to reflect this change. I have a custom wsdl that is
part of the UserService.aar file and the services.xml has the
'useOriginalwsdl' property set. On the browser when i point to
http://localhost:8080/Comergent/ws/matrix/services/UserService?wsdl the
wsdl obtained is different from the custom wsdl. The auto-generated wsdl
has two bindings one for Soap11 and another for Soap12. The Soap11
binding for some reason points to my initial endpoint
( http://localhost:8080/Comergent/services/UserService ), but the Soap12
binding has the newer end point. 

 1. Although the custom wsdl has both bindings pointing to the newer
URL, why does the auto-generated wsdl use different binding for
Soap11? And why doesnt the 'useOriginalwsdl' property though set
to true, not work in my case?
 2. Are there any changes to be made on the server side in-order to
map the updated URL to service archive file? (Other than the
necessary modifications to web.xml to include the
servlet-mapping for updated URL)


The client stub has the following line to set the appropriate Soap
version;


_serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);


Even then, when i run my client with the newer endpoint, I hit the
following problem;

 org.apache.axis2.AxisFault: Service not found operation terminated !!
 [java] at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
 [java] at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)


I have setup SOAPMonitor on the server side and I dont see any request
coming in at all. This leads me to believe that the in pre-dispatch
phase none of the dispatchers are able to locate the operation within
the service.

However, when the client is run with the older endpoint, the server is
still able to honor the request and send back the response. This
behavior leads to another set of questions I have:

 3. What information is used by the dispatchers to verify the existence
of an operation within a service?

 4. I have a scenario, where in the service endpoint is determined at
runtime based on location of the incoming request. Given this scenario,
how does one map the service class to multiple end points. The wsdl
location is generated at runtime and the client then invokes the
operation defined within the service. On the server-side, how do we
handle this in terms of verifying the service location?


Thanks in advance.

vedha




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



Re: [Axis2][rampart] How to enable MTOM in rampart

2007-01-29 Thread Ruchith Fernando

Hi Sebastian,

This feature is missing in Rampart-1.1 configuration. At that point we
did not have the MTOM policy assertions and builders (For Neethi2)
developed to include this support. But now we have this[1] in Axis2
and I believe we can integrate this before the next release.

Thanks,
Ruchith

[1] https://issues.apache.org/jira/browse/AXIS2-1963

On 1/29/07, Sebastian Roschke [EMAIL PROTECTED] wrote:

Hi all,

I try to send the encrypted parts optimized Mime parts. In Rampart 1.0
there was an option optimizeParts that helps to configure MTOM in SOAP
messages.

Is there an equivalent feature in Rampart 1.1? I tried something like
ramp:optimizeParts.../ramp:optimizeParts but it doesn't work for me.
How to configure Rampart 1.1 with policies to send MTOM messages?

Thanks for the help,

Regards,
Sebastian







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

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



Re: [Axis2][rampart] How to enable MTOM in rampart

2007-01-29 Thread Martin Gainty
Assuming you have identified your security policy parameters within your 
wsp:Policy node
   wsp:Policy
sp:Token
/sp:Token
/wsp:Policy
 within services.xml sp:SymmetricBinding 
xmlns:sp=http://schemas.xmlsoap.org/ws/... node
 and also within policy.xmlsp:SymmetricBinding 
xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy; node

HTH,
Martin --
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: Ruchith Fernando [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Monday, January 29, 2007 8:46 PM
Subject: Re: [Axis2][rampart] How to enable MTOM in rampart


 Hi Sebastian,
 
 This feature is missing in Rampart-1.1 configuration. At that point we
 did not have the MTOM policy assertions and builders (For Neethi2)
 developed to include this support. But now we have this[1] in Axis2
 and I believe we can integrate this before the next release.
 
 Thanks,
 Ruchith
 
 [1] https://issues.apache.org/jira/browse/AXIS2-1963
 
 On 1/29/07, Sebastian Roschke [EMAIL PROTECTED] wrote:
 Hi all,

 I try to send the encrypted parts optimized Mime parts. In Rampart 1.0
 there was an option optimizeParts that helps to configure MTOM in SOAP
 messages.

 Is there an equivalent feature in Rampart 1.1? I tried something like
 ramp:optimizeParts.../ramp:optimizeParts but it doesn't work for me.
 How to configure Rampart 1.1 with policies to send MTOM messages?

 Thanks for the help,

 Regards,
 Sebastian




 
 
 -- 
 www.ruchith.org
 www.wso2.org
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: [AXIS2] Using OperationContext in a web services implementation class

2007-01-29 Thread Kent Schmidt
If your service implementation class specified in your *.aar file has a
method setOperationContext, that method will be called automatically
with the Operation Context. I simply do

public void
setOperationContext(org.apache.axis2.context.OperationContext
pOperationContext)

{

org.apache.axis2.context.OperationContext  myOperationContext =
pOperationContext;

}

 

 



From: Vasil Benov [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 29, 2007 1:34 AM
To: axis-user@ws.apache.org
Subject: [AXIS2] Using OperationContext in a web services implementation
class

 

Hi all,

Is it possible to access the OperationContext in a services
implementation class?

Thanks in advance

Regards, Vasil

-- 
Vasil Benov, 
Mobile: +359(0)889/202682 
@-mail: benovv at gmail dot com 
ICQ: 140269988

GPG Fingerprint: 2CDC 5DA0 4C0A 7C06 5259  DE12 ACF3 177C 8906 0908
Public Key URL:
*) http://random.sks.keyserver.penguin.de/ 



[axis2][rampart]rampart1.1 doc link not working

2007-01-29 Thread falom
Hi,
   
  I found that several link in axis2 rampart1.1 doc link is not working, also i 
wonder if the rampart1.1 documentation can be more thourough. I know there is 
very good document for rampart1.0 on w2so site, i think better documentation at 
apache site will get more users involved.
   
  falom


-
抢注雅虎免费邮箱-3.5G容量,20M附件! 

Re: [Axis2] Are abstract types possible with ADB and RPCMessageReceiver?

2007-01-29 Thread Deepal Jayasinghe
Hi Sathija ;

You can use the generated message receivers. Once you have the wsdl and
you have generated code using that then it generates required message
receivers for you. So you do not need to use any other message receivers

Deepal,

Both the server and client use ADB binding.

  

If you are using ADB in server side you do not need to use
RPCMessageReceiver.



What message receiver do I need to use then?

  





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



Re: [AXIS2] Using OperationContext in a web services implementation class

2007-01-29 Thread Deepal Jayasinghe
Hi Kent ;

We changed Axis2 logic in 1.1 release and we are no longer call that
method, if you want to access message context then you need to call
MessageContext.getCurrentContext();

Thanks
Deepal

 If your service implementation class specified in your *.aar file has
 a method setOperationContext, that method will be called automatically
 with the Operation Context. I simply do

 public void
 setOperationContext(org.apache.axis2.context.OperationContext
 pOperationContext)

 {

 org.apache.axis2.context.OperationContext  myOperationContext
 = pOperationContext;

 }

  

  

 




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



[Axis2] Re: Proxy setting when using AXIS2's SAAJ APIs

2007-01-29 Thread sumedha rubasinghe

Hi yogen;
I think this has nothing to do with SAAJ. It is just a matter of making 
you java application (which accesses network resources) to be able to 
communicate via network. i.e. by setting


System.setProperty( https.proxyHost, host);
System.setProperty( https.proxyPort, port);

in your client.And there is another way to set this from command options 
to java command, which brings the same result.


The call method in SOAPConnection has the following signature.
   public SOAPMessage call(SOAPMessage request, Object endpoint) throws 
SOAPException

-
Here the endpoint can be any of java.lang.String,java.net.URL, 
javax.xml.messaging.URLEndpoint.


Thanks
/sumedha



Yadav, Yogendra (IT) wrote:

Hi,
Sun's SAAJ implementation reads proxy settings from system properties.
System.setProperty( https.proxyHost, host);
System.setProperty( https.proxyPort, port);
 
I want to use proxy using SAAJ APIs provided by AXIS2. In AXIS2's 
implementation SOAPConnectionImpl.java the Options object is created 
new. The call() method does not provide an ability to set proxy. 
Anybody knows how to do proxy settings while using SAAJ APIs in AXIS2 ?
 
Appreciate it.

[thanx
-yogen
 
 



NOTICE: If received in error, please destroy and notify sender. Sender 
does not intend to waive confidentiality or privilege. Use of this 
email is prohibited when received in error.





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



Re: [Axis2] Re: Proxy setting when using AXIS2's SAAJ APIs

2007-01-29 Thread Davanum Srinivas

Sumedha,

our commons http sender does *not* pick the System property setting.
So this will not work.

-- dims

On 1/29/07, sumedha rubasinghe [EMAIL PROTECTED] wrote:

Hi yogen;
I think this has nothing to do with SAAJ. It is just a matter of making
you java application (which accesses network resources) to be able to
communicate via network. i.e. by setting

System.setProperty( https.proxyHost, host);
System.setProperty( https.proxyPort, port);

in your client.And there is another way to set this from command options
to java command, which brings the same result.

The call method in SOAPConnection has the following signature.
public SOAPMessage call(SOAPMessage request, Object endpoint) throws
SOAPException
-
Here the endpoint can be any of java.lang.String,java.net.URL,
javax.xml.messaging.URLEndpoint.

Thanks
/sumedha



Yadav, Yogendra (IT) wrote:
 Hi,
 Sun's SAAJ implementation reads proxy settings from system properties.
 System.setProperty( https.proxyHost, host);
 System.setProperty( https.proxyPort, port);

 I want to use proxy using SAAJ APIs provided by AXIS2. In AXIS2's
 implementation SOAPConnectionImpl.java the Options object is created
 new. The call() method does not provide an ability to set proxy.
 Anybody knows how to do proxy settings while using SAAJ APIs in AXIS2 ?

 Appreciate it.
 [thanx
 -yogen


 

 NOTICE: If received in error, please destroy and notify sender. Sender
 does not intend to waive confidentiality or privilege. Use of this
 email is prohibited when received in error.



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



Re: [axis2][rampart]rampart1.1 doc link not working

2007-01-29 Thread Ruchith Fernando

Hi Falom,

Certainly we need some more documentation. Will work on it.
I'll be great if you can lend a hand as well :-)

Thanks,
Ruchith

On 1/30/07, falom [EMAIL PROTECTED] wrote:

Hi,

I found that several link in axis2 rampart1.1 doc link is not working, also
i wonder if the rampart1.1 documentation can be more thourough. I know there
is very good document for rampart1.0 on w2so site, i think better
documentation at apache site will get more users involved.

falom

 
抢注雅虎免费邮箱-3.5G容量,20M附件!





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


Re: [axis2][rampart]rampart1.1 doc link not working

2007-01-29 Thread Ruchith Fernando

Hi falom,

The link [1] from the axis2 modules page [2] is working.
Can you please send the broken places?

Thanks,
Ruchith

[1] http://ws.apache.org/axis2/modules/rampart/1_1/security-module.html
[2] http://ws.apache.org/axis2/modules/

On 1/30/07, falom [EMAIL PROTECTED] wrote:

Hi,

I found that several link in axis2 rampart1.1 doc link is not working, also
i wonder if the rampart1.1 documentation can be more thourough. I know there
is very good document for rampart1.0 on w2so site, i think better
documentation at apache site will get more users involved.

falom

 
抢注雅虎免费邮箱-3.5G容量,20M附件!





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


[AXIS2] client call operations (Sync vs. Async)

2007-01-29 Thread W.Y. Ho
Hi,

I build my web services using Axis2 + XmlBeans (XML Data binding).
I used the Code first approach (Starting from a service source code) + 
Java2WSDL, using Axis2 Codegen Wizard (eclipse plugins)
Everything is working fine.
I'm thinking now to control the client call operations (Sync vs. Async).
Looking at the automatic generated stub class, I'm not sure which operations 
the stub is implementing.
I observed the following calls to the server.

org.apache.axis2.client.OperationClient calls execute(true).

How can I change this into non-blocking with callbacks?

Thanks,
wen

Below is the code snippet:

public TDTradeServicesResultDocument processTrade(MyXmlDocument param0)
throws java.rmi.RemoteException, 
org.tds.eqd.webServices.exception.ProcessTradeFaultException{
try{
org.apache.axis2.client.OperationClient _operationClient = 
_serviceClient.createClient(_operations[0].getName());
_operationClient.getOptions().setAction(urn:processTrade);

_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
// create SOAP envelope with that payload
org.apache.axiom.soap.SOAPEnvelope env = null;
//Style is Doc.
env = toEnvelope(
getFactory(
_operationClient.getOptions().getSoapVersionURI()),
param0,
optimizeContent(new 
javax.xml.namespace.QName(,processTrade)
)
);

// adding SOAP headers
_serviceClient.addHeadersToEnvelope(env);
// create message context with that soap envelope
org.apache.axis2.context.MessageContext _messageContext =
new org.apache.axis2.context.MessageContext() ;
_messageContext.setEnvelope(env);

// add the message contxt to the operation client
_operationClient.addMessageContext(_messageContext);

//execute the operation client
_operationClient.execute(true);

org.apache.axis2.context.MessageContext _returnMessageContext = 
_operationClient.getMessageContext(
org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
org.apache.axiom.soap.SOAPEnvelope _returnEnv = 
_returnMessageContext.getEnvelope();

java.lang.Object object = fromOM(
_returnEnv.getBody().getFirstElement(),
TDTradeServicesResultDocument.class,
getEnvelopeNamespaces(_returnEnv)
);

_messageContext.getTransportOut().getSender().cleanup(_messageContext);

return (TDTradeServicesResultDocument)object;
} catch(org.apache.axis2.AxisFault f){



-
Share your photos with the people who matter at Yahoo! Canada Photos