RE: how to get soap header from stub in axis2

2006-12-01 Thread Brennan Spies
No, there's nothing sacred about generated code.ideally you're only supposed to implement the Skeleton class, but if you need to do things with the SOAP message itself, you'll have to do it in the Stub. _ From: hoy hoy [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 5:04 PM

invoking service and passing array arg

2006-12-01 Thread Christopher Jon Jursa
Hello, I am using Apache Axis with Java 1.5. I want to invoke a web service and pass an array of Strings to it through one variable. I have my sample code below my signature. However, what XMLType do I use with the addParameter function? I have this marked as ??? in my code below. My array name

[Axis2] Question: Axis2 Quick Start Guide, the 5 approaches for creating web services (POJO, AXIOM, ADB, XMLBeans, JiBX)

2006-12-01 Thread S. Sharif
Hi, I am new to Axis/Axis2. I stumbled into Axis2 earlier this week, while trying to find something that would make developing web services in Java less difficult I have started looking at Axis2 during the last couple of days, downloaded it, installed it, ran it, and read through some docs. I a

error: SimpleDeserializer encountered a child element

2006-12-01 Thread Dan Tenenbaum
Hi, I know this is a common error but there doesn't seem to be a common solution to the problem. I hope someone can help me with this. I have simple WSDL (see below) that was written by hand and then I used WSDL2Java (axis 1) to generate server and client stubs. I wrote client and server code

Re: how to get soap header from stub in axis2

2006-12-01 Thread hoy hoy
Yes I saw that in the generated Stub. But is there a way to extract the SOAP header without modifying the generated stub? My understanding was the stubs are not supposed to be modified? I was hoping to extract the header by using the generated stub methods. I suppose this will only be exposed

RE: how to get soap header from stub in axis2

2006-12-01 Thread Brennan Spies
Assuming you are talking about the return envelope (from the service), you should see something like org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient .getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALU E);

RE: How to configure axis2-1.1 to support JAXB-RI

2006-12-01 Thread Brennan Spies
Jim, The official implementation that will be supported by Axis 2 is Apache's own JaxMe. JaxMe is not "1.0" yet (0.5.2-of course, version numbers are not always an indicator of quality ;-), so I imagine that Axis 2 support will follow an official stable release.but this question would be best a

Re: BouncyCastle and axis2

2006-12-01 Thread Martin Gainty
Hi Rishi/Dims what do you suggest to replace BC provider? M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have rece

Re: BouncyCastle and axis2

2006-12-01 Thread Davanum Srinivas
You don't need to use BC. -- dims On 12/1/06, Rishi krish <[EMAIL PROTECTED]> wrote: Hi Again this a newbe question: The BouncyCastle jar does not come with normal axis distribution and I guess we have to put a reference to that in the java.security file for Encryption/Signature to work with ax

Re: how to get soap header from stub in axis2

2006-12-01 Thread hoy hoy
I know how to add headers, via: stub._getServiceClient().addStringHeader(...) however, after the call is made; stub.MyMethodToInvoke(...) I want to view the soap headers that are returned. Using ethereal (network sniffer) I can see the headers, but they are not exposed on the stub class. Ther

BouncyCastle and axis2

2006-12-01 Thread Rishi krish
Hi Again this a newbe question: The BouncyCastle jar does not come with normal axis distribution and I guess we have to put a reference to that in the java.security file for Encryption/Signature to work with axis2 and have that jar file in the lib/ext folder of the jre.. Q1>Is the use of BouncyCa

Re: Axis 14 vs axis 1.2.1 arrays

2006-12-01 Thread Ravi Krishnamurthy
Thanks Brier. I will try it out. Regards, Ravi Frederick N. Brier wrote: I saw wrapArrays attribute/parameter that can be passed to either the Ant task or the WSDL2Java utility. I would guess that it would cause Axis 1.4 to generate the same stubs as the 1.2.1. Fred Ravi Krishnamurthy wro

Re: Axis 14 vs axis 1.2.1 arrays

2006-12-01 Thread Frederick N. Brier
I saw wrapArrays attribute/parameter that can be passed to either the Ant task or the WSDL2Java utility. I would guess that it would cause Axis 1.4 to generate the same stubs as the 1.2.1. Fred Ravi Krishnamurthy wrote: Hello: I was looking at the stubs generated for Axis 1.2.1 and Axis 1.4

[Axis2 1.1] using java2wsdl with interfaces

2006-12-01 Thread Steve Terrell
I have several interface classes I am using to generate my WSDL. The element names that come out are meaningless (param0, param1, etc...) I expect that from an interface, though. However, is there a way I can tell java2wsdl which class to use to derive the 'real' parameter names? I believe this was

