Re: [axis2] WSDL2JAVA with XMLBean binding does not create instance of the derived type

2007-01-03 Thread Bo Xie
Hi Ajith, The Address class only has getter and setter for name, city etc. No getAddress. Do you see this ignoring of xsi:type in creating instance as a bug? Besides using choice option as Ramesh suggested, do we run out of luck here? I am a little hesitate to use choice as in my case, the c

Re: [Axis2] is WSDL 2.0 fully supported in Axis2 1.1

2007-01-03 Thread Bo Xie
Got it. Thanks, Anne. -Bo On 1/3/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote: Axis 2 provides experimental support for WSDL 2.0 through Woden. Note: WSDL 2.0 is not a completed or final specification. You should NOT use WSDL 2.0 in any production application at this time. If you're just e

Re: axis 2 1.1.1 RC1

2007-01-03 Thread Deepal Jayasinghe
Hi all; Any idea abt 1.1.1 release date , we had 1.1.1 RC1 about a week and I hope its time to release 1.1.1 Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Soap via eMail]

2007-01-03 Thread Deepal Jayasinghe
Hi, There are few configuration setting you have missed.The minimum configuration requirement is as configuration needed for Java Mail, your minimum config should be as follows, Sender : --- localhost blue [EMAIL PROTECTED] blue Receiver:

RE: client tutorial help

