Re: [axis2 1.1.1]original wsdl soap:address altered
Sanjiva, that's a good point, I did not think of that. One problem with this is that it replaces the hostname with the *current* IP address of the deployment host. Having DHCP deployment hosts creates problems. Can WSDL2Java replace the port info with the DNS names instead of IP? -Nirmit Sanjiva Weerawarana <[EMAIL PROTECTED] To ce.lk>axis-user@ws.apache.org cc 12/06/2006 09:33 AMSubject Re: [axis2 1.1.1]original wsdl soap:address altered Please respond to ache.org Deepal, isn't it the case that we always replace the port info with Nirmit, are you asking that Axis2 take the *entire* given WSDL and not generate the address of the service? To me that seems risky as that the user has create the service .aar with runtime specific info. example, if you copy the aar to another runtime then it may not wrote: > Please create a JIRA issue for this , that will help us not to forget the issue. > Thanks > >Hi, useOriginalwsdl in my the one I authored and not fine until the latest nightly of original wsdl to be preserved, it alters my host name with some weird IP address!! > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] > > -- Sanjiva Weerawarana, Ph.D. http://www.opensource.lk/ Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/ Director; Open Source Initiative; http://www.opensource.org/ Member; Apache Software Foundation; http://www.apache.org/ Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2 1.1.1] accessing context within service skeleton
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 workd fine. However, in the latest nightly this does not work, this method is not being called. My purpose is to access a service parameter from my services.xml. Can anyone tell me how I can do this in the 1.1.1 era? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[axis2 1.1.1]original wsdl soap:address altered
Hi, I am using Axis2 1.1.1. I author my wsdl and specify useOriginalwsdl in my services.xml so that the published WSDL would be the one I authored and not the one generated by Axis. It used to wokr fine until the latest nightly of 27th Nov. Eventhough I ask for the original wsdl to be preserved, it alters my soap:address and replaces my host name with some weird IP address!! This happens to any wsdl and any service. Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dumb question about stubs
No, they are not. Only the Test and Skeleton classes are meant for elaboration. -Nirmit Philipp Perner <[EMAIL PROTECTED] ealthgate.at> To axis-user@ws.apache.org 11/28/2006 10:06 cc AM Subject dumb question about stubs Please respond to ache.org hi, used adb for databinding. *.service.xsd.UploadFile require input data in their methods the way i want. stubs or the classes in service.xsd are meant to be altered, aren't they? philipp To unsubscribe, e-mail: [EMAIL PROTECTED] commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[axis2 1.1.1] wsdl2java generates bad code
Hi, I am using 27th Nov snapshot of axis2 1.1.1. In my wsdl I have an operation that takes no inputs (empty input message), doc/lit style. When I generate code with wsdl2java, the test cases generated for asynchronous invocation generates this: stub.startgetInfo( , new tempCallbackN10038() ); which is bad as the comma is not needed there. (getInfo is my wsdl operation) Just deleting the comma solves the problem. Please correct this in the nightly. Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis2: disable automatic wsdl generation
yes, and this works only with the nightlies, not with 1.0 release... -Nirmit "Gul Onural" <[EMAIL PROTECTED] m> To 11/07/2006 09:53 cc AM Subject RE: Axis2: disable automatic wsdl Please respond to generation [EMAIL PROTECTED] he.org Sorry, there was a typo in my posting. The useOriginalwsdl parameter description should be placed after the closing tag of the messageReceivers. Gul ... Your Service Class true ... From: Onural, Gul (CAR:SI12) Sent: Tuesday, November 07, 2006 9:46 AM To: axis-user@ws.apache.org Subject: RE: Axis2: disable automatic wsdl generation Add useOriginalwsdl parameter to services.xml file and set it to true. Your Service Class true ... From: S Pole [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 9:42 AM To: axis-user@ws.apache.org Subject: Axis2: disable automatic wsdl generation I would like deploy the service with the wsdl already packaged inside. How do I disable the automatic wsdl generation at the endpoint url?wsdl ?? I dont want customers to be able to access the wsdl in this fashion. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] XML as a service parameter
HI, I have a doc/lit service that needs to take arbitrary XML document as one of its parameters. I have declared the parameter as xsd:string and I try to invoke the service by passing a string of valid XML. I get the following exception: Exception in thread "main" java.lang.NullPointerException at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters( MTOMXMLStreamWriter.java:194) at com.ibm.sobe.xsd.InvokeDescriptor$1.serialize( InvokeDescriptor.java:202) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume( OMSourcedElementImpl.java:522) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize( OMSourcedElementImpl.java:529) at com.ibm.sobe.xsd.InvokeServiceParam$1.serialize( InvokeServiceParam.java:102) I am on 8/29 nightly. I can invoke other services without any problems. The XML I pass is pretty simple, no non-ASCII characters. What is the right way of doing this? Is passing XML as a string a good solution? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] download question
Hi, I am using an old nightly and thought of upgrading. I am confused about which zip to pick up. I see axis2-1.1-SNAPSHOT.zip and axis2-std-SNAPSHOT-bin.zip What is the difference between these two? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying Handwritten WSDL in aar with Axis2
Matt, I have seen this and solved in past. First thing you need is the latest nightly as this cannot be solved in 1.0 Then, in your services.xml, add "useOriginalwsdl" parameter and set it to true. Create the aar just like you do, and you shud get your own wsdl back. -Nirmit "Davanum Srinivas" <[EMAIL PROTECTED] To m>axis-user@ws.apache.org cc 10/26/2006 09:45 AMSubject Re: Deploying Handwritten WSDL in aar with Axis2 Please respond to [EMAIL PROTECTED] he.org Matt, JIRA please, with your AAR/WSDL/Services.XML thanks, dims On 10/26/06, Paul Fremantle <[EMAIL PROTECTED]> wrote: > Matt > > I'm pretty surprised its not picking up the WSDL with that name. It > might be worth running (separately) WSDL2Java -ss -sd on your WSDL. > This generates a services.xml, and if you run ant generates an aar for > you. You can then compare your aar and services.xml with the generated > one and see if there are any differences. > > Paul > > On 10/26/06, Matthew Hannay <[EMAIL PROTECTED]> wrote: > > Deploying Handwritten WSDL in aar with Axis2 > > > > I am trying to deploy a web service in axis2-1.0 > > > > I generate the server code using the eclipse plugin. > > > > I then create a aar, The structure is as follows. > > > > AddressBook-v1-0-0.aar > > META-INF/AddressBook-v1-0-0.wsdl > > META-INF/services.xml > > au/./some.class > > > > In the Services xml the > > > > > > and > > In the WSDL the name="AddressBook-v1-0-0" > > All the names match up. > > > > When I deploy my application and put the following in > > the browser > > http://localhost:8080/Services/AddressBook-v1-0-0?wsdl > > I recieve a generated WSDL. > > > > After googling I found some destructions at > > http://www.developer.com/open/print.php/10930_3557741_2 > > and followed them however renaming the wsdl to > > service.wsdl > > made no differance? > > > > Does any one know what I need to get the correct wsdl > > deployed > > > > Matt > > > > > > > > > > On Yahoo!7 > > Fuel Price Watch: Find the cheapest petrol in your area > > http://au.maps.yahoo.com/fuelwatch/ > > > > - > > 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] > > -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service 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]
[Axis2] HTTP/1.1 100
Hi, With my generic Axis client code, I am trying to invoke some services available on strikeIron web site. Interestingly, I can sucessfully invoke most of them but for some of them I get this error: INFO: Discarding unexpected response: HTTP/1.1 100 Continue org.apache.axis2.AxisFault: HTTP Transport error : '404' - 'File not found'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '404' - 'File not found'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '404' - 'File not found'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '404' - 'File not found' at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke( CommonsHTTPTransportSender.java:227) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:643) The services are actually there, you can try them out from the strikeIron interface. What does this error mean? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [axis2] nightly build generated stub not compiling. giving following error
do you have the nightly jars in your build path? "shantanu chawla" To axis-user@ws.apache.org 10/02/2006 12:52 cc PM Subject [axis2] nightly build generated Please respond to stub not compiling. giving [EMAIL PROTECTED] following error he.org On using axis2 nightly build to generate webservice client stubs, my stub is giving me the following error. I have axis2 on my build path. in neethi.jar i see org.apache.ws.Policy but I dont see any class of type org.apache.neethi. org.apache.neethi cannot be resolved to a type method addHeadersToEnvelope(SOAPEnvelope) is undefined for the _serviceClient The method getNamespaceURI() is undefined for the type OMNamespace Any input would be appreciated. Shantanu Graduate Student Department of Computer Science, San Diego State University - 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 questions
okay, i m not using enums.. -Nirmit "Gul Onural" <[EMAIL PROTECTED] m> To 10/02/2006 10:01 cc AM Subject RE: Axis2 questions Please respond to [EMAIL PROTECTED] he.org Just as an example, restriction based xml enums didn't quite worked well for me. Gul -Original Message----- From: Nirmit Desai [mailto:[EMAIL PROTECTED] Sent: Monday, October 02, 2006 9:09 AM To: axis-user@ws.apache.org Subject: Re: Axis2 questions I am using wsdl2java for fairly complex schema...and document literal style...it works well with the nightlies... Can you describe the kinds of problems you get with wsdl2java? I use ADB with wsdl2java...and all i have to do is fill in the skeleton implementation...no level of dealing with OM is required -Nirmit "Gul Onural" <[EMAIL PROTECTED] m> To 10/01/2006 11:11 cc AM Subject Axis2 questions Please respond to [EMAIL PROTECTED] he.org I am trying to understand how to write a service without using the wsdl2java. Our service interface uses fairly complex data types and current status of the wsdl2java is not sufficiently bug-free for my purposes. I have spent quite a bit time to browse through the samples come with the std distribution and I would appreciate any help on the questions below: - How does selection of the message receivers affect the service implementation code? For example my (very simple) test service works with RPC message receivers but throws type mismatch exception when I change the message receivers from RPC to RawXML. - What is the advantages/disadvantages of using RPC message receivers vs. RawXML message receivers. - About the service implementation class : Axis2 document claims that a simple Java class can be deployed as an Axis2 service (with a proper service.xml, etc...). However when I look at some sample services in the Axis2 distribution, their methods (operations) are implemented to accept OMElement as input and they return OMElement. So, when do I need to deal with the OMElement, and when does a straight forward Java class can be used to do the job as a service. Thanks, - 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 questions
I am using wsdl2java for fairly complex schema...and document literal style...it works well with the nightlies... Can you describe the kinds of problems you get with wsdl2java? I use ADB with wsdl2java...and all i have to do is fill in the skeleton implementation...no level of dealing with OM is required -Nirmit "Gul Onural" <[EMAIL PROTECTED] m> To 10/01/2006 11:11 cc AM Subject Axis2 questions Please respond to [EMAIL PROTECTED] he.org I am trying to understand how to write a service without using the wsdl2java. Our service interface uses fairly complex data types and current status of the wsdl2java is not sufficiently bug-free for my purposes. I have spent quite a bit time to browse through the samples come with the std distribution and I would appreciate any help on the questions below: - How does selection of the message receivers affect the service implementation code? For example my (very simple) test service works with RPC message receivers but throws type mismatch exception when I change the message receivers from RPC to RawXML. - What is the advantages/disadvantages of using RPC message receivers vs. RawXML message receivers. - About the service implementation class : Axis2 document claims that a simple Java class can be deployed as an Axis2 service (with a proper service.xml, etc…). However when I look at some sample services in the Axis2 distribution, their methods (operations) are implemented to accept OMElement as input and they return OMElement. So, when do I need to deal with the OMElement, and when does a straight forward Java class can be used to do the job as a service. Thanks,
RE: [Axis2] Help me better understand axis2
Look at the AXIOM javadoc http://ws.apache.org/commons/axiom/apidocs/index.html I am not sure how you can have a HashMap type parameter in an Axis2 service operation. For best results, start from a WSDL and generate code with databinding. -Nirmit "nancy" <[EMAIL PROTECTED] affodildb.com> To 09/18/2006 06:32 cc AM Subject RE: [Axis2] Help me better Please respond to understand axis2 [EMAIL PROTECTED] he.org Hi Sameera, Thanks Sameera for the link. I have gone through the document. Is there any link in which how to send the request having parameters other than String is explained. As far as I know the setText method of OMelement takes String parameter, also createOMElement method of OMfactory takes string parameter? With Warm Regards, Nancy Aggarwal Software Developer (Embedded image moved to file: pic12149.gif) From: Sameera Madushan [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 12:46 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] Help me better understand axis2 Hi nancy, Since you have the implementation class. The next thing you have do is to create the services.xml file. I will try to reply with the services.xml file. Before hand you better refer the following tutorial. ... ... For further details you can refer tutorial "Writing an Axis2 Service from Scratch" by Deepal Jayasinghe under the following link http://www.developer.com/services/article.php/3613896 http://www.developer.com/services/article.php/3613896 On 9/18/06, nancy <[EMAIL PROTECTED]> wrote: Hello all, I am very confused how to create my web service. I am having these two operations which I want to expose. How can I create its service.xml and then after exposing I need to create a client? But how, I am unable to start with. Please help me to better understand the axis2. public class Test{ public int tingTong(int var1){ return var1+100; } public HashMap tingTong(HashMap var1){ return var1; } } With Warm Regards, Nancy Aggarwal Software Developer (Embedded image moved to file: pic18618.gif) pic12149.gif Description: GIF image pic18618.gif Description: GIF image - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL2Java does not generate WSDD files!
Roberto, with Axis2, the function of wsdd was replaced by a much simpler services.xml in folder resources (generated by WSDL2Java).. Please go through the Axis2 userguide. I typically do contract-first (starting from WSDL) approach and use -ss -sd -t -g switches for code generation and it works great. log4j warnings appear in almost everything you do with Axis2 1.0. Please use the latest nightly to avoid this and many other problems. -Nirmit "Roberto Flores" <[EMAIL PROTECTED] il.com>To axis-user@ws.apache.org, "Sergey 09/15/2006 01:29 GMAIL" <[EMAIL PROTECTED]> PM cc Subject Please respond to Re: WSDL2Java does not generate [EMAIL PROTECTED] WSDD files! he.org Hello, I used the version in the Axis2 base distribution version 1.0, which I downloaded from the official page here: http://ws.apache.org/axis2/tools/index.html the file name is: axis2-std-1.0-bin.zip 2006/9/15, Sergey GMAIL <[EMAIL PROTECTED]>: Hello, Roberto. What version of the Axis do you use? > I can succesfully generate the classes but no wsdd appears (which is what I actually want). I did specify --server-side and -ss. There is a weird warning about not log4j being found though, could this be the cause? also, everyone says the -s switch activates server side code generation (and thus, the wsdd making) but in my version of wsdl2java ( 1.0) the -s switch activates synchronous code generation instead. There is also a wsdl2Code.bat in the download but it didn't generate it either. Am I using the right program? missing an option? is there any other tool to make a wsdd file from a wsdl? please help.
Re: WSDL url
I had it work for me with the following changes: --use the latest nightly --set a parameter "useOriginalwsdl" to true in services.xml Now it presents the WSDL I authored. -Nirmit "Nathaniel Auvil" To axis-user@ws.apache.org 09/12/2006 10:39 cc AM Subject Re: WSDL url Please respond to [EMAIL PROTECTED] he.org Give it a try in Axis2but to noteI opened JIRA AXIS2-1142 as this is not working for me as Axis2 is still trying to parse the file rather than simply provide access to the existing WSDL On 9/12/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote: In Axis, specify the WSDL path in the element in the WSDD. In Axis2, drop your WSDL into the META-INF. Anne On 9/12/06, Punnoose, Roshan <[EMAIL PROTECTED] > wrote: > Is there a way to specify a WSDL to present back to the client? I don't > want to generate my code from the WSDL, but I have a WSDL to use. > > Roshan Punnoose > Phone: 301-497-6039 > > -Original Message- > From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 12, 2006 10:01 AM > To: axis-user@ws.apache.org > Subject: Access Addressing information > > When I create a web service with WS-Addressing handlers, how do I have > access to the addressing information located in the soap header, in my > web service? I want to be able to manipulate and use the wsa:messageId > tag. > > Roshan Punnoose > Phone: 301-497-6039 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP Monitor
axis2-soapmonitor.jar is inside WEB-INF/lib of axis2.war in Axis2 1.0 distro. If you are using nightlies, you should have axis2-soapmonitor-SNAPSHOT.jar instead at the same location. I just extracted out SOAPMonitor*.class from this jar into my webapps/axis2 and it works great. I found that part of the documentation confusing too, no compilation was necessary. -Nirmit "Doolittle, Todd" <[EMAIL PROTECTED] .com> To 09/06/2006 01:32 cc PM Subject SOAP Monitor Please respond to [EMAIL PROTECTED] he.org I followed the documentation for using the SOAP monitor. However it says to compile the applet with “javac -classpath axis2-soapmonitor.jar SOAPMonitorApplet.java” Neither axis2-soamonitor.jar nor SOAPMonitorApplet.java are part of the Axis2 distribution. And unless I’m missing it, I don’t see where I can download them off the Axis2 website. Can anyone tell me where to get them? Thanks! Todd This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.
Re: [Axis2] useOriginalwsdl parameter
Ajith, The 1.0 release ignores the parameter in some way and returns AXIS2 generated WSDL only. However, nightlies do not have this problem. I have a little concern with the way Axis2 generates WSDL. Even if useOriginalwsdl is not set, what is the motivation behind renaming the portType name to suit the name of the service? The very reason behind why we have two different names portType and service is to allow multiple services implementing a portType. Axis2 renames the portTypes (regardless of what the original wsdl specifies) by the service name as PortType. -Nirmit "Ajith Ranabahu" <[EMAIL PROTECTED] mail.com> To axis-user@ws.apache.org 08/31/2006 06:12 cc PM Subject Re: [Axis2] useOriginalwsdl Please respond to parameter [EMAIL PROTECTED] he.org Hi, This is exactly for the purpose you want it :) The usual behavior of the system is to build a AxisService representation out of the WSDL and then serialize it (Which might not be same as the original). If you set the useOriginalwsdl parameter then there would not be such serialiation but the original WSDL will be seriallized. Ajith On 8/31/06, Santoso Nugroho <[EMAIL PROTECTED]> wrote: > Hi, > > What is the "useOriginalwsdl" parameter for? > I've specified it in my services.xml and I have put my wsdl in meta-inf, > however the wsdl returned by axis2 isn't the same as my wsdl (somehow it > stripped my partnerlinktype information). > > > Thanks a lot, > > santoso > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- 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: Databinding with WSDL2JAVA
it sounds like a bug... my guess is that as the outer complex tyoe is not given a name, it simply ignores it for databinding. Try giving a name o the outer complex type? I never tried defining types for elements inline. Having seprate type definitions allows you to reuse the types for different elements too. -Nirmit "Doolittle, Todd" <[EMAIL PROTECTED] .com> To 08/31/2006 12:13 cc PM Subject Databinding with WSDL2JAVA Please respond to [EMAIL PROTECTED] he.org I'm using Axis2 to generate a client from WSDL. I'm having a problem with the databinding. The WSDL I'm using is somewhat complex, so to illustrate the problem I created some simpler WSDL. Consider this fictitious service that takes as a request a last name, and then returns as a response the husband (first name, last name) and wife (first name, last name, maiden name) registered with that last name. Here are how the types are defined in the WSDL: http://www.example.org/family2/";> In Axis2 it doesn't handle this correctly. The FamilyLookupRequest object is created correctly. But because the FamilyLookupResponse has nested complex types Axis2 does not create the FamilyLookupResponse class correctly. Axis2 creates the husband_type0 and wife_type1 classes correctly. The FamilyLookupResponse class contains a husband and wife member, but they are defined as OMElements instead of their correct type (husband_type1, and wife_type0). If I change the WSDL as follows, Axis2 will then create the classes correctly. Any ideas? Is this a bug? http://www.example.org/family2/";> Lastly Axis 1.4 handles either version of the WSDL correctly. This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED: Re: [Axis2] nightly exception while invoking via stub
Hi Robert, All my fault... Thanks for pointing that one out. I found deep down somewhere one of the fields of an ADB bean was not being set and so was left null. And SOAPMonitor did not display anything as its connection to server was lost :) The problem was on the service side trying to serialize the results... Should Axis2 serialize null in some way instead of complaining? maybe only if it is declared nillable in WSDL..? Thanks, -Nirmit "robert lazarski" <[EMAIL PROTECTED] mail.com> To axis-user@ws.apache.org 08/29/2006 04:35 cc PM Subject Re: [Axis2] nightly exception while Please respond to invoking via stub [EMAIL PROTECTED] he.org > Caused by: java.lang.NullPointerException > at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters( > MTOMXMLStreamWriter.java:194) > at com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307) > at > org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume( > OMSourcedElementImpl.java:522) > at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize( > OMSourcedElementImpl.java:529) > at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize( Something is null. Need to see to the code to perhaps know why, but that should give you a start. HTH, Robert http://www.braziloutsource.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] nightly exception while invoking via stub
Hi Robert, Thanks for even looking at this deep exception trace. My confusion is that this operation takes no parameters (empty in), and the stub code looks right. The ArrayOfServiceBundle, and ServiceBundle are ADB types for the return from the operation. Then, why do I not see anything (request message) in the SOAPMonitor? Thanks -Nirmit "robert lazarski" <[EMAIL PROTECTED] mail.com> To axis-user@ws.apache.org 08/29/2006 04:35 cc PM Subject Re: [Axis2] nightly exception while Please respond to invoking via stub [EMAIL PROTECTED] he.org > Caused by: java.lang.NullPointerException > at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters( > MTOMXMLStreamWriter.java:194) > at com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307) > at > org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume( > OMSourcedElementImpl.java:522) > at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize( > OMSourcedElementImpl.java:529) > at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize( Something is null. Need to see to the code to perhaps know why, but that should give you a start. HTH, Robert http://www.braziloutsource.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]
[Axis2] nightly exception while invoking via stub
Hi, What does the exception below mean? it gives me no clue. I get this when trying to invoke an operation (doc/lit) via a generated stub. This is from 8/24 nightly. I do not see any messages in the SOAPMonitor...so service implementation is out of question.. Only if I can understand what this is trying to say? -Nirmit Aug 29, 2006 3:20:36 PM org.apache.axis2.engine.AxisEngine receiveFault INFO: Received Error Message with id urn:uuid:E98263F171272E08DB11568792356871 Exception in thread "main" org.apache.axis2.AxisFault: java.lang.NullPointerException at org.apache.axis2.description.OutInAxisOperationClient.execute( OutInAxisOperation.java:301) at com.ibm.sobe.platform.SampleClubMemberServicesStub.getServices( SampleClubMemberServicesStub.java:220) at com.ibm.sobe.platform.SampleClubMemberServicesTest.testgetServices( SampleClubMemberServicesTest.java:60) at com.ibm.sobe.platform.SampleClubMemberServicesTestDriver.main( SampleClubMemberServicesTestDriver.java:22) Caused by: java.lang.Exception: org.apache.axis2.AxisFault: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException at org.apache.axis2.transport.http.AxisServlet.doPost( AxisServlet.java:245) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11AprProcessor.process( Http11AprProcessor.java:833) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process( Http11AprProtocol.java:639) at org.apache.tomcat.util.net.AprEndpoint$Worker.run( AprEndpoint.java:1285) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters( MTOMXMLStreamWriter.java:194) at com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume( OMSourcedElementImpl.java:522) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize( OMSourcedElementImpl.java:529) at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize( ArrayOfServiceBundle.java:152) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume( OMSourcedElementImpl.java:522) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize( OMSourcedElementImpl.java:529) at com.ibm.sobe.xsd.GetServicesReturn$1.serialize( GetServicesReturn.java:102) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume( OMSourcedElementImpl.java:522) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize( OMSourcedElementImpl.java:505) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize( OMElementImpl.java:765) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize( OMElementImpl.java:750) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize( OMElementImpl.java:765) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize( SOAPEnvelopeImpl.java:177) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize( OMElementImpl.java:750) at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize( OMNodeImpl.java:310) at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize( OMNodeImpl.java:348) at org.apache.axiom.om.impl.llom.OMElementImpl.toString( OMElementImpl.java:893) at org.apache.axis2.handlers.soapmonitor.SOAPMonitorHandler.invoke( SOAPMonitorHandler.java:102) at org.apache.axis2.engine.Phase.invoke(Phase.java:380) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:517) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:627) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive( AbstractInOutSyncMessageReceiver.java:48) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest( HTTPTransportUtils.java:283) at org.apache.axis2.transport.http.AxisServlet.doPost( AxisServlet.java:205) --
[Axis2] change in envelope from 1.0 to nightly
Hi, I used to use Axis2 1.0, and now shifted to the nightlies. I always used doc/lit style. When I look at the envelopes being exchanged over the wire, I see that the request messages for operations having no parameters are encoded differently. I have put envelope sample below. With 1.0, the request envelope for an operation having no parameter would have an empty soap:body. With the nighgtly of 8/24, the soap:body i non-empty, and has one empty element corresponding to the name of the input message (having no parts), whtout any namespace. I have two questions: --why this change? what does it signify? --why is the empty message element out of any namespace? shouldn't it be under the target namespace of the WSDL? Here, getClubs is the name of the input message ENVELOPE for 1.0: http://schemas.xmlsoap.org/soap/envelope/";> ENVELOPE for nightly: http://schemas.xmlsoap.org/soap/envelope/";> Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] latest nightly WSDL2Java does not generate async code
Hi, I am using 24 aug nightly and trying to generate clien and server side code woth the following: WSDL2Java -uri .wsdl -p -a -t -ss -sd -g -a switch should have generated testStart<> methods in my stub it doesn't. I also tried this (which used to generate both asyn and sync code): WSDL2Java -uri .wsdl -p -t -ss -sd -g any ideas? I am investigating why getElement() method in the Callback() is not available. It was there in 1.0. What is the work around? Thanks -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] Preserving the original WSDL
Hey Alistair, all, I am having the same problem and it is severely restrictive. Did you get this to work? I read that article, and my service name in the WSDL, the name of the aar and the name of the service in services.xml are the same. And I have only one service at a time. I want many services implementing a portType. But when I deploy the services (one by one), the name of the portType is modified to suit the name of the service like xServicePortType instead of the one i put in my original WSDL. I have put the WSDL in META-INF and also set useOriginalwsdl to true. What do i need to do to have axis expose the WSDL I gave to it? -Nirmit Alistair Young <[EMAIL PROTECTED] .ac.uk>To axis-user@ws.apache.org 08/09/2006 03:24 cc AM Subject Re: [AXIS2] Preserving the original Please respond to WSDL [EMAIL PROTECTED] he.org aha! what a day, I must be working too hard! My wsdl namespace for was wrong so Axis2 was removing it. So Axis2 doesn't just pick up the wsdl and display it. It must process it too. Anyway, I can now get on with using this groovy new web services toolkit. Alistair On 8 Aug 2006, at 20:58, Alistair Young wrote: > this is painful! I found this site which explains it more: > > http://www.developer.com/open/article.php/10930_3589126_2 > > and now I have the element appearing in something that > resembles > the original wsdl. However, it's a real mess. The has one > child: > > elementFormDefault="unqualified" > attributeFormDefault="unqualified"/> > > so the full xsd:schema definitions of the types are missing and no > data > binding for clients can be done. > > Axis2 has also added an HTTP POST binding which should not be > there. It's > also added a load of soap12 namespaces which aren't in the original > wsdl. > > I just can't get axis2 to reproduce the original wsdl. Is Axis2 > sensitive > to namespace declarations? > > -- > Alistair Young > Senior Software Engineer > [EMAIL PROTECTED] Mòr Ostaig > Isle of Skye > Scotland > >> apparently this in services.xml is meant to work but it doesn't: >> >> true >> >> the generated wsdl is lacking all original >> >> Could someone guide me to a solution please? >> >> >> Test service >> org.test.Test> parameter> >> true >> >> > class="org.apache.axis2.rpc.receivers.RPCInOutAsyncMessageReceiver"/> >> >> >> >> thanks, >> >> Alistair >> >> >> -- >> Alistair Young >> Senior Software Engineer >> [EMAIL PROTECTED] Mòr Ostaig >> Isle of Skye >> Scotland >> >>> Hi there, me again! Is there any way to preserve the original >>> WSDL when >>> deploying a service? The generated WSDL is not much use as it has >>> removed >>> all the elements so no data binding can occur. >>> >>> I read somewhere that you can put the WSDL in META-INF but that >>> didn't >>> do >>> anything. >>> >>> -- >>> Alistair Young >>> Senior Software Engineer >>> [EMAIL PROTECTED] Mòr Ostaig >>> Isle of Skye >>> Scotland >>> >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - 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] does client need to know MEP?
Hi Martin, Thanks for the info. What you describe happens at the service side. My concern is whether the client needs to be aware about the MEP of the operation it is invoking. Eran answered my questions and I need not use specialized operation client. Still, I have to figure out the MEP of the operation by parsing WSDL and looking at whethyer the operation has both input and out or just the input. I am wondering if tthere is any easier way for a client to know the MEP. Thanks -Nirmit "Martin Gainty" <[EMAIL PROTECTED] com> To , 08/19/2006 06:11 <[EMAIL PROTECTED]> PM cc Subject Please respond to Re: [Axis2] does client need to [EMAIL PROTECTED] know MEP? he.org The answer is the MEP of an Operation is determined from the Java Method specifically.. All the public methods in the service implementation class are exposed (whether you specified that in services.xml or not.) Axis2 calculates the MEP of an operation by checking its corresponding java method. If the method is void, the MEP will be in-only; else, it will be in-out, (depending on which MEP message receiver will be set.) http://www.developer.com/java/ent/article.php/3613896 Does this answer your question? M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Eran Chinthaka" <[EMAIL PROTECTED]> To: Sent: Saturday, August 19, 2006 3:04 PM Subject: Re: [Axis2] does client need to know MEP? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] does client need to know MEP?
Eran Chinthaka <[EMAIL PROTECTED] urce.lk> To axis-user@ws.apache.org 08/19/2006 12:02 cc PM Subject Re: [Axis2] does client need to Please respond to know MEP? [EMAIL PROTECTED] he.org Hi Eran, Thanks for the clarification. However, what do you mean by simple stuff? Can you point me to the situations that demand such specialized operations? or the use of operation clients? I am interested in knowing: --whether ServiceClient is good enough for invoking doc/lit services, taking one message part at the most, and with in-only or in-out MEPs? The soapAction would be set in the Options. If so I would like to stick to the ServiceClient usage. --If ServiceClient can indeed handle the above, and blocking invocations are fine, I should use fireAndForget() for in-only MEP and sendReceive() for in-out MEP. Is that right? Thanks a lot, I appreciate your help, -Nirmit Nirmit Desai wrote: > Hi all, > > I was writing my client without using the generated stub (but mimicking > what the stub does). I saw that the generated stub creates different kinds > of operations OutInAxisOperation, InOnlyAxisOpeepending on how the message > exchange pattern of the operation is on the sever side. > > But how does a client discover an MEP for a service operation? It is not in > WSDL. MEP can always be deduced by the WSDL. Just look at the messages for an operation. If you have one input and one output - IN-OUT one input - IN-Only. Just identify the MEP and invoke either sendReceive or send depending on that. No you don't need to juggle with OutInAxisOperation, InOnlyAxisOperations if you are doing somple stuff. -- Chinthaka (See attached file: signature.asc) signature.asc Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] does client need to know MEP?
Hi all, I was writing my client without using the generated stub (but mimicking what the stub does). I saw that the generated stub creates different kinds of operations OutInAxisOperation, InOnlyAxisOpeepending on how the message exchange pattern of the operation is on the sever side. But how does a client discover an MEP for a service operation? It is not in WSDL. So my question is, is it necessary to create the right kind of operation to correctly invoke the service or it is optional? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] how does Axis know what operation to invoke?
I have distinct soapActions defined in the binding and also my services.xml has distinct actionMapping for each operation. But, in the SOAPEnvelope being sent on the wire, where do those distinct names figure? they are absent. So, regardless of how I specify my WSDL soapActions, the SOAPEnvelope is not distinguishing them, then how would Axis know? Thanks, -Nirmit "Ajith Ranabahu" <[EMAIL PROTECTED] mail.com> To axis-user@ws.apache.org 08/17/2006 09:54 cc PM Subject Re: [Axis2] how does Axis know what Please respond to operation to invoke? [EMAIL PROTECTED] he.org Hi, In that case you have to have different SOAP Actions or different WSA actions mapped to the services Ajith On 8/17/06, Nirmit Desai <[EMAIL PROTECTED]> wrote: > > Hi, > > I have dpeloyed a document/literal service with ADB/generated stubs etc. > and everything is working fine. However, I am intercepting the messages on > the SOAPMonitor and this is what is being sent to the sevice for an > operation that does not take any parameters: > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > > > > > The response is fine. But my question is if I had two operations taking no > parameters, how would Axis know which one to invoke? > > Thanks, > > -Nirmit > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- 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]
[Axis2] how does Axis know what operation to invoke?
Hi, I have dpeloyed a document/literal service with ADB/generated stubs etc. and everything is working fine. However, I am intercepting the messages on the SOAPMonitor and this is what is being sent to the sevice for an operation that does not take any parameters: http://schemas.xmlsoap.org/soap/envelope/";> The response is fine. But my question is if I had two operations taking no parameters, how would Axis know which one to invoke? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2 1.0] Asynchronous doc/lit, no output.
Hi James, Yes, if the client thread doesn't sleep, as the call to execute() is nonblocking, the thread dies before it can create a SOAP envelope and ship it out. That is why we do not see any SOAP requests in the SOAP monitor. So "sleeping" is essential even for sending the request :) I was waiting for some of the developers to confirm this being a bug to file a JIRA. Not sure if Sathija already filed it. -Nirmit "Bessette, James M." <[EMAIL PROTECTED] To s.com> cc 08/15/2006 11:08 AMSubject RE: [Axis2 1.0] Asynchronous doc/lit, no output. Please respond to [EMAIL PROTECTED] he.org I have experienced the same issue using the generated code. I can understand making the client sleep to receive the request and response. But based on my experience and the experience of others, it appears if the thread does not sleep at all, the request never makes it to the server. Has anyone logged a JIRA issue on this? Can anyone from the Axis 2 team confirm our findings? Thanks James Bessette -Original Message- From: Sathija Pavuluri [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 5:24 PM To: axis-user@ws.apache.org Subject: Re: [Axis2 1.0] Asynchronous doc/lit, no output. Ajith, Nirmit, This is indeed for Axis2 1.0. When I tried the nightlies(8/14/06) I ran into even bigger problems. The web services did not even get deployed properly. Something about method not found error for javax.xml.stream.XMLOutputFactory.newInstance(ClassLoader) method not found. Not sure if its just me or others who have had problems with today's nightly. I'll try again tomorrow. Anyway, for now I reverted back to my previous libraries and tried the same thing that Nirmit mentioned below. With sufficient sleep(5000), I could send the request and get response back. And the callback methods got invoked too! Nirmit, you might want to sequentially increase your sleep time and try. Once the req and res are sent I dont see why the callbacks shouldnt get invoked. Thanks, Sathija. > Hi Ajith, Sathija, > > I partly figured out the problem. > > As the userguide shows, with asynchronous clients, the calling thread > must do a Thread.sleep(). But in the generated code, I do not see any > Thread.sleep(). > > So, I put a Thread.sleep(1000) in the generated test client's > testStart method, and then I saw a SOAP request/response > in SOAPMonitor. However, my callback methods were not invoked!! So, I > still haven't figured out how to receive the response. I gave up and > started using synchronous clients instead. > > -Nirmit > > > > > "Ajith Ranabahu" ><[EMAIL PROTECTED] > mail.com> > To >axis-user@ws.apache.org > > 08/14/2006 04:25 > cc PM > > > Subject > >Re: [Axis2 1.0] Asynchronous > > Please respond to doc/lit, no output. >[EMAIL PROTECTED] > > he.org > > > > > > > > > > Hi, > Is this for 1.0 ? Can you guys try with the latest nightlies ? > > Ajith > > On 8/14/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote: >> Hi Nirmit, >> >> I am running an async call in Axis2 1.0 using generated code in a >> similar scenario as yours and seeing the exact same problem. >> Nothing is SOAP monitor unlike other sync calls. Looks like the >> request was never made. >> But I see no errors either. >> >> The async call goes thru in one case, when my test program also >> invokes a sync call. At that time, I see the req/res for the async >> call too. But when I run it by itself, nothing happens. >> >> Have you been able to figure out the problem? >> >> Thanks, >> Sathija. >> >> >> >> >> >> >Hi, >> >> >I am trying to invoke a doc/lit service with an asynchronous (two > transport >> >connections) client. I started from a WSDL and generated client side >> and server side code with Axis databinding, along with a junit test. >> >> >However, when I run the test, I do not get any
Re: [Axis2 1.0] Asynchronous doc/lit, no output.
Hi Ajith, Sathija, I partly figured out the problem. As the userguide shows, with asynchronous clients, the calling thread must do a Thread.sleep(). But in the generated code, I do not see any Thread.sleep(). So, I put a Thread.sleep(1000) in the generated test client's testStart method, and then I saw a SOAP request/response in SOAPMonitor. However, my callback methods were not invoked!! So, I still haven't figured out how to receive the response. I gave up and started using synchronous clients instead. -Nirmit "Ajith Ranabahu" <[EMAIL PROTECTED] mail.com> To axis-user@ws.apache.org 08/14/2006 04:25 cc PM Subject Re: [Axis2 1.0] Asynchronous Please respond to doc/lit, no output. [EMAIL PROTECTED] he.org Hi, Is this for 1.0 ? Can you guys try with the latest nightlies ? Ajith On 8/14/06, Sathija Pavuluri <[EMAIL PROTECTED]> wrote: > Hi Nirmit, > > I am running an async call in Axis2 1.0 using generated code in a similar > scenario as yours and seeing the exact same problem. > Nothing is SOAP monitor unlike other sync calls. Looks like the request > was never made. > But I see no errors either. > > The async call goes thru in one case, when my test program also invokes a > sync call. At that time, I see the req/res for the async call too. > But when I run it by itself, nothing happens. > > Have you been able to figure out the problem? > > Thanks, > Sathija. > > > > > > >Hi, > > >I am trying to invoke a doc/lit service with an asynchronous (two transport > >connections) client. I started from a WSDL and generated client side and > >server side code with Axis databinding, along with a junit test. > > >However, when I run the test, I do not get any output, no exceptions, and > >no callbacks from the server. Also, SOAPMonitor does not show any > >request/response message. My SOAPMonitor works with other clients. Where > >did the call go? > > >I am really confused why this is happening. Has anyone tried clients with > >callbacks? > > >Thanks, > > >-Nirmit > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- 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]
[Axis2 1.0] WSDL: no XML preamble!!
Hi all, I am developing services with the contract-first approach. I put my WSDLs in the META-INF alongwith services.xml when I deploy my services. On the axis services page, I am able to view the WSDL of the service (slightly modified, but sitll correct). My problem is that when I read the WSDL from this URI (i.e. via a program of save the file from the browser), I find that the file does not have the XML preamble, Where did it go? Shouldn't all valid XML files have this? Due to this, when I open the saved copy of the WSDL, the browser does not recognize it as a WSDL file and displays it as if it is a text file!! -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: services.xml - where?
You should have your services.xml in the same directory as your classes (not inside packages). So, --org --test --MyTest.class --META-INF --services.xml --myService.wsdl(optional) -Nirmit Alistair Young <[EMAIL PROTECTED] .ac.uk>To axis-user@ws.apache.org 08/08/2006 11:03 cc AM Subject services.xml - where? Please respond to [EMAIL PROTECTED] he.org I have services.xml in: org/test/META-INF/services.xml but axis2 says it can't find services.xml for the service. The website says to put META-INF/services.xml in the same directory as the class file. So I looked at the version.aar that comes with axis2 and it has two: META-INF/services.xml sample/axisversion/META-INF/services.xml which is the correct location? thanks, Alistair - 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]
[Axis2 1.0] Asynchronous doc/lit, no output
Hi, I am trying to invoke a doc/lit service with an asynchronous (two transport connections) client. I started from a WSDL and generated client side and server side code with Axis databinding, along with a junit test. However, when I run the test, I do not get any output, no exceptions, and no callbacks from the server. Also, SOAPMonitor does not show any request/response message. My SOAPMonitor works with other clients. Where did the call go? I am really confused why this is happening. Has anyone tried clients with callbacks? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Startup parameters
Dave, see this thread: http://marc.theaimsgroup.com/?l=axis-user&m=115450262521069&w=2 Deepal, not sure if this is a bug, but the MessageReceiver generated by WSDL2Java makes only this call: org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider(obj, msgContext.getOperationContext()); Looking into the source for DependencyManager, it seems that the setOperationContext() would be called but not the init. Am I right? Thanks, -Nirmit Deepal Jayasinghe <[EMAIL PROTECTED] e.lk> To axis-user@ws.apache.org 08/02/2006 12:33 cc AM Subject Re: Startup parameters Please respond to [EMAIL PROTECTED] he.org Yes you can get parameters; pubic void init(ServiceContext sgctx){ AxisService service = serviceContext.getAxisService() service.getParameter(name); } Dave Cowing wrote: > This is probably a really simple question. In the service init, can I > get access to custom paramters from either the axis.xml or service.xml > file? I'm looking to place parameters that will change with service > installation somewhere. Examples of these parameters are resource > paths, database usernames, ... > > thanks, > Dave -- Thanks, Deepal ~Future is Open~ - 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: envelop null. how to invoke an axis 2 method?
Hi, I have recently ran into this problem and I am confident it is a WSDL2Java bug. When a WSDL has an operation without argument, i.e., its input is an empty message, the generated Stub class has this bug: it declares an envelope variable initlaized with null, and then doesn't assign an empty body to it. To fix this, add this line immediately after env is declared in the corresponding service operation method stub: env=toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI())); This should solve your problem. Thanks, -Nirmit "Derek" <[EMAIL PROTECTED] orp.com> To 08/01/2006 02:58 cc PM Subject RE: envelop null. how to invoke an Please respond to axis 2 method? [EMAIL PROTECTED] he.org Simon: Generated code might legitimately throw either IllegalArgumentExceptions or IllegalStateExceptions with appropriately descriptive error messages, but if it's throwing a descriptionless NullPointerException, it has a bug in it. Even if you eventually find a workaround, please file a JIRA for this issue so that the code gets fixed. Thanks. Derek > -Original Message- > From: Simon West [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 01, 2006 11:40 AM > To: axis-user@ws.apache.org > Subject: Re: envelop null. how to invoke an axis 2 method? > > > Thanks for the fast answer, but its the same problem. I added: > > > > to my wsdl. But an invokation produces: > > java.lang.NullPointerException >at > org.apache.axis2.context.MessageContext.setEnvelope(MessageCon > text.java:681) >at > org.apache.axis2.ProductStub.GetCategories(ProductStub.java:119) >at ProductTest.main(ProductTest.java:10) > > Here is the new WSDL again: > > http://schemas.xmlsoap.org/wsdl/"; >xmlns:tns="http://www.example.org/Product/"; >xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; >xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; >xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; >xmlns:xsd="http://www.w3.org/2001/XMLSchema"; >xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; >targetNamespace="http://www.example.org/Product/";> > > targetNamespace="http://www.example.org/Product/"; >elementFormDefault="unqualified" >attributeFormDefault="unqualified"> > > > > type="xsd:string" name="Category" > > maxOccurs="unbounded" /> > > > > > > > > > > > > message="tns:GetCategoriesRequest" /> > message="tns:GetCategoriesResponse" /> > > >name="ProductSOAP11Binding"> > > transport="http://schemas.xmlsoap.org/soap/http"; /> > > > soapAction="http://www.example.org/Product/GetCategories"; /> > > namespace="http://www.example.org/Product/"; >use="literal" /> > > > namespace="http://www.example.org/Product/"; >use="literal" /> > > > >name="ProductSOAP12Binding"> > > transport="http://schemas.xmlsoap.org/s
Re: [Axis2 1.0] MessageContext is null
Hi David, Thanks a lot for your help. I used setOperationContext and it worked. I am accessing a service level parameter (defined at deployment time in services.xml). However, the message receiver would call setOperationContext every time an operation is being invoked, and if I am understanding this right, all the message contexts extracted from these calls would contain the service level parameters. So I just need to store any one of the message contexts to access the parameter from service methods. AXIS2 documentation needs to be updated: http://www.developer.com/open/print.php/10930_3589126_3 The above famous article (and some older posts) advised me to use init(MessageContext). Thanks, -Nirmit "David Illsley" <[EMAIL PROTECTED] il.com>To axis-user@ws.apache.org 08/01/2006 12:16 cc PM Subject Re: [Axis2 1.0] MessageContext is Please respond to null [EMAIL PROTECTED] he.org OK, so I'm a little familiar with this code and there are a couple of relevant things: 1. it should be init(ServiceContext sc) not MessageContext which may be why init isn't being called. You may be able to get what you want from the ServiceContext depending on what you're looking for. 2. DependencyManager.configureBusinessLogicProvider causes setOperationContext(OperationContext oc) to be called on the implementation class if it exists. From this you gan get the associated MessageContext(s). Hope that helps, David On 01/08/06, Nirmit Desai <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have generated my implementation class from a WSDL and added the > following method: > > private MessageContext msgCtx=null; > > public void init(MessageContext ctx){ > msgCtx=ctx; > System.out.println("init called..context:"+ctx); > } > > But, the init method is never called!! (I checked the service logs for > output, and I see other System outs). Due to that the service methods throw > a null pointer exception when trying to access msgCtx. > > I read somewhere that a MessageReceiver is supposed to call the init > method. WSDL2Java generates a custom message receiver for every service > (Axis Data binding). I looked inside my message receiver and it does not > seem to be making any calls before calling the service methods except this > one: > > //Inject the Message Context if it is asked for > org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider > (obj, msgContext.getOperationContext()); > > Any clues why init is not being called? > > Thanks, > > -Nirmit > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- David Illsley - IBM Web Services Development - 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]
[Axis2 1.0] MessageContext is null
Hi all, I have generated my implementation class from a WSDL and added the following method: private MessageContext msgCtx=null; public void init(MessageContext ctx){ msgCtx=ctx; System.out.println("init called..context:"+ctx); } But, the init method is never called!! (I checked the service logs for output, and I see other System outs). Due to that the service methods throw a null pointer exception when trying to access msgCtx. I read somewhere that a MessageReceiver is supposed to call the init method. WSDL2Java generates a custom message receiver for every service (Axis Data binding). I looked inside my message receiver and it does not seem to be making any calls before calling the service methods except this one: //Inject the Message Context if it is asked for org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider (obj, msgContext.getOperationContext()); Any clues why init is not being called? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2 1.0] parameters in services.xml
Hi all, I am trying to set a parameter in my services.xml file and get it in my service like this (all document/literal with ADB): SampleMember And in my service implementation class: private MessageContext msgCtx=null; public void init(MessageContext ctx) { msgCtx=ctx; System.out.println("init called..context:"+ctx); } public com.ibm.sobe.xsd.PingReturn ping(com.ibm.sobe.xsd.PingParam param0) { PingReturn pr=new PingReturn(); System.out.println("Param:"+msgCtx.getParameter("memberName")); . } It throws a NullPointerException when any operation on msgCtx is attempted, implying that msgCtx is null. I followed the advice give in this article: http://www.developer.com/open/print.php/10930_3589126_3 Is this the best way to do this? If so, what am I doing wrong? I really need a way to access statically set parameters in services.xml. Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2 1.0] log4j error messages
Hi all, I have a rather strange problem. I have deployed a service and I am trying to run the test case (generated from WSDL2Java). The only output I get is this: log4j:WARN No appenders could be found for logger (org.apache.axiom.om.impl.builder.StAXOMBuilder). log4j:WARN Please initialize the log4j system properly. No exceptions. However, I know all is not well as the SOAPMonitor does not see any messages. Also, the service should have made entries to a database and I have inserted print statements in my callback handler classes. I neither see the database effects nor the printouts. The server log files do not change after I run the client. I have log4j.properties and commons-logging.properties in WEB-INF\classes, is there anything specific they should have? Any clues? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2 1.0] WSDL2Java bug?
Hi, I am trying to generate test case from a WSDL operation taking no parameters (everything is document literal) . The input message for the operation is defined thus: The generated skeleton looks ok. However, the generated test cases look buggy as in the testStart method of the test case class it calls the stub.start with a param34 without first creating it. In fact, As the operation does not take any parameters, there is not need to create and pass any such parameters. And rightly, the start method in the stub class takes only a callback object as a parameter, no other parameter is required. So, just by removing the param34 from the call to stb.start solves the problem. Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2]Why cannot hot delete services?
Hi, I have the same problem and changing axis2.xml did not work!! Here is what I did: --changed the hotupdate parameter to true in %TOMCAT_HOME%\webapps\axis2\WEB-INF\conf\axis2.xml --restarted Tomcat --tried to delete an aar from services directory: it says cannot delete as another person or program may be using it. --I reopened axis2.xml and hotupdate was infact true. --there is nothing else accessing the aar except Tomcat Am I doing anything wrong? Thanks, -Nirmit "zhu jiang" <[EMAIL PROTECTED] .com> To axis-user@ws.apache.org 07/21/2006 04:11 cc AM Subject Re: [Axis2]Why cannot hot delete Please respond to services? [EMAIL PROTECTED] he.org Thanks a lot! 2006/7/21, Deepal Jayasinghe <[EMAIL PROTECTED]>: Hi Jiang; If you are in Linux then just delete the service from services directory. In windows you need to change axis2.xml , in axis2.xml there is a parameter called "*false*" you need to set the value of that parameter to true. zhu jiang wrote: > Hi All, > > How could I hot delete a service instead of rebooting the > servlet container? > > Thanks, > Jiang -- Thanks, Deepal ~Future is Open~ - 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 1.0] WSDL2Java: WSDL for operations without params
Hi William, it creates a getScheduledReports.java in data bindings and puts that as the parameter type of the method. I suspect it is impossible to have it generate an empty parameter list for methods in WSDL2Java. Maybe this is a bug. -Nirmit "William Ferguson" ons.com.au>cc 07/27/2006 07:20 Subject PMRE: [Axis2 1.0] WSDL2Java: WSDL for operations without params Please respond to [EMAIL PROTECTED] he.org Try William > -Original Message- > From: Nirmit Desai [mailto:[EMAIL PROTECTED] > Sent: Friday, 28 July 2006 3:40 AM > To: axis-user@ws.apache.org > Subject: [Axis2 1.0] WSDL2Java: WSDL for operations without params > > > Hi all, > > I was wondering what is the right way to write a WSDL for a > service operation taking no parameters. > > I tried this as the parameter type: > > > > > > > name="in"/> > > > > name="getMembershipInfo" > /> > > > > > But WSDL2Java generates a Void.Java and specifies Void as the > type of the operation parameter. > > How to write it such that the generated operation takes no parameters? > > Thanks, > > -Nirmit > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2 1.0] authoring WSDL
Hi Anne, thanks a lot for a detailed response. I am doing document/literal services in Axis2 ( I am assuming document and unwrapped are identical). I start by defining a WSDL, doing WSDL2Java, flesh out business logic and then deploy. But, creates a VoidType.java during codeGen for me in ADB as posted here: http://marc.theaimsgroup.com/?l=axis-user&m=115404237314689&w=2 For fire and forget, when you say there is no return message, you mean the operation output does not have to be specified? Thanks, -Nirmit "Anne Thomas Manes" <[EMAIL PROTECTED] To m>axis-user@ws.apache.org cc 07/28/2006 11:26 AMSubject Re: [Axis2 1.0] authoring WSDL Please respond to [EMAIL PROTECTED] he.org I've never seen such a document. I do recommend using a WSDL authoring tool, such as xmlspy, Sonic Stylus, or . Guidelines for operations with no argument (input or output) will be different depending on the message style, programming model, and message exchange pattern (MEP) you're using. Typically, I define a void type like this: You could also define it like this: but this definition doesn't work with the "wrapped" style (which requires the ). For unwrapped document style, you can define an input message with no argument like this: This will send an empty message, e.g., . You just need to make sure that the receiving SOAP engine knows how to dispatch the request, because the input message has no signature. (Typically used with the Message receiver in Axis 1. Axis2 lets you dispatch based on the Action paramater.) For wrapped document style, you must define an element which has the same name as the operation, whose type is void: And define the message as: For rpc style, you define a message with no parts: As for the return message... For a oneway MEP (fire and forget), there is no return message. For a request/response MEP: For unwrapped document or rpc style, you define a message with no parts: For wrapped document style, you must define a response element whose type is void: And define the message as: Hope this helps. Anne On 7/28/06, Nirmit Desai <[EMAIL PROTECTED]> wrote: > > Hi all, > > I was wondering if anyone has a pointer a good comprehensive WSDL authoring > guidelines. > > For now, I am wondering how to write WASDL for an operation that doesn't > take any arguments. Or for an operation that returns void. I want these to > be asynchronous. I would like to call the void returning operation with > fireAndForget(). > > Thanks, > > -Nirmit > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2 1.0] authoring WSDL
Hi all, I was wondering if anyone has a pointer a good comprehensive WSDL authoring guidelines. For now, I am wondering how to write WASDL for an operation that doesn't take any arguments. Or for an operation that returns void. I want these to be asynchronous. I would like to call the void returning operation with fireAndForget(). Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2 1.0] WSDL2Java: WSDL for operations without params
Hi all, I was wondering what is the right way to write a WSDL for a service operation taking no parameters. I tried this as the parameter type: But WSDL2Java generates a Void.Java and specifies Void as the type of the operation parameter. How to write it such that the generated operation takes no parameters? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2-1.0] WSDL2Java: NullPointerException
Anne, thanks a lot, it worked. Do you know of a tool that would catch such typos and warn me? I am currently using Eclipse WTP. Thanks, -Nirmit "Anne Thomas Manes" <[EMAIL PROTECTED] To m>axis-user@ws.apache.org cc 07/27/2006 12:44 PMSubject Re: [AXIS2-1.0] WSDL2Java: NullPointerException Please respond to [EMAIL PROTECTED] he.org You have a typo in the binding: --- Also, you must remove all the namespace attributes in your definitions. they should simply be: You use the namespace attribute only when using "rpc" style. Regards, Anne On 7/27/06, Nirmit Desai <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to generate code from the WSDL below, > It throws the following exception: > > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:94) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: org.apache.axis2.AxisFault: null; nested exception is: > java.lang.NullPointerException > at > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:87) > ... 2 more > Caused by: java.lang.NullPointerException > at > org.apache.axis2.description.WSDL2AxisServiceBuilder.createSchemaForPorttype(WSDL2AxisServiceBuilder.java:595) > at > org.apache.axis2.description.WSDL2AxisServiceBuilder.generateWrapperSchema(WSDL2AxisServiceBuilder.java:554) > at > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:228) > ... 3 more: > > === > > targetNamespace="http://sobe.ibm.com/ClubInfo"; > xmlns="http://schemas.xmlsoap.org/wsdl/"; > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; > xmlns:tns="http://sobe.ibm.com/ClubInfo"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:xsd1="http://sobe.ibm.com/xsd"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > http://sobe.ibm.com/xsd"; > xmlns="http://www.w3.org/2001/XMLSchema"; > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > elementFormDefault="qualified"> > > > > > "xsd:string"/> > > > > > > "xsd1:ContextStruct"/> > > > > > > > > > > > > > > > > > /> > "getMembershipInfoResponse"/> > > > "requestForMembership"/> > "requestForMembershipResponse"/> > > > type="tns:ClubInfoPortType"> > "http://schemas.xmlsoap.org/soap/http"/> > > /> > > http://sobe.ibm.com/xsd"; use= > "
[AXIS2-1.0] WSDL2Java: NullPointerException
Hi, I am trying to generate code from the WSDL below, It throws the following exception: Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:94) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:87) ... 2 more Caused by: java.lang.NullPointerException at org.apache.axis2.description.WSDL2AxisServiceBuilder.createSchemaForPorttype(WSDL2AxisServiceBuilder.java:595) at org.apache.axis2.description.WSDL2AxisServiceBuilder.generateWrapperSchema(WSDL2AxisServiceBuilder.java:554) at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:228) ... 3 more: === http://sobe.ibm.com/ClubInfo"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://sobe.ibm.com/ClubInfo"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsd1="http://sobe.ibm.com/xsd"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://sobe.ibm.com/xsd"; xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; elementFormDefault="qualified"> http://schemas.xmlsoap.org/soap/http"/> http://sobe.ibm.com/xsd"; use= "literal"/> http://sobe.ibm.com/xsd"; use= "literal"/> http://sobe.ibm.com/xsd"; use= "literal"/> http://sobe.ibm.com/xsd"; use= "literal"/> http://smokey.watson.ibm.com:8080/axis2/services/ClubInfo"/> any clues? Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis 1.4] hot deployment on Tomcat 5
Hi all, I am new to Axis and I have a few questions regarding the deployment model of Axis 1.4. I am aware that Axis2 allows hot deployment but I cannot use it for other pressing reasons. I deploy services with command line AdminClient and manually copy the implementation classes to the server. Is there a way to avoid restrating the whole Tomcat app server to have the new classes loaded? I am trying to allow dynamic deployment. I read in the docs that this is app server specific. I couldn't find any info regarding the capability of Tomcat 5 in this regard. Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2 1.0] newbie: operation params and return types
Hi All, I am new to Axis2 and wondering about the supported datatypes for method parameters and return types. All the samples use OMElement. If an implementation class were to be written with all OMElements, would the generated WSDL show the corresponding schemas? If not, how would a client know the format of the params and returned results by looking at a WSDL? If this is a limitation of OM, then what other options does one have? I need to be able to return a List/Array of custom Beans. How can I do that? Excuse me for this basic question, but I couldn't find a good pointer. Thanks, -Nirmit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]