Re: [Axis2 1.1.1] accessing context within service skeleton

2006-12-01 Thread David Illsley
Hi Nirmit, There was a threading problem with that model so it was removed and replaced with access to a ThreadLocal MessageContext from which you can access the OperationContext. The code you need is: org.apache.axis2.context.MessageContext.getCurrentMessageContext().getOperationContext() David

out of memory issues. Can MTOM help ?

2006-12-01 Thread Marcel Casado
Hi, I have a service that extracts data from a sql table and builds objects from the results and then sends them back to the client. I use ADB but I'm running out of memory for large query results. I'm running the service onTomcat and I setup setenv JAVA_OPTS "-Xmx1024m -Xms1024m" .What I c

Axis 14 vs axis 1.2.1 arrays

2006-12-01 Thread Ravi Krishnamurthy
Hello: I was looking at the stubs generated for Axis 1.2.1 and Axis 1.4 that contains arrays. The complex type mappings is different as below: // in 1.4 qName = new javax.xml.namespace.QName("urn:com.virsa.cc.xsys.webservices.dto", "ArrayOfCriticalRoleDTO");

Re: Generate WSDL for dynamic types

2006-12-01 Thread Elli
Thanks Sanka. I want to avoid hand coding the WSDL, because it depends on parameters configurable by the user at deployment time. It is actually a goal that the user will not have to hand code a WSDL. I am thinking of getting into the configuration objects and changing the operations configurati

Re: Generate WSDL for dynamic types

2006-12-01 Thread Elli
Thanks Sanka. I want to avoid hand coding the WSDL, because it depends on parameters configurable by the user at deployment. It is actually a goal that the user will not have to hand code a WSDL. I am thinking of getting into the configuration objects and changing the operations configuration of

Re: [Axis2 1.1.1] accessing context within service skeleton

2006-12-01 Thread robert lazarski
If your goal is to get a param from services.xml, at least one way is via AxisService. One way these days to get that on startup as you were doing before is to implement the ServiceLifeCycle interface. See the spring tutorial for an example: http://ws.apache.org/axis2/1_1/spring.html#261 HTH, Ro

[Axis2 1.1.1] accessing context within service skeleton

2006-12-01 Thread Nirmit Desai
Hi, I recently switched to the 1.1.1 latest nighty. In my service implementation, I used to capture the operationContext by implementing the method: public void setOperationContext(OperationContext oCtx) { } This was supposedly called before any of the service operation was being called and it

RE: [AXIS 2] Big Bugs and new releases

2006-12-01 Thread Doolittle, Todd
Anne, Sorry that was just my error. I cannot release the real WSDL I am having a problem with due to business confidentiality concerns. So I tried to whip one up by hand that was similar to the one I was having problems with. The one I'm having problems with didn't re-use the same entity name

RE: [axis2] Maximum SOAP Body content length