2007-01-03 Thread Richard G. Reyes
Hi All, Any suggestion on how to catch request xml under https? TIA! Richard > -Original Message- > From: Martin Gainty [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 04, 2007 11:12 AM > To: axis-user@ws.apache.org > Subject: Re: client tutorial help > > the error comes from invali

Re: defining wsdl in service.xml

2007-01-03 Thread Deepal Jayasinghe
Hi Nate; put your wsdl file into META-INF directory in the aar file and then add the following parameter into services.xml; true Thanks Deepal > I have my web service up and running, using the WSDL generated by > Axis. I now would like to use my defined WSDL rather than the > generated one. I

Re: [axis2] WSDL2JAVA with XMLBean binding does not create instance of the derived type

2007-01-03 Thread Ramesh Gurunathan
Hi, What you are trying to achieve is the value inheritance in XML. I think, unfortunately, the web services / XML / SOAP community is paying less attention to this topic. I encountered the same issue with XMLBeans binding. It forced me to change the XML schema. I introduced a new complex type wi

Re: database connectivity

2007-01-03 Thread Deepal Jayasinghe
Hi Danny ; following faq will help you to get the idea of how and where to implement that. http://wso2.org/library/333 http://wso2.org/library/406 Thanks Deepal > Is there a sample on how to setup a JDBC connection from the > server-side code within the AAR file? Thanks. > > Danny > ---

Re: [Soap via eMail]

2007-01-03 Thread Deepal Jayasinghe
Hi Marco; It seems like a bug in the code , so please create a JIRA so that we will not forget to fix that. Thanks Deepal > hi, > > we are trying to use the email-transporter for our webservice. > > we have uncommented the corresponding transportReceiver- and > transportSender-section in axis2.c

RE: client tutorial help

2007-01-03 Thread Richard G. Reyes
Hi Martin,All, Our wsdl did validate correctly with many warnings. We will now proceed to validate the request and response xml. If we found an error in the xml's...how do we fix it? Thanks Richard > -Original Message- > From: Martin Gainty [mailto:[EMAIL PROTECTED] > Sent: Thursday, Jan

Re: client tutorial help

2007-01-03 Thread Martin Gainty
the error comes from invalid XML as reported by SIP XML (xerces) parser did you validate your wsdl ? If you trap your request - does the request properly validate? If you trap your response - does the response properly validate? Heres a validator that may help http://www.w3.org/2001/03/webdata/xs

Re: Error in RampartReceiver.init(String)

2007-01-03 Thread Ruchith Fernando
Hi Martin, Rampart-1.1 for Axis2-1.1 is here : http://www.apache.org/dyn/closer.cgi/ws/rampart/1_1 Thanks, Ruchith On 1/3/07, Martin Gainty <[EMAIL PROTECTED]> wrote: Hi Ruchith I noticed the new axis2-1.1 jars and sample mars dont include rampart Is there a working 2-1.1 mar which implement

[Axis2] How to expose stateless session bean as WS over axis2

2007-01-03 Thread falom
Hi, I have a stateless session bean in geronimo, acting like coordinator over the business layer. Is there a way to expose this as web service unsing axis2, if so how to get the right WSDL for this? falom __ 赶快注册雅虎超大容量免费邮箱? http://cn.m

RE: client tutorial help

2007-01-03 Thread Richard G. Reyes
Hi Anne | All, Yes, what we are using comes from a generated stub. Thanks Richard > -Original Message- > From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 03, 2007 9:25 PM > To: axis-user@ws.apache.org > Subject: Re: client tutorial help > > Have you tried com

Re: [axis2] WSDL2JAVA with XMLBean binding does not create instance of the derived type

2007-01-03 Thread Ajith Ranabahu
Hi, It seems to me that you have to go one level deep. See whether there is a getAddress method in the Address class. XMLBeans generates a lot of classes and things are a bit confusing specially when types and elements have similar names. AFAIK XMLBeans generates a class per type and element. So t

[Soap via eMail]

2007-01-03 Thread Marco Büchler
hi, we are trying to use the email-transporter for our webservice. we have uncommented the corresponding transportReceiver- and transportSender-section in axis2.conf. these two sections are and all these properties are set to an existing unix-b

RE: [Axis2] How to retrieve client's IP address?

2007-01-03 Thread Bell, Douglas
That would give you the address of the machine the request is being processed on. You can go about it a couple ways. The simplest is getting to the HttpServletRequest from the MessageContext and requesting the remote address. e.g. String ip = ((HttpServletRequest) MessageContext.getCurrentCon

Re: [Axis2] How to retrieve client's IP address?

2007-01-03 Thread Martin Gainty
java.net.InetAddress.getLocalHost().getHostAddress(); M- --- 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

Re: Error in stub generation

2007-01-03 Thread Anne Thomas Manes
Please use Axis2 1.1.1. On 1/3/07, Vedha Vijayan <[EMAIL PROTECTED]> wrote: Hi, I'm working on the "pojoguide" sample bundled with Axis2 1.1. I'm trying to expose WeatherService as a POJO service i.e. using WeatherService.java I run java2wsdl and generate the wsdl file. I then use "XMLBeans"

Re: [Axis2] is WSDL 2.0 fully supported in Axis2 1.1

2007-01-03 Thread Anne Thomas Manes
Axis 2 provides experimental support for WSDL 2.0 through Woden. Note: WSDL 2.0 is not a completed or final specification. You should NOT use WSDL 2.0 in any production application at this time. If you're just experimenting, fine. But be prepared for the spec to change and to toss out anything yo

Re: Soap Over JMS using Embedded Axis2 Engine

2007-01-03 Thread Ali Sadik Kumlali
Hi Ted, I'm needing the following information: - Do you successfully send the message? - Does the listener get the message successfully? - Do you call an in-only service? - Is it possible that you call an in-only service with sendReceive()? Regards, Ali Sadik Kumlali - Original Message

Re: large attachments in dime format

2007-01-03 Thread Martin Gainty
//create the service Service service = new Service(); //create the call Call call = (Call) service.createCall(); //set ATTACHMENT_ENCAPSULATION_FORMAT to DIME call.setProperty(call.ATTACHMENT_ENCAPSULATION_FORMAT, call.ATTACHMENT_ENCAPSULATION_FORMAT

RE: Soap Over JMS using Embedded Axis2 Engine

2007-01-03 Thread Ted Jones
Thanks again Ali. After applying the changes you recommended, I am still getting the same "org.apache.axis2.AxisFault: Incoming message input stream is null" exception. Stepping through debug, the JMSSender is getting a null reply back from the Message reply = consumer.receive(timeout) call and

[Axis2] is WSDL 2.0 fully supported in Axis2 1.1

2007-01-03 Thread Bo Xie
Hi everyone. From the Axis2 home page, it lists WSDL 1.1 as supported version. But there are numerous places WSDL 2.0 support is mentioned including WSDL2JAVA. Can anyone clarify if WSDL 2.0 is supported in Axis2 1.1? If so, to what level? I am looking at using the extension and include features

[Axis2] How to retrieve client's IP address?

2007-01-03 Thread Sathija Pavuluri
Hello, When a web service receives a client call, I'd like to extract the IP address of the client from where the call was requested. How is this possible using Axis2? Thanks. Sathija. - To unsubscribe, e-mail: [EMAIL PROTECTE

Error in stub generation

2007-01-03 Thread Vedha Vijayan
Hi, I'm working on the "pojoguide" sample bundled with Axis2 1.1. I'm trying to expose WeatherService as a POJO service i.e. using WeatherService.java I run java2wsdl and generate the wsdl file. I then use "XMLBeans" as databinding option for client code generation. When I try to compile the g

RE: Error on invoking service with axis 2 1.1

2007-01-03 Thread Harish Hirasave
Hi Davanum, I have logged a Jira Bug AXIS2-1933 for this. Please let me know if I should wait now until the issue is fixed or is there a workaround so that I proceed with my conversion of webservices to axis2. Thanks Harish -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTE

Re: Soap Over JMS using Embedded Axis2 Engine

2007-01-03 Thread Ali Sadik Kumlali
Hi Ted, It seems that you have problems with MEP (message exchange pattern). According to the "Writing Web Services Using Axis2's Primary APIs" tutorial[1], "every operation must map to a corresponding MessageReceiver class.". But in JMS tutorial[2], services.xml doesn't map a particular operat

Re: What is use of wsdl import element when we can not see imported wsdl elements?

2007-01-03 Thread Anne Thomas Manes
Can you explain further what you mean when you say you cannot "see" any imported services? Note: you don't use to import a definition. You use to import WSDL definitions that your new WSDL needs to use, e.g., , , , and . Nothing references a , so it doesn't make sense to import it. Anne On 1

Re: Problem accessing response in client code

2007-01-03 Thread Anne Thomas Manes
Your response message element () is not namespace qualified. For better interoperability, I recommend adding elementFormDefault="qualified" to your schema definition (in which case the child elements of must also be namespace qualified.) Anne On 1/3/07, Heh, Jonathan <[EMAIL PROTECTED]> wrote:

Re: [axis2] WSDL2JAVA with XMLBean binding does not create instance of the derived type

2007-01-03 Thread Bo Xie
Thanks Ajith. Could you be more specific on how to figure out the right type of the instance? Here is the code snippet and the output on the service side. The getAddressArray indeed returns Address[] which is good. But the instanceof always returns Address even for USAddress instance. The interest

Re: axis 2 1.1.1 RC1

2007-01-03 Thread Mary Thompson
Rishi krish wrote: Hi thanks for all the response. Can you pls tell me how to set the soap12 while using the serviceclient api? I remember seeing this piece of code somewhere and not sure this is the way to set soap12 for servicelcient: options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOP

large attachments in dime format

2007-01-03 Thread Peter
hi list, i'm developing a webservice which should be able to handle multiple soap-attatchment within one request with a maximum size of 3MB per attachment. sending and receiving attachments with a size smaller then 20kB in dime-format is no problem. but when i try to send attachments with a s

Re: [axis2] WSDL2JAVA with XMLBean binding does not create instance of the derived type

2007-01-03 Thread Ajith Ranabahu
Hi, Since the xsi:type attribute is present and points to the USAddress, the generated object should be of type USAddress. Perhaps the problem is the way you check the instanceof. I mean XMLBeans should have generated a getAddresses method to updateAddress ? (It's a little bit weird how XMLBeans

Re: axis 2 1.1.1 RC1

2007-01-03 Thread Rishi krish
Hi thanks for all the response. Can you pls tell me how to set the soap12 while using the serviceclient api? I remember seeing this piece of code somewhere and not sure this is the way to set soap12 for servicelcient: options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); servic

Re: [axis2] WSDL2JAVA with XMLBean binding does not create instance of the derived type

2007-01-03 Thread Bo Xie
Thanks Ajith for the quick response. I have tried to use the instanceof to test if the instance is USAddress, but the test returns false. Without that, the type cast is not safe as the Address list can have items of either Address or USAddress. My question here is should the java instance crea

Re: Prefix [xsi] used without binding it to a namespace

2007-01-03 Thread Davanum Srinivas
After populating the xmlbeans objects, could you just call serialize(?) to print it out and see if the xml looks correct? thanks, dims On 1/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Dims, Thanks for the response! I tried ADB, and now I have a legal soap request - according to the thir

RE: Prefix [xsi] used without binding it to a namespace

2007-01-03 Thread Nick.Southwell
Dims, Thanks for the response! I tried ADB, and now I have a legal soap request - according to the third party server anyway. I'd still like to use xmlbeans if I can though. Is there a way to get xmlbeans to work for this element? Xmlbeans is trying to bind the element to a type of java.lang.Cal

RE: Soap Over JMS using Embedded Axis2 Engine

2007-01-03 Thread Ted Jones
(email with exception included, sorry about that) Thanks very much Ali. That seems to be the issue with the timeout. I started the JMSListener from my test client and it is picking up the message now. I am now getting the following exception: org.apache.axis2.AxisFault: Incoming message inp

RE: Soap Over JMS using Embedded Axis2 Engine

2007-01-03 Thread Ted Jones
Thanks very much Ali. That seems to be the issue with the timeout. I started the JMSListener from my test client and it is picking up the message now. I am now getting the following exception: From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED] Sent: Tuesday, J

database connectivity

2007-01-03 Thread Danny Lin
Is there a sample on how to setup a JDBC connection from the server-side code within the AAR file? Thanks. Danny

Problem with Endpoint

2007-01-03 Thread Daniel . Kuschow
I have following Problem. My Webservice is running on Machine A by using generated wsdl file. But the problem is the endpoint url. Because of security matters clients should not access webservice directly. Clients have to call another machine B (proxy) to use this webservice. And that is my probl

Problem accessing response in client code

2007-01-03 Thread Heh, Jonathan
Hello, I am using Axis 1.4 to develop a WSDL first web service. In the attached WSDL I am providing a service that takes an xml file as an attachment. This service is accepting the file from the client fine, but when I attempt to access the values from the response, I am getting null values.

How can I return complex data structure and attachment to web service client?

2007-01-03 Thread Yong Yang
Hi, it seems I can return complex data structure and attachment together to web service client only using AXIOM, for example, public class Service1 { public OMElement method1() { OMElement result = NULL; //create corresponded node for each v

Re: Error in RampartReceiver.init(String)

2007-01-03 Thread Martin Gainty
Hi Ruchith I noticed the new axis2-1.1 jars and sample mars dont include rampart Is there a working 2-1.1 mar which implements rampart? Thanks! Martin -- --- This e-mail message (including attachments, if any) is intended fo

Re: SWA multipart/related boundary

2007-01-03 Thread Stefan Kok
Hi Thilina I have found this article on the IBM website : http://www-128.ibm.com/developerworks/webservices/library/ws-soapatt/?open&l=930,t=grws#figure1 They also end it off with the MIME boundary the stated in the header. Regards Stefan. On Wed, 2007-01-03 at 15:23 +0200, Stefan Kok wrote:

defining wsdl in service.xml

2007-01-03 Thread Nate - Hotmail
I have my web service up and running, using the WSDL generated by Axis. I now would like to use my defined WSDL rather than the generated one. I have been quite unsuccessful in finding examples/instructions on defining my WSDL within the service.xml file. Is there somewhere I can find this in

Re: soap header in axis2

2007-01-03 Thread Paul Fremantle
Amit By the way, it turns out you can force the WS-A headers to have mustUnderstand='true': Options.setProperty(AddressingConstants.ADD_MUST_UNDERSTAND_TO_ADDRESSING_HEADERS, Boolean.TRUE); Paul On 1/2/07, Paul Fremantle <[EMAIL PROTECTED]> wrote: Amit .NET cannot REQUIRE these headers. They

Re: WSDL output parameter named "return"

2007-01-03 Thread DBDavide
Davanum Srinivas wrote: > > Which version of Axis/Axis2? Can u please log a bug report with complete > wsdl? > Thank you for the prompt reply. I'm using the latest Axis2 1.1 Another team is generating ws clients with the wstool boundled with latest JBossWS 1.0.4GA I'll open a bug report on J

What is use of wsdl import element when we can not see imported wsdl elements?

2007-01-03 Thread legolas wood
Hi Thank you for reading my post we are in a situation that we are creating some bpel process using several web services. in some case one wsdl imports other wsdl, but in reality we can not see any service of imported wsdl when we try the paret wsdl. can some one explains about this? thanks -

Re: client tutorial help

2007-01-03 Thread Anne Thomas Manes
Have you tried compiling a stub using wsdl2java? Anne On 1/3/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: Hi All, I hope somebody here can help us to access this web services… http://www.sipfoundry.org/pub/sipXconfig/ws-api-3.2/ -- PhoneService – managePhone method. We are tryin

Re: [Axis2] WSDL2J or Woden?

2007-01-03 Thread Ajith Ranabahu
Hi, Yep, I guess the woden jars are only used in codegen Ajith On 1/3/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote: Woden is for wsdl 2.0 support.. WSDL4J is for wsdl 1.x support. AFAIK kernel (AxisService) & code generation requires them.. Thanks, Thilina On 1/3/07, Ramesh Gurunathan <[E

Re: SWA multipart/related boundary

2007-01-03 Thread Stefan Kok
Hi Thilina Yes I agree the RFC's is very vague on the subject. Wiki is somewhat better. I have found one other reference to axis on the subject [1] I think its axis 1. [1] http://article.gmane.org/gmane.text.xml.axis.devel/38906/match= My problem is that I am coding for the MM7 Spec. It does no

Re: [axis2] WSDL2JAVA with XMLBean binding does not create instance of the derived type

2007-01-03 Thread Ajith Ranabahu
Hi, The reason here is that you have set the type of the addresses element to be 'Address' rather than USAddress (the code generator would put the reference for the Address rather than the USAddress). However since the xsi:type attribute is present the deserializer should create the right object a

Re: services.xml

2007-01-03 Thread Vasil Benov
Hi Deepal, The schama does not define a attribute of the element from the file, although the documentation ( http://ws.apache.org/axis2/1_1/axis2config.html#Service_Configuration) mentions the attribute as optional Best regards, Vasil On 1/2/07, Vasil Benov <[EMAIL PROTECTED]> wrote: Hi

Re: Error on invoking service with axis 2 1.1

2007-01-03 Thread Davanum Srinivas
Please log a bug in JIRA so that we can track it. thanks, dims On 1/2/07, Harish Hirasave <[EMAIL PROTECTED]> wrote: Hi, I am getting the following error while invoking a service from the client. org.apache.axis2.AxisFault: Service not found operation terminated !! at org.apache.axis

Re: Prefix [xsi] used without binding it to a namespace

2007-01-03 Thread Davanum Srinivas
Please check if it works when you use ADB data binding. thanks, dims On 1/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, I'm still very much an axis2 newbie, so sorry if this is a dumb question: I'm getting the above error returned from a third party server. This makes sense to me be

Re: SWA multipart/related boundary

2007-01-03 Thread Thilina Gunarathne
Stefan, It's the MIME boundary you are talking about. It is required according to the MIME specs.. MIME packaging works based on this boundary.. It is used to separate out the MIME parts.. AFAIK It is not possible to change that.. You can find the MIME RFC's here[1]... Unfortunately they are not

Re: WSDL output parameter named "return"

2007-01-03 Thread Davanum Srinivas
Which version of Axis/Axis2? Can u please log a bug report with complete wsdl? thanks, dims On 1/3/07, DBDavide <[EMAIL PROTECTED]> wrote: Hi, I found this clarifying post on the subject: http://www.slimmit.com/go.asp?5R4 Now I'm wondering why you cannot name the parameter avoiding Java rese

Re: SWA multipart/related boundary

2007-01-03 Thread Stefan Kok
I have looked at the mm7 spec. All their multipart/related messages end with the boundary in the header. I still am not sure if this is applies only to mm7 or not. Would it be possible to change this behavior ? Or is it by design ? Regards Stefan. On Wed, 2007-01-03 at 08:25 +0200, Stefan Kok

Re: refering to tokens in rampart sec header

2007-01-03 Thread Ruchith Fernando
Hi, On 12/20/06, George Stanchev <[EMAIL PROTECTED]> wrote: Hi, I need to create a securty token (saml, username) and refer to it from the message body via wsse:SecurtyTokenReference. I am thinking that this is impossible using rampart since at the time when the payload is created the token is

WSDL output parameter named "return"

2007-01-03 Thread DBDavide
Hi, I found this clarifying post on the subject: http://www.slimmit.com/go.asp?5R4 Now I'm wondering why you cannot name the parameter avoiding Java reserved word? (e.g. just like "_return"). We are comsuming Axis generated web services with JBossWS and for this WSDL snippet:

Re: Error in RampartReceiver.init(String)

2007-01-03 Thread Ruchith Fernando
Hi, Are you trying this with Axis2-1.1 jars? Thanks, Ruchith On 12/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote: Good Afternoon All- downloading the latest and greatest Axis 2 1.1 mars I am getting a consistent exception with .\modules\META-INF\module.xml This module provides the WS-

Re: [Axis2][Rampart] What are the differences between X509KeyIdentifier and SKIKeyIdentifier?

2007-01-03 Thread Ali Sadik Kumlali
Excellent explanations as always! I love this dream :) Thank you Ruchith. Regards, Ali Sadik Kumlali - Original Message From: Ruchith Fernando <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Sent: Wednesday, January 3, 2007 12:16:11 PM Subject: Re: [Axis2][Rampart] What are the differen

RE : AXIS2 - WSDL2Java - ParameterOrder

2007-01-03 Thread Laurent CHARTIER
Please visit http://issues.apache.org/jira/browse/AXIS2-1930 Thank you. Laurent CHARTIER Sopra group * pour le compte de AGORA -Message d'origine- De : Anne Thomas Manes [mailto:[EMAIL PROTECTED] Envoyé : jeudi 21 décembre 2006 14:30 À : axis-user@ws.apache.org Objet : Re: AXIS2 - WSDL2

RE: How can I call AXIS specifying username and password?

2007-01-03 Thread celia05es
As I am new to AXIS there are a lot of things I don't master... so, would it be possible to have a snippet? Let's say I have: App1Server.java that contains viewP1(String p1). If the user has the role of ADMIN the viewP1 will return the value of this parameter. If the user has the role of OPER,

Re: [Axis2][Rampart] What are the differences between X509KeyIdentifier and SKIKeyIdentifier?

2007-01-03 Thread Ruchith Fernando
Hi Paul, On 1/3/07, Paul Fremantle <[EMAIL PROTECTED]> wrote: Ruchith From your description above, it seems like in the case of X509KeyIdentifier and DirectReference the actual cert is included in the message and in the case of SKIKeyIdentifier, IssuerSerial and ThumbPrint, the cert needs to be

Re: [Axis2][Rampart] What are the differences between X509KeyIdentifier and SKIKeyIdentifier?

2007-01-03 Thread Paul Fremantle
Ruchith From your description above, it seems like in the case of X509KeyIdentifier and DirectReference the actual cert is included in the message and in the case of SKIKeyIdentifier, IssuerSerial and ThumbPrint, the cert needs to be in the server's keystore or LDAP. I think I can see that SKI

RE: How can I call AXIS specifying username and password?

2007-01-03 Thread celia05es
I am quite new to AXIS so I must admit that what you are saying sounds a little complicated. I will try to look at the example (I suppose the fact it uses Eclipse is not that important). Thanks dbell wrote: > > I've done this by tying Acegi in, using a > HttpSessionContextIntegrationFilter wil