Re: Problem with WSDL2Java Generated Code using JiBX bindings
Hi John, I'd suspect the problem here is in the use of a fault - this is something I hadn't tried out, and it looks like it's confusing things because of the special way Axis2 code generation handles the exception. I'm not even sure what's actually appropriate in this case - should your StandardError class actually be an exception, or should there be a generated exception class that has a StandardError field? In any case, you should enter this in Jira and attach the files. I'm hoping to get the code in place for unwrapping message elements using JiBX binding over the next week or so, and will try to get this fixed at the same time. Incidentally, you no longer need to supply default constructors in your data classes, you can instead use the add-constructors='true' attribute on your element (added as part of the JiBX 1.1 changes). Thanks for including "JiBX" in the subject line of your email. I don't try to follow all the Axis(1) messages on these lists, so unless the subject line mentions Axis2 or JiBX I'm probably not going to read it. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 John Grantham wrote: I wonder if anybody has encountered this issue, and might know if i am doing something wrong, or if this is a bug? I am using WSDL2Java, which works ok with regular ADB bindings. I want to use my own java value objects, however, and have been trying out JiBX. My jibx bindings test out ok, and the WSDL2Java code generation using jibx works somewhat, but it generates a MessageReceiverInOut class that has a compilation problem where it catches my custom exception and calls toOm(...). also, none of the /resources files are getting generated, including services.xml. intel mac Eclipse 3.2.0 java 1.5.0-06 jibx 1.1 Here are my schemas: http://www.w3.org/2001/XMLSchema"; targetNamespace="http://nextgen.ubc/schema/Dictionary"; xmlns:dict="http://nextgen.ubc/schema/Dictionary";> http://www.w3.org/2001/XMLSchema"; targetNamespace="http://nextgen.ubc/schema/StudentKey"; xmlns:key="http://nextgen.ubc/schema/StudentKey"; xmlns:dict="http://nextgen.ubc/schema/Dictionary";> http://nextgen.ubc/schema/Dictionary"; schemaLocation="Dictionary.xsd"/> http://www.w3.org/2001/XMLSchema"; targetNamespace="http://nextgen.ubc/schema/Address"; xmlns:addr="http://nextgen.ubc/schema/Address"; xmlns:dict="http://nextgen.ubc/schema/Dictionary";> http://nextgen.ubc/schema/Dictionary"; schemaLocation="Dictionary.xsd"/> maxOccurs="1"/> http://www.w3.org/2001/XMLSchema"; targetNamespace="http://nextgen.ubc/schema/StandardError"; xmlns:err="http://nextgen.ubc/schema/StandardError"; xmlns:dict="http://nextgen.ubc/schema/Dictionary";> http://nextgen.ubc/schema/Dictionary"; schemaLocation="Dictionary.xsd"/> -- This is my wsdl file: xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:key="http://nextgen.ubc/schema/StudentKey"; xmlns:addr="http://nextgen.ubc/schema/Address"; xmlns:err="http://nextgen.ubc/schema/StandardError"; xmlns:service="http://nextgen.ubc/wsdl/AddressRetrieval"; targetNamespace="http://nextgen.ubc/wsdl/AddressRetrieval";> http://nextgen.ubc/schema/StudentKey"; schemaLocation="../schemas/StudentKey.xsd"/> http://nextgen.ubc/schema/Address"; schemaLocation="../schemas/Address.xsd"/> http://nextgen.ubc/schema/StandardError"; schemaLocation="../schemas/StandardError.xsd"/> type="service:AddressRetrieval"> transport="http://schemas.xmlsoap.org/soap/http"; /> soapAction="http://nextgen.ubc/wsdl/operation/getAddress"; /> name="AddressRetrieval"> location="http://www4.students.ubc.ca:9180/axis2/services/AddressRetrievalService"; /> - These are my dto classes: package ubc.nextgen.dto; public class StudentKey { private String studentNumber = null; private StudentKey() {} // required by jibx compiler public StudentKey(Str
More about Java2WSDL generation
I suspect that I need to regenerate the WSDL file for my toy example and debug the WSDL2Java to find out what the issue is that I had been seeing. I had deleted an element that may need to be there for the WSDL2Java to work. Regards, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java2WSDL problem in Axis2 Std 1.0
Perhaps part of my issue with being able to generate a parsable WSDL file from Java2WSDL is the parameters I am using. I have attached the generated file, and these are the parameters that I am using in the generator. I also attached (again) the FoodDescription class for this toy example, as well as he interface that I supplied to the generator. (I am trying to generate a document/literal style web service they way I can with Axis2 0.93) This is how I invoked the Java2WSDL generation: Java2WSDLBuilder java2WsdlBuilder = new Java2WSDLBuilder(outputStream, javaInterfaceName, classLoader); String style = Java2WSDLConstants.DOCUMNT; String use = Java2WSDLConstants.LITERAL; java2WsdlBuilder.setLocationUri(project.getWsdlDir()); java2WsdlBuilder.setSchemaTargetNamespace("http://PointsCalculator.ve.gonzosystems.com/types";); java2WsdlBuilder.setSchemaTargetNamespacePrefix("types"); java2WsdlBuilder.setServiceName(project.getServiceName()); java2WsdlBuilder.setStyle(style); java2WsdlBuilder.setTargetNamespace("http://PointsCalculator.ve.gonzosystems.com/types";); java2WsdlBuilder.setTargetNamespacePrefix("ns"); java2WsdlBuilder.setUse(use); java2WsdlBuilder.setWsdlPrefix("ve"); java2WsdlBuilder.setServiceName(project.getServiceName()); java2WsdlBuilder.generateWSDL(); (I followed the namespace style in the userguide, although I don't understand what it is trying to do) Does anyone see what the problem is? -- Jim FoodDescription.java Description: Binary data IWWPointsCalculator.java Description: Binary data http://schemas.xmlsoap.org/wsdl/"; 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:ns1="http://PointsCalculator.ve.gonzosystems.com/types"; xmlns:ns="http://PointsCalculator.ve.gonzosystems.com/types"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; targetNamespace="http://PointsCalculator.ve.gonzosystems.com/types";> http://www.w3.org/2001/XMLSchema"; xmlns:stn_2="http://testexamples/xsd"; xmlns:types="http://PointsCalculator.ve.gonzosystems.com/types"; targetNamespace="http://PointsCalculator.ve.gonzosystems.com/types"; elementFormDefault="unqualified" attributeFormDefault="unqualified"> http://testexamples/xsd"; /> http://schemas.xmlsoap.org/soap/http"; /> http://PointsCalculator.ve.gonzosystems.com/types"; use="literal" /> http://PointsCalculator.ve.gonzosystems.com/types"; use="literal" /> http://schemas.xmlsoap.org/soap/http"; /> http://PointsCalculator.ve.gonzosystems.com/types"; use="literal" /> http://PointsCalculator.ve.gonzosystems.com/types"; use="literal" /> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ConnectException: Bad file descriptor
It often help, if you have a look in the StandardOut.log (I use Tomcat, but JBoss sure has one too). If this doesn't help, you can switch on RemoteDebugging an set an Exception Breakpoint. This will finally help you to find the cause. TargetInvocationException seems to be a StandardException in Axis2 ;) Good luck Bille > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 10.06.06 00:02:38 > An: > Betreff: RE: ConnectException: Bad file descriptor > Well, I still was not able to figure out why ant craps out, but I was > finally able to get the command line to work. > > My problem with running the command line was that JBoss was running with > java 1.4.2(which I was unaware of) and my war was compiled with 1.5. So > after restarting Jboss using 1.5 life was back to normal. > > The error I received when running the command line was only a > TargetInvocationException message with no details at all. > Is there a way to have axis be more descriptive in the fault messages? I > feel like it eats a lot of exception details that would be usefull in > figuring out problems. > > -Original Message- > From: Tom Bollwitt [mailto:[EMAIL PROTECTED] > Sent: Friday, June 09, 2006 3:49 PM > To: axis-user@ws.apache.org > Subject: ConnectException: Bad file descriptor > > I have been beating my head all day on this and cant figure it out. > > I have been building/testing my web service on my local box and > everything is fine. > > I then modify the server settings to build the web service for a test > box. > I deploy the WAR and can bring up the standard happyaxis.jsp and > index.jsp that show my web-app is running and can click the 'List' link > to display the list of services available. > > I then try to deploy my web service with ant(ran on the test box) and > get the following error. > I have tried using the actual host name as well, but get the same > result. > > Is there anyone who can point me in the right direction on this one? > > > [axis-admin] AxisFault > [axis-admin] faultCode: > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > [axis-admin] faultSubcode: > [axis-admin] faultString: java.net.ConnectException: Bad file > descriptor [axis-admin] faultActor: > [axis-admin] faultNode: > [axis-admin] faultDetail: > [axis-admin] > {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Bad > file descriptor > [axis-admin]at > java.net.PlainSocketImpl.connect(java.net.SocketAddress, int) > (/lib/ssa/libgcj.so.4.0.0) > [axis-admin]at java.net.Socket.connect(java.net.SocketAddress, int) > (/lib/ssa/libgcj.so.4.0.0) > [axis-admin]at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, > _Jv_Method, boolean, java.lang.Class[], jvalue, jvalue) > (/lib/ssa/libgcj.so.4.0.0) > [axis-admin]at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, > _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) > (/lib/ssa/libgcj.so.4.0.0) > [axis-admin]at java.lang.reflect.Method.invoke(java.lang.Object, > java.lang.Object[]) (/lib/ssa/libgcj.so.4.0.0) > [axis-admin]at > org.apache.axis.components.net.DefaultSocketFactory.create(java.lang.Str > ing, int, int) (Unknown Source) > [axis-admin]at > org.apache.axis.components.net.DefaultSocketFactory.create(java.lang.Str > ing, int, java.lang.StringBuffer, > org.apache.axis.components.net.BooleanHolder) (Unknown Source) > [axis-admin]at > org.apache.axis.transport.http.HTTPSender.getSocket(org.apache.axis.tran > sport.http.SocketHolder, org.apache.axis.MessageContext, > java.lang.String, java.lang.String, int, int, java.lang.StringBuffer, > org.apache.axis.components.net.BooleanHolder) (Unknown Source) > [axis-admin]at > org.apache.axis.transport.http.HTTPSender.writeToSocket(org.apache.axis. > transport.http.SocketHolder, org.apache.axis.MessageContext, > java.net.URL, java.lang.StringBuffer, java.lang.String, int, int, > org.apache.axis.components.net.BooleanHolder) (Unknown Source) > [axis-admin]at > org.apache.axis.transport.http.HTTPSender.invoke(org.apache.axis.Message > Context) (Unknown Source) > [axis-admin]at > org.apache.axis.strategies.InvocationStrategy.visit(org.apache.axis.Hand > ler, org.apache.axis.MessageContext) (Unknown Source) > [axis-admin]at > org.apache.axis.SimpleChain.doVisiting(org.apache.axis.MessageContext, > org.apache.axis.HandlerIterationStrategy) (Unknown Source) > [axis-admin]at > org.apache.axis.SimpleChain.invoke(org.apache.axis.MessageContext) > (Unknown Source) > [axis-admin]at > org.apache.axis.client.AxisClient.invoke(org.apache.axis.MessageContext) > (Unknown Source) > [axis-admin]at > org.apache.axis.client.Call.invokeEngine(org.apache.axis.MessageContext) > (Unknown Source) > [axis-admin]at org.apache.axis.client.Call.invoke() (Unknown Source) > [axis-admin]at > org.apache.axis.client.Call.invoke(java.lang.Object[]) (Unknown Source) > [axis-admin]at > org.apache.axis.client.AdminClient.proces
RE: ConnectException: Bad file descriptor
Well, I still was not able to figure out why ant craps out, but I was finally able to get the command line to work. My problem with running the command line was that JBoss was running with java 1.4.2(which I was unaware of) and my war was compiled with 1.5. So after restarting Jboss using 1.5 life was back to normal. The error I received when running the command line was only a TargetInvocationException message with no details at all. Is there a way to have axis be more descriptive in the fault messages? I feel like it eats a lot of exception details that would be usefull in figuring out problems. -Original Message- From: Tom Bollwitt [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 3:49 PM To: axis-user@ws.apache.org Subject: ConnectException: Bad file descriptor I have been beating my head all day on this and cant figure it out. I have been building/testing my web service on my local box and everything is fine. I then modify the server settings to build the web service for a test box. I deploy the WAR and can bring up the standard happyaxis.jsp and index.jsp that show my web-app is running and can click the 'List' link to display the list of services available. I then try to deploy my web service with ant(ran on the test box) and get the following error. I have tried using the actual host name as well, but get the same result. Is there anyone who can point me in the right direction on this one? [axis-admin] AxisFault [axis-admin] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException [axis-admin] faultSubcode: [axis-admin] faultString: java.net.ConnectException: Bad file descriptor [axis-admin] faultActor: [axis-admin] faultNode: [axis-admin] faultDetail: [axis-admin] {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Bad file descriptor [axis-admin]at java.net.PlainSocketImpl.connect(java.net.SocketAddress, int) (/lib/ssa/libgcj.so.4.0.0) [axis-admin]at java.net.Socket.connect(java.net.SocketAddress, int) (/lib/ssa/libgcj.so.4.0.0) [axis-admin]at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], jvalue, jvalue) (/lib/ssa/libgcj.so.4.0.0) [axis-admin]at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/lib/ssa/libgcj.so.4.0.0) [axis-admin]at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/lib/ssa/libgcj.so.4.0.0) [axis-admin]at org.apache.axis.components.net.DefaultSocketFactory.create(java.lang.Str ing, int, int) (Unknown Source) [axis-admin]at org.apache.axis.components.net.DefaultSocketFactory.create(java.lang.Str ing, int, java.lang.StringBuffer, org.apache.axis.components.net.BooleanHolder) (Unknown Source) [axis-admin]at org.apache.axis.transport.http.HTTPSender.getSocket(org.apache.axis.tran sport.http.SocketHolder, org.apache.axis.MessageContext, java.lang.String, java.lang.String, int, int, java.lang.StringBuffer, org.apache.axis.components.net.BooleanHolder) (Unknown Source) [axis-admin]at org.apache.axis.transport.http.HTTPSender.writeToSocket(org.apache.axis. transport.http.SocketHolder, org.apache.axis.MessageContext, java.net.URL, java.lang.StringBuffer, java.lang.String, int, int, org.apache.axis.components.net.BooleanHolder) (Unknown Source) [axis-admin]at org.apache.axis.transport.http.HTTPSender.invoke(org.apache.axis.Message Context) (Unknown Source) [axis-admin]at org.apache.axis.strategies.InvocationStrategy.visit(org.apache.axis.Hand ler, org.apache.axis.MessageContext) (Unknown Source) [axis-admin]at org.apache.axis.SimpleChain.doVisiting(org.apache.axis.MessageContext, org.apache.axis.HandlerIterationStrategy) (Unknown Source) [axis-admin]at org.apache.axis.SimpleChain.invoke(org.apache.axis.MessageContext) (Unknown Source) [axis-admin]at org.apache.axis.client.AxisClient.invoke(org.apache.axis.MessageContext) (Unknown Source) [axis-admin]at org.apache.axis.client.Call.invokeEngine(org.apache.axis.MessageContext) (Unknown Source) [axis-admin]at org.apache.axis.client.Call.invoke() (Unknown Source) [axis-admin]at org.apache.axis.client.Call.invoke(java.lang.Object[]) (Unknown Source) [axis-admin]at org.apache.axis.client.AdminClient.process(org.apache.axis.utils.Options , java.io.InputStream) (Unknown Source) [axis-admin]at org.apache.axis.client.AdminClient.process(java.lang.String) (Unknown Source) [axis-admin]at org.apache.axis.client.AdminClient.process(org.apache.axis.utils.Options , java.lang.String) (Unknown Source) [axis-admin]at org.apache.axis.client.AdminClient.process(java.lang.String[]) (Unknown Source) [axis-admin]at org.apache.axis.tools.ant.axis.AdminClientTask.executeInCurrentVM(java.l ang.String[]) (Unknown Source) [axis-admin]at org.apache.axis.tools.ant.axis.AdminClientTask.execute() (Unknown Source) [axis-admin]at org.apache.tools.ant.Task.perform() (/usr/lib/lib-org-ap
RE: org.w3c.Documnet <-> SOAPEnvelope
I encountered this same issue, and used the individual elements produced by WSS4J to append into the axis message. Not sure if this is the best approach (i am only prototyping), but this is what I did: // Get soap message and convert to a document Message message = MessageContext.getCurrentContext().getResponseMessage(); Document messageDoc = message.getSOAPEnvelope().getAsDocument(); // WSS4J - build SAML assertion SAMLIssuer saml = SAMLIssuerFactory.getInstance("saml.properties"); saml.setInstanceDoc(messageDoc); saml.setUserCrypto(crypto); saml.setUsername("mykey"); SAMLAssertion assertion = saml.newAssertion(); // WSS4J - build wsse security header WSSecHeader wsHeader = new WSSecHeader(); wsHeader.setMustUnderstand(true); // Get the wsse security header as an element and append the assertion Element wsHeader = shead.insertSecurityHeader(messageDoc); wsHeader.appendChild(assertion.toDOM(messageDoc)); // append the wsse header and saml token into the soap response message message.getSOAPHeader().appendChild(wsHeader); Raul Flores From: Cristian Opincaru [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 4:14 AMTo: axis-user@ws.apache.org; wss4j-dev@ws.apache.orgSubject: org.w3c.Documnet <-> SOAPEnvelope Hi,I want to use WSS4J to do some encryption / decryption with SOAP and for this I have to convert the SOPA message in DOM (the WSS4J API does all processing with Document objects). After using the WSS4J routines, I must convert the message from Document back to SOAPEnvelope, and this is where my problems start. I googled a bit, and ended up with two ways of doing this. This one is:public static SOAPMessage toSOAPMessage(Document doc) throws Exception { Canonicalizer c14n = Canonicalizer.getInstance (Canonicalizer.ALGO_ID_C14N_WITH_COMMENTS); byte[] canonicalMessage = c14n.canonicalizeSubtree(doc); ByteArrayInputStream in = new ByteArrayInputStream(canonicalMessage); factory = org.apache.axis.soap.MessageFactoryImpl.newInstance (); return (SOAPMessage) factory.createMessage(null, in); }This is where the AXIS classes are used (I guess).The second one is: public static SOAPMessage toSOAPMessage(Document doc) throws Exception { MessageFactory factory = MessageFactory.newInstance(); SOAPMessage m = (SOAPMessage) factory.createMessage(); m.getSOAPPart().setContent(new DOMSource(doc)); return m; }This is where the SUN implementetion is used (aganin, not really sure).Anyway, both seem to work in some cases, while in others I get some wierd SAX Exceptions (like documents must start and end with the same entity). Since I assume this is a pretty standard thingm, can anyone indicate me how's the right way to do it? Also I think there might be a problem because of the libraries that I'm using (perhaps I'm using the wrong versions / or simply mixing SOAP implementations). Can anyone tell me what libraries (and versions) I should use in order to avoid problems? Thanks!Cristian-- Cristian OPINCARUUniversity of the Federal Armed Forces Munichhttp://www.unibw.de/cristian.opincaru
Re: (axis2) Creating an OperationClient from a ServiceClient
Hi Jeff, you need an instance of the ServiceClient, like this: EndpointReference targetEpr = new EndpointReference("http://localhost:8080/axis2/services/LDAPQueryService";); Options options = new Options(); options.setTo(targetEpr); ServiceClient client = new ServiceClient(); client.setOptions(options); then you can access the OperationClient like this: QName qn = new QName("yourNamespaceURI", "yourMethodName","namespacePrefix"); OperationClient oc = client.createClient(qn); For the QualifiedName have a look at this: http://java.sun.com/webservices/docs/1.5/api/javax/xml/namespace/QName.html There are three ways to instantiate QName. Keep in mind that the namespace only specifies within what context a variable is valid / unique. How you name this namespace AFAIK irrelevant. For the ServiceCLient also the userguide of the axis2-homepage may be helpful. I didn't use OperationClient, but have a try, maybe it works. HTH Bille > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 09.06.06 22:04:36 > An: > Betreff: (axis2) Creating an OperationClient from a ServiceClient > Hi All, > > I am trying to use an OperationClient in Axis2 v1.0 so that I can access > the SOAP Header in my client software. Deepal suggested I create I use > .createClient(QName), but I am at a loss as > to what QName to use. What do I provide to createClient to successfully > instantiate an OperationClient? > > Thank you, > > Jeff > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=0071 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to plugg your own XML binding to axis2[axiom]
Hi, I have an API where my bussines objects has methods (Element) toXML() and initFromXML( Element element (JDOM) how can I plugg this to the AXIOM model of AXIS2 and to the WSDL2Java code generation ?. Thanks in advance !! -Marcel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ConnectException: Bad file descriptor
I have been beating my head all day on this and cant figure it out. I have been building/testing my web service on my local box and everything is fine. I then modify the server settings to build the web service for a test box. I deploy the WAR and can bring up the standard happyaxis.jsp and index.jsp that show my web-app is running and can click the 'List' link to display the list of services available. I then try to deploy my web service with ant(ran on the test box) and get the following error. I have tried using the actual host name as well, but get the same result. Is there anyone who can point me in the right direction on this one? [axis-admin] AxisFault [axis-admin] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException [axis-admin] faultSubcode: [axis-admin] faultString: java.net.ConnectException: Bad file descriptor [axis-admin] faultActor: [axis-admin] faultNode: [axis-admin] faultDetail: [axis-admin] {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Bad file descriptor [axis-admin]at java.net.PlainSocketImpl.connect(java.net.SocketAddress, int) (/lib/ssa/libgcj.so.4.0.0) [axis-admin]at java.net.Socket.connect(java.net.SocketAddress, int) (/lib/ssa/libgcj.so.4.0.0) [axis-admin]at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], jvalue, jvalue) (/lib/ssa/libgcj.so.4.0.0) [axis-admin]at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/lib/ssa/libgcj.so.4.0.0) [axis-admin]at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/lib/ssa/libgcj.so.4.0.0) [axis-admin]at org.apache.axis.components.net.DefaultSocketFactory.create(java.lang.Str ing, int, int) (Unknown Source) [axis-admin]at org.apache.axis.components.net.DefaultSocketFactory.create(java.lang.Str ing, int, java.lang.StringBuffer, org.apache.axis.components.net.BooleanHolder) (Unknown Source) [axis-admin]at org.apache.axis.transport.http.HTTPSender.getSocket(org.apache.axis.tran sport.http.SocketHolder, org.apache.axis.MessageContext, java.lang.String, java.lang.String, int, int, java.lang.StringBuffer, org.apache.axis.components.net.BooleanHolder) (Unknown Source) [axis-admin]at org.apache.axis.transport.http.HTTPSender.writeToSocket(org.apache.axis. transport.http.SocketHolder, org.apache.axis.MessageContext, java.net.URL, java.lang.StringBuffer, java.lang.String, int, int, org.apache.axis.components.net.BooleanHolder) (Unknown Source) [axis-admin]at org.apache.axis.transport.http.HTTPSender.invoke(org.apache.axis.Message Context) (Unknown Source) [axis-admin]at org.apache.axis.strategies.InvocationStrategy.visit(org.apache.axis.Hand ler, org.apache.axis.MessageContext) (Unknown Source) [axis-admin]at org.apache.axis.SimpleChain.doVisiting(org.apache.axis.MessageContext, org.apache.axis.HandlerIterationStrategy) (Unknown Source) [axis-admin]at org.apache.axis.SimpleChain.invoke(org.apache.axis.MessageContext) (Unknown Source) [axis-admin]at org.apache.axis.client.AxisClient.invoke(org.apache.axis.MessageContext) (Unknown Source) [axis-admin]at org.apache.axis.client.Call.invokeEngine(org.apache.axis.MessageContext) (Unknown Source) [axis-admin]at org.apache.axis.client.Call.invoke() (Unknown Source) [axis-admin]at org.apache.axis.client.Call.invoke(java.lang.Object[]) (Unknown Source) [axis-admin]at org.apache.axis.client.AdminClient.process(org.apache.axis.utils.Options , java.io.InputStream) (Unknown Source) [axis-admin]at org.apache.axis.client.AdminClient.process(java.lang.String) (Unknown Source) [axis-admin]at org.apache.axis.client.AdminClient.process(org.apache.axis.utils.Options , java.lang.String) (Unknown Source) [axis-admin]at org.apache.axis.client.AdminClient.process(java.lang.String[]) (Unknown Source) [axis-admin]at org.apache.axis.tools.ant.axis.AdminClientTask.executeInCurrentVM(java.l ang.String[]) (Unknown Source) [axis-admin]at org.apache.axis.tools.ant.axis.AdminClientTask.execute() (Unknown Source) [axis-admin]at org.apache.tools.ant.Task.perform() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) [axis-admin]at org.apache.tools.ant.Target.execute() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) [axis-admin]at org.apache.tools.ant.Target.performTasks() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) [axis-admin]at org.apache.tools.ant.Project.executeTarget(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) [axis-admin]at org.apache.tools.ant.Project.executeTargets(java.util.Vector) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) [axis-admin]at org.apache.tools.ant.Main.runBuild(java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) [axis-admin]at org.apache.tools.ant.Main.start(java.lang.String[], java.util.Properties, java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) [axis-admin]at org.ap
(axis2) Creating an OperationClient from a ServiceClient
Hi All, I am trying to use an OperationClient in Axis2 v1.0 so that I can access the SOAP Header in my client software. Deepal suggested I create I use .createClient(QName), but I am at a loss as to what QName to use. What do I provide to createClient to successfully instantiate an OperationClient? Thank you, Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Weird NullPointerException at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream
Hi all, I have probably a really stupid question but I've been pulling my hair out (not much left as you can imagine) with this one. I have a web service that returns a list of reports available on the system. It's actually very simple at the moment. When called, it opens up a xml file on the filesystem, then dumps the xml file over the wire. Can't be any simpler. It has actually been working fine all day yesterday. This morning when I tried it again, it stopped working and started giving this error. I added 1 jar file to the lib dir since last night, but even if I removed the new jar, it still give me this same exception. The interesting thing is that my other services work just fine. For example, I have one service that takes a name of the report and outputs the result. That continues to work. Another is the login service, that works as well. I actually have a different tomcat app that have this same ReportList service that's I've not touched in a few days. It was working fine before as well. However, calling this same ReportList service is now giving the same error!! And these happens for two different tomcat apps. So the ReportList on two different tomcat apps seems to fail but the other services work just fine. I have not modified the service at all since the last time it was working. Does anyone have an idea what might be causing this? any help is much appreciated.. Jian --- java.lang.NullPointerException org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutp utStream(CommonsHTTPTransportSender.java:256) org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke (CommonsHTTPTransportSender.java:210) org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589) org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive (AbstractInOutSyncMessageReceiver.java:43) org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine (RESTUtil.java:150) org.apache.axis2.transport.http.util.RESTUtil.processGetRequest (RESTUtil.java:138) org.apache.axis2.transport.http.AxisRESTServlet.doGet (AxisRESTServlet.java:36) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) -- Jian Zhen <[EMAIL PROTECTED]> http://www.zhen.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error while executing java2wsdl
Hi I'm getting the following error when I executed java2WSDL.I've included all necessary libraries in classpath.Pls help me to resolve this. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ axis/wsdl/Java2WSDL Command is executed is java org.apache.axis.wsdl.Java2WSDL -o fi.wsdl -l "http:// localhost:8080/axis/services/application" -n urn: application - p"application" urn: application application. Application Regards, Kavitha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.w3c.Documnet <-> SOAPEnvelope
Using saaj.jar that is distributed with all axis versions since (at least) 1.2, the javax.xml.soap.SoapEnvelope class implements SOAPElement which extends org.w3c.dom.Element. It's not clear that any conversion is necessary. I believe older versions of the SAAJ classes (conforming to an older version of the SOAP with Attachements spec) require conversion to Dom. Jeff On 6/9/06, Cristian Opincaru <[EMAIL PROTECTED]> wrote: Hi, I want to use WSS4J to do some encryption / decryption with SOAP and for this I have to convert the SOPA message in DOM (the WSS4J API does all processing with Document objects). After using the WSS4J routines, I must convert the message from Document back to SOAPEnvelope, and this is where my problems start. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Polymorphism in SOAP/Axis
Title: Message I tried searching and found few dated messages in the list but no definitive answer. So, basically I have two questions: 1) Is polymorphism defined as part of the SOAP specification? Namely, if I have an operation that returns Shape but it in fact returns a Square (boy have you seen this example once or twice before, right?), does SOAP specification have anything in it that says "yes, this should be supported", "no, it's invalid", "up to the vendor"? 2) Does Axis support it? Basically, it seems that if you use Call.setReturnType (or class or whatever) it overrides the type specified by the server, so if I say .setReturnClass(Shape.class) I will get Shape instantiated, even though the service returns type ns1:Square (and square is known). Furthermore, if I say .setReturnClass(List.class) (List is another class of mine, not the one from Collections) I do in fact get a List object back. Server was still returning Square but List object was generated. I am still in the middle of my experiments but if somebody has a "ready to go" answer it would be greatly appreciated. I am using Axis 1.3. Note: I am not sending WSDL and other additional information on purpose. At the point I need a basic answer, "yes, axis supports this" or "no, you are not in Kansas". Thank you, -Michael ___ Words can never express what words can never express -- /usr/bin/fortune
Re: Help With JMS configuration
Maybe this will help? http://fisheye.jboss.com/viewrep/~raw,r=1.4/JBoss/jboss-jms/docs/examples/ejb3mdb/README.html 2. I get "javax.jms.JMSSecurityException: User null is NOT authenticated" You probably didn't install JBoss Messaging correctly. A fresh JBoss Messaging installation requires changes in the security configuration of a default JBoss instance, specifically a properly configured "messaging" security domain. Follow the instructions from the "Installation" paragraph of the release documentation. HTH, Robert http://www.braziloutsource.com/ On 6/9/06, Lakshmi Chaparala < [EMAIL PROTECTED] > wrote: Hi, Can anybody tell me if the following JMS configuration is correct for JBOSS 4.03 SP1, using axis2.1.0 or am I missing something? topic/emailTopic org.jnp.interfaces.NamingContextFactory tcp://localhost:1099 When I send a JMS payload to the server I get, javax.jms.JMSSecurityException: User: is NOT authenticated at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:215) at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:51) at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:734) at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:287) at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:204) at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:369) at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java :743) at java.lang.Thread.run(Thread.java:595) 08:02:05,468 ERROR [JMSSender] Unable to connect org.apache.axis2.AxisFault: cannotConnect; nested exception is: javax.jms.JMSSecurityException: User: is NOT authenticated at org.apache.axis2.transport.jms.JMSConnectorManager.getConnector(JMSConnectorManager.java:273) at org.apache.axis2.transport.jms.JMSSender.setupTransport(JMSSender.java:374) at org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.java:233) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399) Thanks Lakshmi
Re: [AXIS2] encryption issues [Interesting findings]- bug registered
done AXIS2-811 - let me know if I cna help in any other way to get this resolved as quickly as possible. thanks Anamitra "Ruchith Fernando" axis-user@ws.apache.org cc 06/09/2006 04:17 AMSubject Re: [AXIS2] encryption issues [Interesting findings] Please respond to [EMAIL PROTECTED] he.org Hi Anamitra, Thanks again for trying this. This confirms that Axis2 services and modules doesn't load the libs that are available within their "lib" directories in weblogic 9.1 and JDK 1.5 Can you please file a JIRA bug so that we can tack this problem and get it fixed. Thanks, Ruchith On 6/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > ok done the test > 1>dropped the file [the zip file that u gave me] and renamed it to jar in > my repository/services folder > 2>started the weblogic 9.1 server [with the bcjar file no more in the > system classpath] > 3>got this error > ogic Server with Java HotSpot(TM) Client VM Version 1.5.0_04-b05 from Sun > - Deploying module : soapmonitor-1.0 > - Invalid service SimpleService.jar due to > java.lang.ExceptionInInitializerErro > r > at javax.crypto.Cipher.getInstance(DashoA12275) > at SimpleService.(SimpleService.java:24) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:242) > at - 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]
Help With JMS configuration
Hi, Can anybody tell me if the following JMS configuration is correct for JBOSS 4.03 SP1, using axis2.1.0 or am I missing something? topic/emailTopic org.jnp.interfaces.NamingContextFactory tcp://localhost:1099 When I send a JMS payload to the server I get, javax.jms.JMSSecurityException: User: is NOT authenticated at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:215) at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:51) at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:734) at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:287) at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:204) at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:369) at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) at java.lang.Thread.run(Thread.java:595) 08:02:05,468 ERROR [JMSSender] Unable to connect org.apache.axis2.AxisFault: cannotConnect; nested exception is: javax.jms.JMSSecurityException: User: is NOT authenticated at org.apache.axis2.transport.jms.JMSConnectorManager.getConnector(JMSConnectorManager.java:273) at org.apache.axis2.transport.jms.JMSSender.setupTransport(JMSSender.java:374) at org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.java:233) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399) Thanks Lakshmi
[AXIS2] WS Addressing - ReplyTo example
Hi All, Can any one have any example to call a service on HTTP and get response back via mail using the ReplyTo node in WS-Addressing. Thanks, Dharmendra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[AXIS2] Intermediaries using WS Addressing.
Hi All, Can anyone have example to implement intermediaries using the WS-Addressing specification. Thanking in anticipation, Dharmendra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I am trying to debug this issue with WSDL2Java (probably caused by inexperience with Axis2 Std 1.0)
I'm getting validation warnings on the wsdl, and it looks like you're also referencing an external schema which my validator can't find. I'm still running .93 in production for one project, but I have noticed that WSDL2Java is more strict at catching errors now. Another tip would be to run the nightlies - several bugs have been fixed in the xmlbeans part of axis2 since the 1.0 release. http://people.apache.org/dist/axis2/nightly/ You'll need the axis2.war as well. HTH, Robert http://www.braziloutsource.com/On 6/8/06, Jim Bender <[EMAIL PROTECTED] > wrote:I had been running the WSDL2Java generator from Leafcutter, using the Java Ant task.I switched to building an arg array and running the main(String[])programmatically,so I can see what is happening. I have been able to make some progress thatway, along with trying to get a closer reading of the documentation. I am extremely experienced with Axis2 0.93, but have only been usingAxis2 Std 1.0for a couple of days. I have been doing a great deal of programmatically runningthe Java2WSDL and WSDL2Java generators in 0.93 and want to do the samething with 1.0.I am attempting to generate a document/literal style web service the sameway that I do with Axis2 0.93, and am working through the changes that weremade between the two. We had stuck with 0.93 because it seemed quitestable, for what we were doing.For my toy example, I am now getting aInvocationTargetException/runtime error from the CodeGenerationEnginein the generate() method:org.apache.xmlbeans.XmlException : error: src-resolve.a: Could not findtype 'FoodDescription@http:///xsd'. Do you mean to refer to theelement named FoodDescription@ http://PointsCalculator.ve.recursionsw.com/types?I am not sure that cause of that, right now.This is my arg array for the WSDL2Java.main(String[]) method:[-sn, PointsCalculator, -uri,c:/Java/projects2/axis2- std-1.0testbed\build\wsdl\WWPointsCalculator.wsdl,-d, xmlbeans, -s, -ss, -sd, -o,c:/Java/projects2/axis2-std-1.0testbed\build\output, -p,testexamples.types]I have attached my WSDL file, on the off chance that someone would want to look at it.I already have attached the interface file to an earlier mail that wasused for theJava2WSDL generation (which produced a duplicate complex typedefinition that I removed by hand-editing the file) Regards,Jim-To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: URGENT !! error accessing webservices via SSL
HI, Any suggestions ? regards, From: "ip vp" <[EMAIL PROTECTED]> Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: URGENT !! error accessing webservices via SSL Date: Thu, 08 Jun 2006 21:49:35 + Hi all! First of all, I am a newbie in webservices. :-) I have a remote webservice to acess from java and get a message. I do not need to send any parameters, only get a String. I have de client certificate ( .pfx). I got the BouncyClaster lib. PLEASE, take a llok ate the code and the exception stack trace below and let me know where I am doing the wrong thing JAVA CODE ### import java.security.Security; import java.util.List; import javax.xml.namespace.QName; import org.apache.axis.client.Call; import org.apache.axis.client.Service; public class WSCall { public static void main(String[] args) { Service service = new Service(); Call call; List rtnValues; try { Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); System.setProperty("javax.net.ssl.keyStore", "D:\\MY_CERTIFICATE.PFX"); System.setProperty("javax.net.ssl.keyStorePassword", ""); System.setProperty("javax.net.ssl.keyStoreType", "PKCS12"); System.setProperty("javax.net.ssl.trustStore", "D:\\certificadoACRaiz.cer"); System.setProperty("javax.net.ssl.trustStorePassword", ""); System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol"); call = (Call)service.createCall(); call.setTargetEndpointAddress(new java.net.URL("https://WSURL";)); call.setOperationName(new QName("http://URL";, "MYOPERATIONNAME")); call.setReturnType(org.apache.axis.Constants.XSD_STRING); call.addParameter("testParam", org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN); call.invoke(new Object[] { "" }); rtnValues = call.getOutputValues(); System.out.println("WS return : " + rtnValues.get(0).toString()); } catch (Exception ex) { System.out.println(ex.getCause()); System.out.println(ex.getMessage()); ex.printStackTrace(); } // end catch } } D:\>javac WSCall.java D:\>java WSCall java.net.SocketException: Default SSL context init failed: / by zero ; nested exception is: java.net.SocketException: Default SSL context init failed: / by zero AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.SocketException: Default SSL context init failed: / by zero faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Default SSL context init failed: at javax.net.ssl.DefaultSSLSocketFactory.createSocket(DashoA12275) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at WSCall.main(WSCall.java:32) {http://xml.apache.org/axis/}hostname:BESAO000667 java.net.SocketException: Default SSL context init failed: / by zero at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at WSCall.main(WSCall.java:32) Caused by: java.net.SocketException: Default SSL context init
Re: Axis2: Not Implemented Exception
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Xinjun, Default http transport version set to Http 1.1. Httpcleint support proxy support via Http version 1.0. in your client's options set the following property, options.setProperty(MessageContextConstants.HTTP_PROTOCOL_VERSION,HTTPConstants.HEADER_PROTOCOL_10); Thank you Saminda Xinjun Chen wrote: > Hi > > I am trying to set proxy for an Axis2 client. The code snippet is as > follows: > >HttpTransportProperties htp = new HttpTransportProperties(); >httpProxyProperties = htp.new ProxyProperties(); >httpProxyProperties.setProxyName(httpProxyHost); >httpProxyProperties.setProxyPort(Integer.parseInt(httpProxyPort)); >httpProxyProperties.setUserName(httpProxyUsername); >httpProxyProperties.setPassWord (httpProxyPassword); >httpProxyProperties.setDomain(httpProxyDomain); > >MessageContext mc = new MessageContext(); >mc.setServiceContext(serviceContext); >mc.setEnvelope(request); >mc.setTo(toEPR); >mc.setSoapAction(soapAction); > >OperationClient mepClient = outOnlyOperation.createClient( > serviceContext, options); >mepClient.addMessageContext(mc); > >// TODO: Add the call back handler >mepClient.execute(true); > > Where the httpProxyUsername, httpProxyPassword, and httpProxyDomain are > "anonymous". > > When i ran the client, I get the following exception. > > _ > > java.rmi.RemoteException > > _: EJB Exception:; nested exception is: > > _java.rmi.RemoteException_: Axis2 transport error : Not Implemented; > nested exception is: > > org.apache.axis2.AxisFault: Axis2 _transport_ error : Not Implemented; > nested exception is: > > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; > nested exception is: > > Caused by: > > _java.rmi.RemoteException_: Axis2 transport error : Not Implemented; > nested exception is: > > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; > nested exception is: > > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; > nested exception is: > > I have tried to find other log messages but there is no other error > message. > Could you give me some idea why this error happens and what I have > missed out? > > > > > > Regards, > Xinjun -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEiVNPYmklbLuW6wYRAmyGAJ9k8RRx8hjBs1Q/rZwtiaIQ7QpqMwCbBm3+ 1kHVBgAq3vs+gc5Zn1lrYFk= =XlQO -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.w3c.Documnet <-> SOAPEnvelope
Hi,I want to use WSS4J to do some encryption / decryption with SOAP and for this I have to convert the SOPA message in DOM (the WSS4J API does all processing with Document objects). After using the WSS4J routines, I must convert the message from Document back to SOAPEnvelope, and this is where my problems start. I googled a bit, and ended up with two ways of doing this. This one is:public static SOAPMessage toSOAPMessage(Document doc) throws Exception { Canonicalizer c14n = Canonicalizer.getInstance (Canonicalizer.ALGO_ID_C14N_WITH_COMMENTS); byte[] canonicalMessage = c14n.canonicalizeSubtree(doc); ByteArrayInputStream in = new ByteArrayInputStream(canonicalMessage); factory = org.apache.axis.soap.MessageFactoryImpl.newInstance (); return (SOAPMessage) factory.createMessage(null, in); }This is where the AXIS classes are used (I guess).The second one is: public static SOAPMessage toSOAPMessage(Document doc) throws Exception { MessageFactory factory = MessageFactory.newInstance(); SOAPMessage m = (SOAPMessage) factory.createMessage(); m.getSOAPPart().setContent(new DOMSource(doc)); return m; }This is where the SUN implementetion is used (aganin, not really sure).Anyway, both seem to work in some cases, while in others I get some wierd SAX Exceptions (like documents must start and end with the same entity). Since I assume this is a pretty standard thingm, can anyone indicate me how's the right way to do it? Also I think there might be a problem because of the libraries that I'm using (perhaps I'm using the wrong versions / or simply mixing SOAP implementations). Can anyone tell me what libraries (and versions) I should use in order to avoid problems? Thanks!Cristian-- Cristian OPINCARUUniversity of the Federal Armed Forces Munichhttp://www.unibw.de/cristian.opincaru
Re: Axis2 http proxy setting [Axis2 transport error : Not Implemented]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Do you happen to try this with HTTP 1.1. If it the case httpclient doesn't support it. Please try with HTTP 1.0. What you have to do is, in you client side axi2.xml, change the following lines, ... HTTP/1.0 false ... Thank you Saminda Xinjun Chen wrote: > Hi, > I get some problem with the proxy setting in Axis2. Even though I set > the HttpTransportProperties and ProxyProperties, the Axis2 reports > transport error. The code snippet is as follows: > > HttpTransportProperties htp = new HttpTransportProperties(); > ProxyProperties httpProxyProperties = htp.new ProxyProperties(); > httpProxyProperties.setProxyName(httpProxyHost); > httpProxyProperties.setProxyPort(Integer.parseInt(httpProxyPort)); > httpProxyProperties.setUserName(httpProxyUsername); > httpProxyProperties.setPassWord (httpProxyPassword); > httpProxyProperties.setDomain(httpProxyDomain); > Options options = new Options(); > > options.setProperty(HTTPConstants.PROXY, httpProxyProperties); > > options.setTransportInProtocol(Constants.TRANSPORT_HTTP); > > MessageContext mc = new MessageContext(); > mc.setServiceContext(serviceContext); > mc.setEnvelope(request); > mc.setTo(toEPR); > mc.setSoapAction(soapAction); > > OperationClient mepClient = outOnlyOperation.createClient( > serviceContext, options); > mepClient.addMessageContext(mc); > > // TODO: Add the call back handler > mepClient.execute(true); > > Where the httpProxyUsername, httpProxyPassword, and httpProxyDomain > are "anonymous". > > When i ran the client, I get the following exception. > > java.rmi.RemoteException: EJB Exception:; nested exception is: > java.rmi.RemoteException: Axis2 transport error : Not Implemented; > nested exception is: > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; > nested exception is: > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; > nested exception is: > Caused by: java.rmi.RemoteException: Axis2 transport error : Not > Implemented; nested exception is: > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; > nested exception is: > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; > nested exception is: > ... > > > The error code is 501 which is "Not Implemented". What does it mean? > The end service "Not Implemented" or the proxy "Not Implemented" > something? Could anyone help me to identify the problem? > Saminda, I remember you have mentioned proxy setting when you > answering somebody's question on Basic Authentication. Could you help > me on the proxy issue? It has dragged me a few days. > > > > Regards, > Xinjun > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEiTtpYmklbLuW6wYRAgqNAKC522BnCxtJQxj3tkvWqUy8UN9zKwCeI5YV 6CanYMwlEyRhpldydwzKtI4= =VAiY -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 http proxy setting [Axis2 transport error : Not Implemented]
Hi, I get some problem with the proxy setting in Axis2. Even though I set the HttpTransportProperties and ProxyProperties, the Axis2 reports transport error. The code snippet is as follows: HttpTransportProperties htp = new HttpTransportProperties(); ProxyProperties httpProxyProperties = htp.new ProxyProperties(); httpProxyProperties.setProxyName(httpProxyHost); httpProxyProperties.setProxyPort(Integer.parseInt(httpProxyPort)); httpProxyProperties.setUserName(httpProxyUsername); httpProxyProperties.setPassWord (httpProxyPassword); httpProxyProperties.setDomain(httpProxyDomain); Options options = new Options(); options.setProperty(HTTPConstants.PROXY, httpProxyProperties); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); MessageContext mc = new MessageContext(); mc.setServiceContext(serviceContext); mc.setEnvelope(request); mc.setTo(toEPR); mc.setSoapAction(soapAction); OperationClient mepClient = outOnlyOperation.createClient( serviceContext, options); mepClient.addMessageContext(mc); // TODO: Add the call back handler mepClient.execute(true); Where the httpProxyUsername, httpProxyPassword, and httpProxyDomain are "anonymous". When i ran the client, I get the following exception. java.rmi.RemoteException: EJB Exception:; nested exception is: java.rmi.RemoteException: Axis2 transport error : Not Implemented; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested exception is: Caused by: java.rmi.RemoteException: Axis2 transport error : Not Implemented; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested exception is: ... The error code is 501 which is "Not Implemented". What does it mean? The end service "Not Implemented" or the proxy "Not Implemented" something? Could anyone help me to identify the problem? Saminda, I remember you have mentioned proxy setting when you answering somebody's question on Basic Authentication. Could you help me on the proxy issue? It has dragged me a few days. Regards, Xinjun - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] encryption issues [Interesting findings]
Hi Anamitra, Thanks again for trying this. This confirms that Axis2 services and modules doesn't load the libs that are available within their "lib" directories in weblogic 9.1 and JDK 1.5 Can you please file a JIRA bug so that we can tack this problem and get it fixed. Thanks, Ruchith On 6/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ok done the test 1>dropped the file [the zip file that u gave me] and renamed it to jar in my repository/services folder 2>started the weblogic 9.1 server [with the bcjar file no more in the system classpath] 3>got this error ogic Server with Java HotSpot(TM) Client VM Version 1.5.0_04-b05 from Sun - Deploying module : soapmonitor-1.0 - Invalid service SimpleService.jar due to java.lang.ExceptionInInitializerErro r at javax.crypto.Cipher.getInstance(DashoA12275) at SimpleService.(SimpleService.java:24) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 1.0 with Rampart - SecurityModule failing with "NoSuchMethodError"
Can you please send the full stack trace and your environment information? Thanks, Ruchith On 6/8/06, DeRemer, Bob <[EMAIL PROTECTED]> wrote: I have the released version of Axis2 1.0 installed via the bin distribution and have downloaded and installed the rampart MAR, but am getting an exception when it simply tries to engage the SecurityModule. The error NoSuchMethodError sounds like a mismatch of some libraries, but I didn't build axis or rampart, so I'm not sure how they are mismatched. If anyone has any suggestions on how to figure out what is missing or mismatched, that would be great! Thanks, Bob DeRemer Sr. Software Architect SAP Labs, LLC 350 Eagleview Blvd Exton, PA 19341 USA T1 +1.610.903.8000 x 136 T2 +1.717.505.7923 M +1.717.424.9595 E[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
One session for multiple web services ?
hi ! I've got a question of understanding the session scope of AXIS web services. (Axis 1.4). I have built several services... They are deployed with a WSDD file, each with scope "session". I have now a client (generated with WSDL2Java) which uses all the services. On every client service stub, I call setMaintainSession(true). Do I have now for every service an own session ? If yes, is there some support the be able to combine these sessions to one single session for all services or do I have to do it myself? Thanks and best regards, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]