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

[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

[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

[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

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,

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

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:

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

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)

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

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

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

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,

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

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)

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

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

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

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

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:

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

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

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

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 ?

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

[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

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

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

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

[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:

[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

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

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

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

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

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

[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:

[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

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:

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

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

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

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

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

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

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

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

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

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

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

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

[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

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,

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

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) {

[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.

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

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

[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

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

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

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

[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.