2006-12-01 Thread James Armstrong
Sorry - figured it out. -Original Message- From: James Armstrong [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 9:56 AM To: axis-user@ws.apache.org Subject: RE: [axis2] Maximum SOAP Body content length How do I unsubscribe? -Original Message- From: zolv [mailto:[EMAIL

RE: [axis2] Maximum SOAP Body content length

2006-12-01 Thread James Armstrong
How do I unsubscribe? -Original Message- From: zolv [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 8:41 AM To: axis-user@ws.apache.org Subject: [axis2] Maximum SOAP Body content length Hi I have similar problemlike one time ago. When I generate output by create some big OM str

Re: [AXIS 2] Big Bugs and new releases

2006-12-01 Thread Anne Thomas Manes
Todd, I don't think this is a bug in Axis2. Your schema is not valid. Your error is not a function of anonymous simple types. The error is that you are defining the "firstName" and "lastName" elements more than once in the same namespace. (first within the "Person" complexType, and second within

org.w3c.dom.DOMException : WRONG_DOCUMENT_ERR

2006-12-01 Thread Mukundan Desikan
Hi, I am getting this error while using Apache Axis 1.3 with JRE 5.0 .Any pointers to this error would be appreciated. Exception calling web service : org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR : A node is used in a different document than the one that created it. Thanks Mukundan. gifX

Need Help Deserializing Custom Classes

2006-12-01 Thread Davis, Jonathan
Hello, having trouble getting the server to deserialize a custom class: this error message is returned: faultString: org.xml.sax.SAXException: Deserializing parameter 'arg0': could not find deserializer for type AuthenticateUserRequest The client can deserialize it (after I added the lines to r

Need Help Deserializing Custom Classes

2006-12-01 Thread Davis, Jonathan
Hello, having trouble getting the server to deserialize a custom class: this error message is returned: faultString: org.xml.sax.SAXException: Deserializing parameter 'arg0': could not find deserializer for type AuthenticateUserRequest The client can deserialize it (after I added the lines to re

Re: [Axis2] Strange !!! WebService works on one pc but not on the other

2006-12-01 Thread Ruchith Fernando
Hmm ... well .. I'm not sure whether removing timestamp is a good idea. This is because we usually ensure the freshness of a message with the timestamp to detect replaying of the messages. When the messages are signed it is very important that the timestamp is also signed. This way we ensure that

Using an Array of Beans

2006-12-01 Thread Hee Tatt Ooi
Hi ! can someone offer me advice on sending an Array of Beans using Axis 2 ? Here's how i went about it: i made an interface : public interface TheService (){ MyBean[] getBeans(); } and then generated the WSDL using Axis2 Code Generator. From the WSDL i generated the stubs and skeletons

[axis2] Maximum SOAP Body content length

2006-12-01 Thread zolv
Hi I have similar problemlike one time ago. When I generate output by create some big OM structure in service method - and return it, I got an error by Axis2 engine and it looks like SOAP Body is too big (when I create smaller OM structure it works). So I have question: is there some limitation

How to enable 2D Array Encoding on axis2 ?

2006-12-01 Thread Alessandro Marini
Hi! I need to make a service that send and receive 2D Array parameters type (for example String[][] or byte[][]). I Know that it's possible on axis1 setting the following tag on globalConfiguration: There's no parameter of similar type on axis2.xml (global configurator)... Is there any confi

Re: [Axis2] Strange !!! WebService works on one pc but not on the other

2006-12-01 Thread Subash Devkota
Ruchith Thank you for the reply. I was about to write about it today and I got your email. I too discovered it today and now I have removed the Timestamp part from the configuration. It works fine now. It's one solution could be synchronizing time with Network Time Protocal in client and serve

Re: [Axis2] Issues using PasswordDigest with Rampart

2006-12-01 Thread Ruchith Fernando
Hi Sathija, As it is explained in the first section of [1] when you use PasswordDigest mechanism you will have to *supply* the actual password for WSS4J to compute the digest and then compare with the incoming digest value. Therefore in this case the password will not be available in the callback

Re: [Axis2] Rampart not available on Axis modules page

2006-12-01 Thread Ruchith Fernando
Hi Sathija, We are yet to release Rampart-1.1 for Axis2-1.1. The page will be updated when the release is done - most probably over the weekend. Thanks, Ruchith On 11/29/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote: Hello, Why is Rampart 1.1 (or whatever is the compatible version for Axis2

Re: [Axis2] Strange !!! WebService works on one pc but not on the other

2006-12-01 Thread Ruchith Fernando
Hi Subash, Seems like the clocks of the two machines are not in sync. Please check the clocks of both machines. Thanks, Ruchith On 11/29/06, Subash Devkota <[EMAIL PROTECTED]> wrote: Hi all I am using Axis2-1.0 with Rampart module for security. I am facing strange type of problem. I have a w

Extra 'valid' element in the WSDL for all complexTypes

2006-12-01 Thread Davis, Jonathan
I am seeking information as to what is cuasing an additional 'valid' element to appear in the schema section of my WSDL - it is the one generated automatically by axis by clicking on the (WSDL) link of the deployed web service. The LogOffRequest is a custom class with it's own class file, (gener

Re: [AXIS 2] Big Bugs and new releases

2006-12-01 Thread Thilina Gunarathne
Todd, I did a quick check on your WSDL using Eclipse WSDL validator and it showed couple of errors.. Please do check it once more... Yes... We are hoping to release more often... ~Thilina On 11/30/06, Brennan Spies <[EMAIL PROTECTED]> wrote: Todd, What databinding option are you using?

Re: Calling blocking/non-blocking services from Ruby, Perl, and Python

2006-12-01 Thread Thilina Gunarathne
Please try sending a mail to the Axis2/c list... They'll help you out to find the details.. ~Thilina On 12/1/06, Franz Fehringer <[EMAIL PROTECTED]> wrote: I cannot find any information about Perl/Python Ruby on [1]http://ws.apache.org/axis2/c/ ? Greetings Franz Sanka Samaranayke schri

Re: Error in generated WSDL file - "wsaw" namespace

2006-12-01 Thread Stefan Lecho
The bug has been logged: https://issues.apache.org/jira/browse/AXIS2-1804. - Original Message From: Davanum Srinivas <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Sent: Friday, December 1, 2006 2:16:27 PM Subject: Re: Error in generated WSDL file - "wsaw" namespace Could you please log

Re: Error in generated WSDL file - "wsaw" namespace

2006-12-01 Thread Davanum Srinivas
Could you please log a bug and upload the generated wsdl? thanks, dims On 12/1/06, Stefan Lecho <[EMAIL PROTECTED]> wrote: We have recently upgraded from Axis2 v1.0 to Axis2 v1.1. When using Axis2 v1.1, the generated WSDL file contains no defintion for the "wsaw" namespace in the element. How

Error in generated WSDL file - "wsaw" namespace

2006-12-01 Thread Stefan Lecho
We have recently upgraded from Axis2 v1.0 to Axis2 v1.1. When using Axis2 v1.1, the generated WSDL file contains no defintion for the "wsaw" namespace in the element. However, this definition is contained in the element. The generated WSDL file contains : Adding the defintion for the "wsaw"

RE: Accessing spring context inside axis2 handlers and CallbackHandler

2006-12-01 Thread Pader, Erwin
to access spring context in any part of the application: add this in web.xml: org.springframework.web.context.ContextLoaderListener contextConfigLocation /WEB-INF/spring-jms.xml add a singleton implementation of ServletContextAware in spring-jms

Problem with Response of Soap for an Array

2006-12-01 Thread Robert K.
Hello, I am a Student at Dresden University Germany and have a problem with SOAP Response for an Array. Every ArrayElement get a own new namespace (ns1:item, ns2:item, ns3:item.). How can I avoid this? Is there a "simple" possibility. I use Java for develop my Webservice. Thanks for He

Re: Accessing spring context inside axis2 handlers and CallbackHandler

2006-12-01 Thread robert lazarski
Then anywhere in application (including axis2 handlers and CallbackHandler) I can call MyContextLoaderListener.getWebApplicationContext() and the spring beans can be accessed. Is this so bad solution? Any better ideas? That's pretty much the idea and what most people end up doing. My only su

Re: Rampart problem with encryption

2006-12-01 Thread Philipp Perner
Hi marcel, I'm just working on this. I have a new post called "Encrypting Message Failure" from 11/30/06 where Mary Thompson perhaps provides some help. You can participate posting there... It seems that rampart module is not applicable at runtime for the client. BTW: I am using rampart1.1-RC

Re: Encrypting Message Failure

2006-12-01 Thread Philipp Perner
I think you are right. The problem is, that my client doesn't uses/find? the rampart module engaged in axis2.xml. But the file structure of the client's builds is similar to the samples of rampart. Do you know, how the file structure has to be, that the my client's uses the rampart module and

AW: AW: AW: AW: AW: AW: AW: [Axis2] Trouble with WS routing through proxy server

2006-12-01 Thread Peter Neu
Hi, I tried that. Still does not work. I send you the three files directly because file attachment probably is not allowed in this list. Maybe we overlooked something. Main class is BinaryClient, stub is called BinarytestStub. Required libs can be found in the screenshot you probably have them

Fwd: [AXIS2] False namespace2package mapping in wsdl2java

2006-12-01 Thread Ulf Heyder
Hello, I still can't get wsdl2java to follow my -ns2p option -ns2p bar=foo.bar.service.types,foo=foo.bar.service.types.foo All java classes created from the xsd types in namespace "bar" are written to java package "de.foo_bar.www.bar" instead of "foo.bar.service.types". Of course I can more o

Re: Calling blocking/non-blocking services from Ruby, Perl, and Python

2006-12-01 Thread Franz Fehringer
I cannot find any information about Perl/Python Ruby on [1]http://ws.apache.org/axis2/c/ ? Greetings Franz Sanka Samaranayke schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thilina Gunarathne wrote: There are some work happening in the Axis2/C[1] side regarding these(Ruby, Perl

Re: AW: AW: AW: AW: AW: AW: [Axis2] Trouble with WS routing through proxy server

2006-12-01 Thread Michele Mazzucco
Hi Pete, the call this("http://192.168.200.194:8080/axis2/services/binarytest";); resolves to //To populate AxisService populateAxisService(); populateFaults(); _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); configurationContext = _serviceClient.getSer

Re: How to configure axis2-1.1 to support JAXB-RI

2006-12-01 Thread Davanum Srinivas
Jim, If you pull the 1.1 branch of Axis2 and build it yourself, you can use the JAXB-RI with minimal effort, Just have to run WSDL2Java with "-d jaxbri". thanks, dims On 11/30/06, jim ma <[EMAIL PROTECTED]> wrote: Great thanks, Brennan. This feature will be supported in the next release ? Ji