Re: Applets--Could not get it working
OK GOT IT. I BIG TIME GOT IT WORKING.People you got two options. You don't have to take the pain of second option..but I am just telling.1.) Copy latest axis and commons-discovery snapshot jar files fromhttp://people.apache.org/repository/axis/jars/axis-1.4-SNAPSHOT.jarhttp://people.apache.org/repository/commons-discovery/jars/commons-discovery-SNAPSHOT.jarrename them to remove SNAPSHOT text if you want to.2.) a.)Checkout latest build using svn co http://svn.apache.org/repos/asf/webservices/axis/trunk/java axisb.)Build it using ant.c.) Copy the built commons-discovery and axis jars to wherever you need it.Place them where your applets suck them in... thats it.Thats it...no signing of jars, no changing java.policy file ...I am relieved. Thanks very much dims.May be if a new release of axis is done people would not come accross this issue anymore.KalyanDavanum Srinivas [EMAIL PROTECTED] wrote: Please see the following threads:http://marc.theaimsgroup.com/?l=axis-userw=2r=1s=applet+discoveryq=bOn 8/15/06, KALYAN <[EMAIL PROTECTED]> wrote: Its not a secure site. I had accepted the certificate that I created. But the applet works only if I modify the java.policy file. Let me know if I should give more info. Here is the error message I get. Exception in thread "Thread-7" java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getCategoryList(UnitConverterServiceClient.java:32) at unitconverter.panels.UnitConvertorPanel$2.run(UnitConvertorPanel.java:164) Exception in thread "Thread-8" java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33) at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getUnitList(UnitConverterServiceClient.java:52) at unitconverter.panels.UnitConvertorPanel.updateUnit1and2Lists(UnitConvertorPanel.java:211) at unitconverter.panels.UnitConvertorPanel$3.run(UnitConvertorPanel.java:166) Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source) at java.lang.ClassLoader.(Unknown Source) at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.(PsuedoSystemClassLoader.java:73) at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215) at org.apache.commons.discovery.jdk.JDK12Hooks.(JDK12Hooks.java:73) ... 13 more Kalyan Larry Lemons <[EMAIL PROTECTED]> wrote: What error message are you getting? Is the site at which the web service is hosted a secure site? If the certificate for which the applet was signed is a trusted certificate or is allowed to run by the client, i.e. the client clicks on the run or allow, or OK button that would enable the applet to run, then it should run, unless there are other certificates involved in the process, i.e. one installed on the web services server. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: KALYAN [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 4:31 PM To: axis-user@ws.apache.org Subject: Applets--Could not get it working Hi all, Has anyone found the solution to using java applets as the client. I could do it only this way. 1.) Sign the required jars 2.) Modify the java.policy file to grant { permission java.security.AllPermission; }; So the users would not want to modify the java.policy file. Is there any solution for this problem. I would love to hear a solution. I am using Axis 1.4 Thanks Kalyan Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.-- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
[Axis2] Type mappings in Axis2
Hi, In Axis 1.0 one could define a typeMapping tag in the server-config.wsdd to map certain classes to a certain QName. For example: typeMapping xmlns:ns=urn:ServerManager qname=ns:Server type=java:com.dummy.server.runtime.axis.Server serializer=org.apache.axis.encoding.ser.BeanSerializerFactory deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory encodingStyle=http://schemas.xmlsoap.org/soap/encoding// How is this accomplished in Axis2? Also, adding the following tag: parameter name=extraClasses value= com.dummy.server.runtime.axis.Server / to the service description in the WSDD would expose the given object as a complexType in the WSDL. Is there an alternative in Axis2 with the same or similar functionality? Thanks, Shahar Kedar Software AG Israel
Re: Generic request, empty post
ANYBODY?? Help... jansson wrote: I'm currently developing a servlet for two way communication, and need to be able to handle an empty post. I have a set of methods the client may call, but when the client doesn't have any more requests, it sends an empty HTTP post to my servlet. I can't affect the client, and I need to handle the empty post. The empty post is a way for the client to tell my service that it doesn't have anything more to request, although my service may want to tell the client something more, and the empty post consists of an HTTP header with Content-Length: 0, SOAPAction: and NOTHING in the HTTP Body. When my service receives this, it responds with a SAXParserException: Premature end of file. Now, I want this emtpy HTTP post (request) to trigger a custom method (just as a SOAP request triggers a method mapped by the first tag inside the body) with no input parameters, which, depending on results taken from a database, should respond with a SOAP envelope built up by the service. To make it simple: I want this: -- Request - POST /myservice HTTP/1.1 Content-Type: text/xml; Charset=UTF-8 User-Agent: XML Spy SOAPAction: Host: localhost:80 Content-Length: 0 Connection: Keep-Alive Cache-Control: no-cache - to get a response like this: --- Response HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Wed, 09 Aug 2006 16:49:30 GMT soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body myCustomResponse xmlns=urn:mynamespace AValue1/AValue /myCustomResponse /soapenv:Body /soapenv:Envelope -- How do I make this happend? It must be possible in some way, but how?? For more information, look att the TR-069 CWMP protocol, (http://www.dslforum.org/techwork/tr/TR-069.pdf), point 3.7.*, cause that's what I'm trying to implement. -- View this message in context: http://www.nabble.com/Generic-request%2C-empty-post-tf2102463.html#a5827632 Sent from the Axis - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invoke a call to Muse in Axis
Hello,I want to add identification function and maintain sessions in the Muse service. Now I have deployed one Muse service and one Axis service. I invoke a call to Muse service from Axis implemention file.( e.g. Once the Axis service receives a GetResourceProperty soap request, it will do the invocation to Muse service to get the required resource property.) The following is the code of method getResourceProperty in the Axis generated impl file. But it dose not work, it returns a NullPointer Exception. I don't know where the problem is. Can anyone help?Thanks in advance. I attach as well the WSDL file, the GetResourceProperty.soap and GetResourceProperty.xml. public org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse getResourceProperty( javax.xml.namespace.QName getResourcePropertyRequest) throws java.rmi.RemoteException, org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.InvalidResourcePropertyQNameFaultType, org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.ResourceUnknownFaultType { try{ String endpoint=http://localhost:8080/muse/services/router5 ; String uri = http://example.org/services/Router5; InputStream is =ClassLoader.getSystemResourceAsStream(C:/axis-1_4/samples/AxisTest1/requests/GetResourceProperty.xml); System.err.print (input stream: +is.toString()); ServiceFactory sfactory = (org.apache.axis.client.ServiceFactory)ServiceFactory.newInstance();URL wsdlURL = new URL( http://localhost:8080/muse/services/router5?wsdl); QName serviceQname = new QName( http://example.org/services/Router5, RouterService); Service service = (org.apache.axis.client.Service)sfactory.createService(wsdlURL, serviceQname); //the port name becomes the service name in the wsdd generated by Wsdl2Java QName portQname = new QName( http://example.org/services/Router5, router5); Call call = (Call)service.createCall (portQname,GetResourceProperty); call.setTargetEndpointAddress(endpoint); call.setProperty(Call.SESSION_MAINTAIN_PROPERTY, Boolean.TRUE); call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE); call.setProperty(Call.SOAPACTION_URI_PROPERTY, uri); call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, ); call.setProperty(Call.OPERATION_STYLE_PROPERTY, document); call.setOperationName(new QName(http://example.org/services/Router5,GetResourceProperty)); QName qn1=new QName( http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl ,GetResourceProperty); // QName qn2=new QName(http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl ,GetResourcePropertyResponse); call.addParameter(ResourceId,qn1,ParameterMode.IN);// call.setReturnType(qn2,org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse.class );// QName qn3=new QName(http://example.org/services/Router5,ResourceId); // String stri=ResourceId;// Object[] ob=(stri); // org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse res=(org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse )call.invoke(qn3,ob); org.apache.axis.message.SOAPEnvelope envelope = new org.apache.axis.message.SOAPEnvelope(); org.apache.axis.message.SOAPBodyElement bodyelement = new org.apache.axis.message.SOAPBodyElement(is); bodyelement.setNamespaceURI(http://example.org/services/Router5 ); envelope.addBodyElement(bodyelement); org.apache.axis.message.SOAPEnvelope elms = (org.apache.axis.message.SOAPEnvelope)call.invoke(envelope); org.apache.axis.message.SOAPBodyElement elem = elms.getFirstBody (); String str=elem.getAsString(); System.err.print(str); } catch(SOAPException se){ System.err.println(SOAPException: ' + se.getMessage () + '); System.err.println( Cause: ' + se.getCause().getClass().getName() + ': + se.getCause().getMessage()); return null; } catch (IOException ioe) { System.err.println(IOException writing SOAPMessage: ' + ioe.getMessage() + '); return null; } catch(Exception e){ e.printStackTrace (); } return null;}the exception posted in the server: java.lang.NullPointerException at samples.AxisTest1.AxisTestSoapBindingImpl.getResourceProperty(AxisTes tSoapBindingImpl.java:488) at samples.AxisTest1.AxisTestSoapBindingSkeleton.getResourceProperty(AxisTestSoapBindingSkeleton.java:389) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) at
Invoke a call to Muse in Axis
Hello,I want to add identification function and maintain sessions in the Muse service. Now I have deployed one Muse service and one Axis service. I invoke a call to Muse service from Axis implemention file.( e.g. Once the Axis service receives a GetResourceProperty soap request, it will do the invocation to Muse service to get the required resource property.) The following is the code of method getResourceProperty in the Axis generated impl file. But it dose not work, it returns a NullPointer Exception. I don't know where the problem is. Can anyone help?Thanks in advance. I attach as well the WSDL file, the GetResourceProperty.soap and GetResourceProperty.xml. public org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse getResourceProperty( javax.xml.namespace.QName getResourcePropertyRequest) throws java.rmi.RemoteException, org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.InvalidResourcePropertyQNameFaultType, org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.ResourceUnknownFaultType { try{ String endpoint=http://localhost:8080/muse/services/router5 ; String uri = http://example.org/services/Router5; InputStream is =ClassLoader.getSystemResourceAsStream(C:/axis-1_4/samples/AxisTest1/requests/GetResourceProperty.xml); System.err.print (input stream: +is.toString()); ServiceFactory sfactory = (org.apache.axis.client.ServiceFactory)ServiceFactory.newInstance();URL wsdlURL = new URL( http://localhost:8080/muse/services/router5?wsdl); QName serviceQname = new QName( http://example.org/services/Router5, RouterService); Service service = (org.apache.axis.client.Service)sfactory.createService(wsdlURL, serviceQname); //the port name becomes the service name in the wsdd generated by Wsdl2Java QName portQname = new QName( http://example.org/services/Router5, router5); Call call = (Call)service.createCall (portQname,GetResourceProperty); call.setTargetEndpointAddress(endpoint); call.setProperty(Call.SESSION_MAINTAIN_PROPERTY, Boolean.TRUE); call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE); call.setProperty(Call.SOAPACTION_URI_PROPERTY, uri); call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, ); call.setProperty(Call.OPERATION_STYLE_PROPERTY, document); call.setOperationName(new QName(http://example.org/services/Router5,GetResourceProperty)); QName qn1=new QName( http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl ,GetResourceProperty); // QName qn2=new QName(http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl ,GetResourcePropertyResponse); call.addParameter(ResourceId,qn1,ParameterMode.IN);// call.setReturnType(qn2,org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse.class );// QName qn3=new QName(http://example.org/services/Router5,ResourceId); // String stri=ResourceId;// Object[] ob=(stri); // org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse res=(org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse )call.invoke(qn3,ob); org.apache.axis.message.SOAPEnvelope envelope = new org.apache.axis.message.SOAPEnvelope(); org.apache.axis.message.SOAPBodyElement bodyelement = new org.apache.axis.message.SOAPBodyElement(is); bodyelement.setNamespaceURI(http://example.org/services/Router5 ); envelope.addBodyElement(bodyelement); org.apache.axis.message.SOAPEnvelope elms = (org.apache.axis.message.SOAPEnvelope)call.invoke(envelope); org.apache.axis.message.SOAPBodyElement elem = elms.getFirstBody (); String str=elem.getAsString(); System.err.print(str); } catch(SOAPException se){ System.err.println(SOAPException: ' + se.getMessage () + '); System.err.println( Cause: ' + se.getCause().getClass().getName() + ': + se.getCause().getMessage()); return null; } catch (IOException ioe) { System.err.println(IOException writing SOAPMessage: ' + ioe.getMessage() + '); return null; } catch(Exception e){ e.printStackTrace (); } return null;}the exception posted in the server: java.lang.NullPointerException at samples.AxisTest1.AxisTestSoapBindingImpl.getResourceProperty(AxisTes tSoapBindingImpl.java:488) at samples.AxisTest1.AxisTestSoapBindingSkeleton.getResourceProperty(AxisTestSoapBindingSkeleton.java:389) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) at
Invoke a call to Muse in Axis
Hello,I want to add identification function and maintain sessions in the Muse service. Now I have deployed one Muse service and one Axis service. I invoke a call to Muse service from Axis implemention file.(e.g . Once the Axis service receives a GetResourceProperty soap request, it will do the invocation to Muse service to get the required resource property.) The following is the code of method getResourceProperty in the Axis generated impl file. But it dose not work, it returns a NullPointer Exception. I don't know where the problem is. Can anyone help?Thanks in advance. I attach as well the WSDL file, the GetResourceProperty.soap and GetResourceProperty.xml. public org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse getResourceProperty( javax.xml.namespace.QName getResourcePropertyRequest) throws java.rmi.RemoteException, org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.InvalidResourcePropertyQNameFaultType, org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.ResourceUnknownFaultType { try{ String endpoint=http://localhost:8080/muse/services/router5 ; String uri = http://example.org/services/Router5; InputStream is =ClassLoader.getSystemResourceAsStream(C:/axis-1_4/samples/AxisTest1/requests/GetResourceProperty.xml); System.err.print (input stream: +is.toString()); ServiceFactory sfactory = (org.apache.axis.client.ServiceFactory)ServiceFactory.newInstance();URL wsdlURL = new URL( http://localhost:8080/muse/services/router5?wsdl); QName serviceQname = new QName( http://example.org/services/Router5, RouterService); Service service = (org.apache.axis.client.Service)sfactory.createService(wsdlURL, serviceQname); //the port name becomes the service name in the wsdd generated by Wsdl2Java QName portQname = new QName( http://example.org/services/Router5, router5); Call call = (Call)service.createCall (portQname,GetResourceProperty); call.setTargetEndpointAddress(endpoint); call.setProperty(Call.SESSION_MAINTAIN_PROPERTY, Boolean.TRUE); call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE); call.setProperty(Call.SOAPACTION_URI_PROPERTY, uri); call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, ); call.setProperty(Call.OPERATION_STYLE_PROPERTY, document); call.setOperationName(new QName(http://example.org/services/Router5,GetResourceProperty)); QName qn1=new QName( http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl ,GetResourceProperty); // QName qn2=new QName(http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl ,GetResourcePropertyResponse); call.addParameter(ResourceId,qn1,ParameterMode.IN);// call.setReturnType(qn2,org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse.class );// QName qn3=new QName(http://example.org/services/Router5,ResourceId); // String stri=ResourceId;// Object[] ob=(stri); // org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse res=(org.oasis_open.docs.wsrf._2004._06.wsrf_WS_ResourceProperties_1_2_draft_01_xsd.GetResourcePropertyResponse )call.invoke(qn3,ob); org.apache.axis.message.SOAPEnvelope envelope = new org.apache.axis.message.SOAPEnvelope(); org.apache.axis.message.SOAPBodyElement bodyelement = new org.apache.axis.message.SOAPBodyElement(is); bodyelement.setNamespaceURI(http://example.org/services/Router5 ); envelope.addBodyElement(bodyelement); org.apache.axis.message.SOAPEnvelope elms = (org.apache.axis.message.SOAPEnvelope)call.invoke(envelope); org.apache.axis.message.SOAPBodyElement elem = elms.getFirstBody (); String str=elem.getAsString(); System.err.print(str); } catch(SOAPException se){ System.err.println(SOAPException: ' + se.getMessage () + '); System.err.println( Cause: ' + se.getCause().getClass().getName() + ': + se.getCause().getMessage()); return null; } catch (IOException ioe) { System.err.println(IOException writing SOAPMessage: ' + ioe.getMessage() + '); return null; } catch(Exception e){ e.printStackTrace (); } return null;}the exception posted in the server: java.lang.NullPointerException at samples.AxisTest1.AxisTestSoapBindingImpl.getResourceProperty(AxisTes tSoapBindingImpl.java:488) at samples.AxisTest1.AxisTestSoapBindingSkeleton.getResourceProperty(AxisTestSoapBindingSkeleton.java:389) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:324) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) at
Re: Applets--Could not get it working
There you go! :) On 8/16/06, KALYAN [EMAIL PROTECTED] wrote: OK GOT IT. I BIG TIME GOT IT WORKING. People you got two options. You don't have to take the pain of second option.. but I am just telling. 1.) Copy latest axis and commons-discovery snapshot jar files from http://people.apache.org/repository/axis/jars/axis-1.4-SNAPSHOT.jar http://people.apache.org/repository/commons-discovery/jars/commons-discovery-SNAPSHOT.jar rename them to remove SNAPSHOT text if you want to. 2.) a.)Checkout latest build using svn co http://svn.apache.org/repos/asf/webservices/axis/trunk/java axis b.)Build it using ant. c.) Copy the built commons-discovery and axis jars to wherever you need it. Place them where your applets suck them in... thats it. Thats it...no signing of jars, no changing java.policy file ... I am relieved. Thanks very much dims. May be if a new release of axis is done people would not come accross this issue anymore. Kalyan Davanum Srinivas [EMAIL PROTECTED] wrote: Please see the following threads: http://marc.theaimsgroup.com/?l=axis-userw=2r=1s=applet+discoveryq=b On 8/15/06, KALYAN wrote: Its not a secure site. I had accepted the certificate that I created. But the applet works only if I modify the java.policy file. Let me know if I should give more info. Here is the error message I get. Exception in thread Thread-7 java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getCategoryList(UnitConverterServiceClient.java:32) at unitconverter.panels.UnitConvertorPanel$2.run(UnitConvertorPanel.java:164) Exception in thread Thread-8 java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33) at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getUnitList(UnitConverterServiceClient.java:52) at unitconverter.panels.UnitConvertorPanel.updateUnit1and2Lists(UnitConvertorPanel.java:211) at unitconverter.panels.UnitConvertorPanel$3.run(UnitConvertorPanel.java:166) Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source) at java.lang.ClassLoader.(Unknown Source) at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.(PsuedoSystemClassLoader.java:73) at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215) at org.apache.commons.discovery.jdk.JDK12Hooks.(JDK12Hooks.java:73) ... 13 more Kalyan Larry Lemons wrote: What error message are you getting? Is the site at which the web service is hosted a secure site? If the certificate for which the applet was signed is a trusted certificate or is allowed to run by the client, i.e. the client clicks on the run or allow, or OK button that would enable the applet to run, then it should run, unless there are other certificates involved in the process, i.e. one installed on the web services server. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: KALYAN [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 4:31 PM To: axis-user@ws.apache.org Subject: Applets--Could not get it working Hi all, Has anyone found the solution to using java applets as the client. I could do it only this way. 1.) Sign the required jars 2.) Modify the java.policy file to grant { permission java.security.AllPermission; }; So the users would not want to modify the java.policy file. Is there any solution for this problem. I would love to hear a solution. I am using Axis 1.4 Thanks Kalyan Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
Re: [Axis2]Unable to use WSDL2JAVA.
Hi, Anne I can say definitely this wsdl workedperfect for Axis 1.3, I used cmd line: WSDL2Java d:\some_path\territory.wsdl And proxy classes generates without any warnings, errors. And I tried also another wsdl code generator processor .NET 2.0. I only has warnings, but proxy classes also generates. So as I can see Axis2 uses this warning (according .NET 2.0) as fatal error and throwing exception. I think it's not good. It would be high appriciated if it will be fixed and worked as in Axis 1.3. 2006/8/16, Anne Thomas Manes [EMAIL PROTECTED]: Axis 1.4 should have generated an exception for this WSDL. It isn't valid.You cannot add any additional configuration information. You must make the WSDL valid.On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Anne, but why the same wsdl worked for Axis 1.4 ? Can I add some configuration param without change primary wsdl file? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, No, please don't reopen the JIRA. As Dims says, the latest build throws an informative exception. Your problem is caused by the fact that you do not import your second schema (targetNamespace=urn:/crmondemand/xml/territory) into the first schema, therefore Axis cannot find elements/types with a prefix of xsdLocal1. Add this line to the first schema: xsd:import namespace=urn:/crmondemand/xml/territory/ Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I have in wsdl *element*: xsd:element name=ListOfTerritory type=xsdLocal1:ListOfTerritory/xsd:element xsd:complexType name=ListOfTerritoryxsd:sequencexsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory/xsd:element /xsd:sequence /xsd:complexTypeShould I reopen bug http://issues.apache.org/jira/browse/AXIS2-1026? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, Your exception says that it cannot find an *element* called ListOfTerritory. In your last message you showed us a *complexType* called ListOfTerritory. Is there also an element with this name? If not, then that is the cause of your problem. I'm with Derek -- the tool should never throw a NPE, so please update the JIRA with sufficient information so that Dims and crew can define a better exception for this type of WSDL error. Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Ok, here is exception from bug: Caused by:org.apache.axis2.schema.SchemaCompilationException:Referenced element{urn:/crmondemand/xml/territory}ListOfTerritorynot found!atorg.apache.axis2.schema.SchemaCompiler.process (SchemaCompiler.java:1446)at org.apache.axis2.schema.SchemaCompiler.processParticle (SchemaCompiler.java:1318)at org.apache.axis2.schema.SchemaCompiler.processComplexType (SchemaCompiler.java:846)atorg.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java :791)atorg.apache.axis2.schema.SchemaCompiler.processSchema (SchemaCompiler.java:775)at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475)at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java :446)at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308)at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230)at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java :77)... 8 more And in the territory description of the ListOfTerritory presents.xsd:complexType name=ListOfTerritory xsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0type=xsdLocal1:Territory / /xsd:sequence /xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work withAxis2, am I right?Also for generate stubs using this wsdl in Axis 1.3, I'm used property filewith package mappings. Is it possible to use this property file in theWSDL2JAVA in Axis2 1.0 ? 2006/8/15, Davanum Srinivas [EMAIL PROTECTED] : Bug is closed :) see comments in the bug report. thanks, dims On 8/14/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I'm using 1.0, the same issue and for nightly build. I logged bug atJIRA: http://issues.apache.org/jira/browse/AXIS2-1026 2006/8/14, Ajith Ranabahu [EMAIL PROTECTED]: Hi, Is this 1.0 or the latest SVN ? if its 1.o please check with the latest nightlies. if the problem persists please file a Jira (attach the WSDL as well)Ajith On 8/14/06, Derek [EMAIL PROTECTED] wrote: Yura: WSDL2Java should never throw a NullPointerException. If it is sent invaliddata, it should always throw an exception containing an informative error message instead. Please file a JIRA so that this issue is fixed. Thank you. Derek
Re: request always calls the first operation defined in server-config.wsdd
Hi Anne, Sorry for my slow response - I wanted to spend some time playing with the settings and code to see if I could make some headway. I have, now, two solutions to this particular problem, which I'll detail here for the purposes of list archive: 1) Switching from doc/lit to rpc/lit and rebuilding client and server code with WSDL2Java immediately solves the problem. This is done by switching/inserting 'style=rpc' into the binding declaration: soap:binding transport=http://schemas.xmlsoap.org/soap/http; style=rpc / and leaving 'use=literal' in the soap:body declaration. I had not understood that signature in the frame of a web service is defined by the body, and that in doc/lit form that this signature is different to the way that signature is traditionally defined in OOP. It appears that using rpc/lit recovers the more traditional definition of signature. 2) The operation that is called can be specified as a soapAction and passed in the HTTP header in doc/lit form. My WSDL did not define a default soapAction, but the addition of the relevant attribute, along with a rebuild of all the client and server code does the job. So here is a snippet from the WSDL which uses doc/lit, but which can distinguish between different operations at the end of the service while using the same soap body: soap:binding transport=http://schemas.xmlsoap.org/soap/http; style=document / wsdl:operation name=RequestFileDetails soap:operation soapAction=RequestFileDetails/ wsdl:input soap:body use=literal / /wsdl:input wsdl:output soap:body use=literal / /wsdl:output /wsdl:operation According to your WSDL, you have five request messages that have identical signatures: - ArticleUpdateNotificationRequest - UnsetLicenseRequest - ViewLicenseRequest - LicenseStatusRequest - RequestFileDetailsRequest A SOAP message signature is determined by the child element of the soap:Body. When using document style, that message signature element is the element referenced in the wsdl:part definition. This is what scuppered me. In doc/lit, the message names are basically irrelevant unless you specify a soapAction. I would say this is very counter intuitive, since the traditional definition of the signature would include at least the operation name, as well as the parameters. But you have four other request messages that look exactly the same. There is absolutely no way for Axis to determine which operation you want to invoke, therefore it always invokes the first operation. So as I said in my first response, you must define unique signatures for each operation -- that means that each operation request message must reference a unique element name in its message part. Although there actually is a way for Axis to determine which operation you want to invoke, which is to do exactly what it does do when you specify a soapAction, and look in the HTTP headers. I recommend that you define a type called singleGuidType and then define five separate elements, each with a name corresponding to the method name, e.g.: xsd:complexType name=singleGuidType xsd:sequence xsd:element maxOccurs=1 minOccurs=1 name=guid type=xsd:string/ /xsd:sequence /xsd:complexType xsd:element name=ArticleUpdateNotification type=singleGuidType/ wsdl:message name=ArticleUpdateNotificationRequest wsdl:part element=tns:ArticleUpdateNotification name=body/ /wsdl:message I think this is overly complicated, and misses the crux of the problem, since the addition of the relevant soapAction did the job. The problem that I encountered was due to a number of factors: first (and foremost), I was fairly clueless about how the deep internals of Axis worked with regard to mapping requests onto operations; second, that doc/lit when implemented using axis does not behave as you might expect (i.e. in this situation, it would probably make more sense for WSDL2Java to throw an error if no soapAction is defined, or at least generate a warning); and third that Eclipse web tools doesn't enforce, or recommend the addition of the relevant soapAction in the UI. Anyway, I don't want to be a bad workman blaming his tools, so really it's down to me not understanding doc/lit fully before using it. Hopefully this post will help other people who get confused about the same thing ;) Thanks for all your help, Richard I am starting to really get to grips with my web services now, with much thanks to Axis. This morning, though, I have encountered a problem which I can't work out whether is my fault (likely) or a potential problem. I have two requests defined (in the scope of this problem): public void requestFileDetails(String guid) throws ServiceException, RemoteException { // make the request SpiralTestSoapService service = getService(); SingleGUID sguid = new SingleGUID(guid); RequestFileDetailsResponse response =
Re: [Axis2]Unable to use WSDL2JAVA.
I understand that it works with Axis1 -- Axis1 is more tolerant of WSDL errors than many systems. For example, it allows you to reference types from your message parts when using document style. It also doesn't require that you import a schema if the schema appears in-line. But these are bugs in Axis1 that cause interoperability problems with other systems. Axis2 is more rigorous when it comes to WSDL validity. And that's a good thing. The fix to your problem is quite simple. Add the xsd:import statement to your WSDL. Anne On 8/16/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Hi, Anne I can say definitely this wsdl worked perfect for Axis 1.3, I used cmd line: WSDL2Java d:\some_path\territory.wsdl And proxy classes generates without any warnings, errors. And I tried also another wsdl code generator processor .NET 2.0. I only has warnings, but proxy classes also generates. So as I can see Axis2 uses this warning (according .NET 2.0) as fatal error and throwing exception. I think it's not good. It would be high appriciated if it will be fixed and worked as in Axis 1.3. 2006/8/16, Anne Thomas Manes [EMAIL PROTECTED]: Axis 1.4 should have generated an exception for this WSDL. It isn't valid. You cannot add any additional configuration information. You must make the WSDL valid. On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Anne, but why the same wsdl worked for Axis 1.4 ? Can I add some configuration param without change primary wsdl file? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, No, please don't reopen the JIRA. As Dims says, the latest build throws an informative exception. Your problem is caused by the fact that you do not import your second schema (targetNamespace=urn:/crmondemand/xml/territory) into the first schema, therefore Axis cannot find elements/types with a prefix of xsdLocal1. Add this line to the first schema: xsd:import namespace=urn:/crmondemand/xml/territory/ Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I have in wsdl *element*: xsd:element name=ListOfTerritory type=xsdLocal1:ListOfTerritory/xsd:element xsd:complexType name=ListOfTerritoryxsd:sequencexsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory/xsd:element /xsd:sequence /xsd:complexTypeShould I reopen bug http://issues.apache.org/jira/browse/AXIS2-1026 ? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, Your exception says that it cannot find an *element* called ListOfTerritory. In your last message you showed us a *complexType* called ListOfTerritory. Is there also an element with this name? If not, then that is the cause of your problem. I'm with Derek -- the tool should never throw a NPE, so please update the JIRA with sufficient information so that Dims and crew can define a better exception for this type of WSDL error. Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Ok, here is exception from bug: Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced element {urn:/crmondemand/xml/territory}ListOfTerritorynot found! at org.apache.axis2.schema.SchemaCompiler.process (SchemaCompiler.java :1446) at org.apache.axis2.schema.SchemaCompiler.processParticle (SchemaCompiler.java:1318) at org.apache.axis2.schema.SchemaCompiler.processComplexType (SchemaCompiler.java:846) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType (SchemaCompiler.java :791) at org.apache.axis2.schema.SchemaCompiler.processSchema (SchemaCompiler.java:775) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java :446) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java :77) ... 8 more And in the territory description of the ListOfTerritory presents. xsd:complexType name=ListOfTerritory xsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory / /xsd:sequence /xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work with Axis2, am I right? Also for generate stubs using this wsdl in Axis 1.3, I'm used property file with package mappings. Is it possible to use this property file in the WSDL2JAVA in Axis2 1.0 ? 2006/8/15, Davanum Srinivas [EMAIL
Re: [Axis2]Unable to use WSDL2JAVA.
Completely agree with Anne. -- dims On 8/16/06, Anne Thomas Manes [EMAIL PROTECTED] wrote: I understand that it works with Axis1 -- Axis1 is more tolerant of WSDL errors than many systems. For example, it allows you to reference types from your message parts when using document style. It also doesn't require that you import a schema if the schema appears in-line. But these are bugs in Axis1 that cause interoperability problems with other systems. Axis2 is more rigorous when it comes to WSDL validity. And that's a good thing. The fix to your problem is quite simple. Add the xsd:import statement to your WSDL. Anne On 8/16/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Hi, Anne I can say definitely this wsdl worked perfect for Axis 1.3, I used cmd line: WSDL2Java d:\some_path\territory.wsdl And proxy classes generates without any warnings, errors. And I tried also another wsdl code generator processor .NET 2.0. I only has warnings, but proxy classes also generates. So as I can see Axis2 uses this warning (according .NET 2.0) as fatal error and throwing exception. I think it's not good. It would be high appriciated if it will be fixed and worked as in Axis 1.3. 2006/8/16, Anne Thomas Manes [EMAIL PROTECTED]: Axis 1.4 should have generated an exception for this WSDL. It isn't valid. You cannot add any additional configuration information. You must make the WSDL valid. On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Anne, but why the same wsdl worked for Axis 1.4 ? Can I add some configuration param without change primary wsdl file? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, No, please don't reopen the JIRA. As Dims says, the latest build throws an informative exception. Your problem is caused by the fact that you do not import your second schema (targetNamespace=urn:/crmondemand/xml/territory) into the first schema, therefore Axis cannot find elements/types with a prefix of xsdLocal1. Add this line to the first schema: xsd:import namespace=urn:/crmondemand/xml/territory/ Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: I have in wsdl *element*: xsd:element name=ListOfTerritory type=xsdLocal1:ListOfTerritory/xsd:element xsd:complexType name=ListOfTerritoryxsd:sequencexsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory/xsd:element /xsd:sequence /xsd:complexTypeShould I reopen bug http://issues.apache.org/jira/browse/AXIS2-1026 ? 2006/8/15, Anne Thomas Manes [EMAIL PROTECTED]: Yura, Your exception says that it cannot find an *element* called ListOfTerritory. In your last message you showed us a *complexType* called ListOfTerritory. Is there also an element with this name? If not, then that is the cause of your problem. I'm with Derek -- the tool should never throw a NPE, so please update the JIRA with sufficient information so that Dims and crew can define a better exception for this type of WSDL error. Anne On 8/15/06, Yura Tkachenko [EMAIL PROTECTED] wrote: Ok, here is exception from bug: Caused by: org.apache.axis2.schema.SchemaCompilationException: Referenced element {urn:/crmondemand/xml/territory}ListOfTerritorynot found! at org.apache.axis2.schema.SchemaCompiler.process (SchemaCompiler.java :1446) at org.apache.axis2.schema.SchemaCompiler.processParticle (SchemaCompiler.java:1318) at org.apache.axis2.schema.SchemaCompiler.processComplexType (SchemaCompiler.java:846) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType (SchemaCompiler.java :791) at org.apache.axis2.schema.SchemaCompiler.processSchema (SchemaCompiler.java:775) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:475) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java :446) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:308) at org.apache.axis2.schema.SchemaCompiler.compile (SchemaCompiler.java:230) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java :77) ... 8 more And in the territory description of the ListOfTerritory presents. xsd:complexType name=ListOfTerritory xsd:sequence xsd:element name=Territory maxOccurs=unbounded minOccurs=0 type=xsdLocal1:Territory / /xsd:sequence /xsd:complexType BTW I think any wsdl which worked with Axis 1.3 should always work with Axis2, am I
Re: Axis 2: Creating SOAP body from SAX driver
Jochen, plz see the snippets in JaxmeDataBindingTemplate.xsl -- dims On 8/16/06, Jochen Wiedmann [EMAIL PROTECTED] wrote: Hi, as I read the Axis 2 implementation (AbstractInOutSyncMessageReceiver), it allows to stream a response, if the response can be pulled. In other words, if the response object behaves like an InputStream. Unfortunately, in my case this is not an option. I have an object, which can only push. For example, imagine an XMLFilter or SAX driver. Is it possible to stream a response in that manner? In other words, obtain an XMLWriter to which the body may be written? Thanks, Jochen - 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]
Re: Has anyone used Acegi Security with Axis?
I know both acegi / spring and handlers a bit so perhaps I can help. Are you using Axis2 ? In this case there is not much difference, although I myself no longer use axis 1.x . While my experience is with acegi .9x , I notice now there is a 1.0 release and the docs do reference web services but not handlers. My general advice: 1) Consider just using a web service such as login() to authorize / authenticate and then use an UUID to mantain state much as jsessionid does for the acegi SecurityContextHolder . You can then programatically login via acegi . That's the approach I used instead of handlers. I've used handlers to authenticate via jaas on other projects and I've convinced myself the uuid approach is simpler. 2) Search the spring / acegi forums. This topic has come up before, and I believe I participated in the discusssions once or twice. 3) If you use a Handler , one issue you may hit is how to wire it to Spring ? Once you got it wired, you could follow the strategy I outlined in step 1 . One way you could wire it is to use the ApplicationContextAware interface . This is described in the tutorial of how to use axis2 in a non-servlet container environment: http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/xdocs/latest/spring.html If you do use axis2 , I at least would be interested in the progress so that perhaps we could document it or even look at integrating it into rampart (axis2 security) . HTH, Robert http://www.braziloutsource.com/ On 8/15/06, Bell, Douglas [EMAIL PROTECTED] wrote: I'm trying to use Acegi Security to handle authentication and authorization but am having a heck of a time... Any chance someone out there has done this and can point me to some reference material or a reference implementation they can pass my way? Thanks, Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request always calls the first operation defined in server-config.wsdd
Richard, Although adding a SOAPAction parameter will solve your problem with Axis2, this solution may not work with other systems, and therefore is not a good practice to adopt. In addition, the SOAPAction parameter is being deprecated in SOAP 1.2. (It is being replaced by the Action parameter in WS-Addressing.) See Section 4.7.6 of the WS-I Basic Profile [1] for guidance on how to define unique message signatures. The profile requires that you rely only on the on-the-wire message signature, and that you not rely on SOAPAction. I think the reason it doesn't feel intuitive to you is that you're thinking in terms of the Java method signature rather than on-the-wire signature. And you're also thinking of Document style as something that's basically the same as RPC style. When using RPC style, you are sending a set of parameters (defined by their types). But when you are using Document style, you are sending a document (an element). Axis2 can automatically bind the element to a Java object for you, but it really helps if you switch your thinking to a message-oriented perspective. The reason why switching to RPC style works is that RPC style will automatically generate a wrapper element around your input parameters. That wrapper element has the same name as your operation, and therefore provides a unique signature. When using RPC style, you can specify multiple message parts, because each part represents a parameter, and all the parameters get turned into child elements of the wrapper element. (When using Document style, your message can contain at most one message part.) But note that you can't simply change the style attribute from document to rpc and expect it to work. (If it does, then that's a bug, so please file a JIRA.) In order to switch to RPC style, you must change the message parts and have them reference types rather than elements, and you must add a namespace attribute to the soap:body definition to the binding. Here's an example of the pertinent bits when using Document style: xsd:element name=getFile type=simpleGuidType/ wsdl:message name=getFileRequest w:part name=request element=getFile/ /wsdl:message wsdl:operation name=getFile soap:operation style=document soapAction=urn:example:getFile / wsdl:input soap:body use=literal / /wsdl:input ... /wsdl:operation And here's the pertinent bits for an RPC style service: xsd:complexType name=simpleGuidType /xsd:complexType wsdl:message name=getFileRequest w:part name=simpleGUID type=simpleGuidType/ /wsdl:message wsdl:operation name=getFile soap:operation style=getFile soapAction=urn:example:service:getFile / wsdl:input soap:body use=literal namespace=urn:example:service/ /wsdl:input ... /wsdl:operation If switching to RPC style solves your problem, then go with it. But I strongly encourage you not to get in the habot of relying on SOAPAction to route your message. You should follow the advice given in the WS-I Basic Profile and define a unique on-the-wire signature. There's a WSDL convention for document style known as wrapped, and this is what I always recommend. I've written up a description of the wrapped convention in my blog. [2] The wrapped convention supports a programming model for document style that's essentially identical to RPC style. When using the wrapped style, you define wrapper elements for your input parameters (essentially what RPC style does for you automatically), and you reference these wrapper elements from your message parts. Most SOAP toolkits can automatically wrap and unwrap the parameters for you so that you can use an RPC-style method invocation. The developers are building support for the wrapped convention as we type. [1] http://www.ws-i.org/Profiles/BasicProfile-1.1.html#Operation_Signatures [2] http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html Anne On 8/16/06, Richard Jones [EMAIL PROTECTED] wrote: Hi Anne, Sorry for my slow response - I wanted to spend some time playing with the settings and code to see if I could make some headway. I have, now, two solutions to this particular problem, which I'll detail here for the purposes of list archive: 1) Switching from doc/lit to rpc/lit and rebuilding client and server code with WSDL2Java immediately solves the problem. This is done by switching/inserting 'style=rpc' into the binding declaration: soap:binding transport=http://schemas.xmlsoap.org/soap/http; style=rpc / and leaving 'use=literal' in the soap:body declaration. I had not understood that signature in the frame of a web service is defined by the body, and that in doc/lit form that this signature is different to the way that signature is traditionally defined in OOP. It
Axis2: Caching a file fails at a random moment
Hi all,I try sending a file via a webservice, but it always fails after about ~4-5Mb sent. Server java process takes 100% of cpu load at that moment.Setting up caching did not help at all. It just stores a part of a file in the cacheDIR and gives the error: client side:Exception in thread main org.apache.axiom.om.OMException: Problem with the OutputStream.Caused by: java.net.SocketException: Broken pipeserver side:SEVERE: Exception occurred while trying to invoke service method fileSample java.lang.reflect.InvocationTargetExceptionCaused by: org.apache.axiom.om.OMException: Error creating temporary File.I've got the latest nightly build of axis2 running under JettyThanks for any help -- Dmitry Brigadirov
Re: Generic request, empty post
I suggest using a servlet filter to catch this request. On 8/16/06, jansson [EMAIL PROTECTED] wrote: ANYBODY?? Help... jansson wrote: I'm currently developing a servlet for two way communication, and need to be able to handle an empty post. I have a set of methods the client may call, but when the client doesn't have any more requests, it sends an empty HTTP post to my servlet. I can't affect the client, and I need to handle the empty post. The empty post is a way for the client to tell my service that it doesn't have anything more to request, although my service may want to tell the client something more, and the empty post consists of an HTTP header with Content-Length: 0, SOAPAction: and NOTHING in the HTTP Body. When my service receives this, it responds with a SAXParserException: Premature end of file. Now, I want this emtpy HTTP post (request) to trigger a custom method (just as a SOAP request triggers a method mapped by the first tag inside the body) with no input parameters, which, depending on results taken from a database, should respond with a SOAP envelope built up by the service. To make it simple: I want this: -- Request - POST /myservice HTTP/1.1 Content-Type: text/xml; Charset=UTF-8 User-Agent: XML Spy SOAPAction: Host: localhost:80 Content-Length: 0 Connection: Keep-Alive Cache-Control: no-cache - to get a response like this: --- Response HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Wed, 09 Aug 2006 16:49:30 GMT soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body myCustomResponse xmlns=urn:mynamespace AValue1/AValue /myCustomResponse /soapenv:Body /soapenv:Envelope -- How do I make this happend? It must be possible in some way, but how?? For more information, look att the TR-069 CWMP protocol, (http://www.dslforum.org/techwork/tr/TR-069.pdf), point 3.7.*, cause that's what I'm trying to implement. -- View this message in context: http://www.nabble.com/Generic-request%2C-empty-post-tf2102463.html#a5827632 Sent from the Axis - User forum at Nabble.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: Applets--Could not get it working
This isn't a signed certificate error, it is a missing class error message. One of your classes isn't being sent to the applet/browser. Do you have the jar file in which the Stub that is created for the WSDL included in the list of jar files for the applet? The applet tag that I use for the applet is the following: APPLET CODE='FileUpload.FileUpload' ARCHIVE='./fileupload/FileUpload.jar,./fileupload/support.jar,./fileupload/MY_STUB.jar' WIDTH='300' HEIGHT='300' ALIGN='bottom' The name of the jar file that contains my applet is FileUpload.jar, the name of the Stub jar file that was created by the JAVA2WSDL is called MY_STUB.jar, and I have another jar file for all the supporting classes used by AXIS all JARed up in a jar file called support.jar. Make sure you have all the necessary classes in your ARCHIVE attribute otherwise the applet will not have all the supporting classes to be able to do the Web Service connection and call. What I would do is get the applet running as an application, then remove all the jar files from it's classpath, and see if it will run. If not, keep adding jar files to the classpath to remove the errors and when you have all the errors fixed, those are all the jar files that will need to be included in the ARCHIVE attribute in your APPLET tag. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: KALYAN [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 5:58 PMTo: axis-user@ws.apache.orgSubject: RE: Applets--Could not get it working Its not a secure site. I had accepted the certificate that I created. But the applet works only if I modify the java.policy file. Let me know if I should give more info.Here is the error message I get.Exception in thread "Thread-7" java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.init(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getCategoryList(UnitConverterServiceClient.java:32) at unitconverter.panels.UnitConvertorPanel$2.run(UnitConvertorPanel.java:164)Exception in thread "Thread-8" java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.clinit(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.clinit(LogFactory.java:33) at org.apache.axis.handlers.BasicHandler.clinit(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.init(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getUnitList(UnitConverterServiceClient.java:52) at unitconverter.panels.UnitConvertorPanel.updateUnit1and2Lists(UnitConvertorPanel.java:211) at unitconverter.panels.UnitConvertorPanel$3.run(UnitConvertorPanel.java:166)Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source) at java.lang.ClassLoader.init(Unknown Source) at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.init(PsuedoSystemClassLoader.java:73) at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215) at org.apache.commons.discovery.jdk.JDK12Hooks.clinit(JDK12Hooks.java:73) ... 13 moreKalyanLarry Lemons [EMAIL PROTECTED] wrote: What error message are you getting? Is the siteat which the web service is hosted a secure site? If the certificate for which the applet was signed is a trusted certificate or is allowed to run by the client, i.e. the client clicks on the run or allow, or OK button that would enable the applet to run, then it should run, unless there are other certificates involved in the process, i.e. one installed on the web services server. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: KALYAN [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 4:31 PMTo: axis-user@ws.apache.orgSubject: Applets--Could not get it working Hi all,Has anyone found the solution to using java applets as the client.I could do it only this way.1.) Sign the required jars2.) Modify the java.policy file to grant { permission java.security.AllPermission; };So the users would not want to modify
Re: Generic request, empty post
Thank you for that answer! Since this is my first real WS project, and I haven't used AXIS and Tomcat before, I really don't know much (read anything :) about servlet filters. I'll look into it, but any help on the way (links to tut, code, mailing-lists etc) is very appriciated. I'm using Axis 1.4 with Tomcat 5.5.17 and j2sdk1.4.2_12 Anne Thomas Manes wrote: I suggest using a servlet filter to catch this request. On 8/16/06, jansson [EMAIL PROTECTED] wrote: ANYBODY?? Help... jansson wrote: I'm currently developing a servlet for two way communication, and need to be able to handle an empty post. I have a set of methods the client may call, but when the client doesn't have any more requests, it sends an empty HTTP post to my servlet. I can't affect the client, and I need to handle the empty post. The empty post is a way for the client to tell my service that it doesn't have anything more to request, although my service may want to tell the client something more, and the empty post consists of an HTTP header with Content-Length: 0, SOAPAction: and NOTHING in the HTTP Body. When my service receives this, it responds with a SAXParserException: Premature end of file. Now, I want this emtpy HTTP post (request) to trigger a custom method (just as a SOAP request triggers a method mapped by the first tag inside the body) with no input parameters, which, depending on results taken from a database, should respond with a SOAP envelope built up by the service. To make it simple: I want this: -- Request - POST /myservice HTTP/1.1 Content-Type: text/xml; Charset=UTF-8 User-Agent: XML Spy SOAPAction: Host: localhost:80 Content-Length: 0 Connection: Keep-Alive Cache-Control: no-cache - to get a response like this: --- Response HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Wed, 09 Aug 2006 16:49:30 GMT soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body myCustomResponse xmlns=urn:mynamespace AValue1/AValue /myCustomResponse /soapenv:Body /soapenv:Envelope -- How do I make this happend? It must be possible in some way, but how?? For more information, look att the TR-069 CWMP protocol, (http://www.dslforum.org/techwork/tr/TR-069.pdf), point 3.7.*, cause that's what I'm trying to implement. -- View this message in context: http://www.nabble.com/Generic-request%2C-empty-post-tf2102463.html#a5827632 Sent from the Axis - User forum at Nabble.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] -- View this message in context: http://www.nabble.com/Generic-request%2C-empty-post-tf2102463.html#a5832639 Sent from the Axis - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
External Jars and Dll's
I cant seem to find any information on what is the correct packaging Of external jars and dlls that my web service may require. How should External jars and dll's be packaged with my aar file?
Axis2 not replacing service class
Hi, I am using WSDL2Java to generated all code and services.xml from a wsdl file. Since I have a implementation class for the web service already, I thought I can simple replace the ServiceClass. But after I looked at the generated code, such as Axis2SampleDocLitServiceMessageReceiverInOut.java, it reference the Axis2SampleDocLitServiceSkeleton directly, even the code looks up the service class. Does anybody know how I can get around this problem ? Thanks John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to call php soap service in java soap client with axis?
You need to make sure you have all the required jar files in your classpath, i.e. all the jar files that came with AXIS. As for needing to install Tomcat, unless it is the soap client is running as a servlet or jsp, you shouldn't need Tomcat. The client will connect to the php soap service. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: j g [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:10 AMTo: axis-user@ws.apache.orgSubject: how to call php soap service in java soap client with axis? Hi,I am new for the Axis.I had a php soap service to query our mssql database, I also have a perl soap client to call the service by providing parameters like username, password etc. They both work fine. Now, I need to write a java soap client to call the php soap service instead of the soap client written in perl. Since the service is writen with php, I did not install tomcat at my client computer(do I need it?) Here is my java code.. When I compile the code, there are errors like:package org.apache.axis does not exist package mysrc.testjavasoap;import java.util.*;import org.apache.axis.AxisEngine;import org.apache.axis.client.Call;import org.apache.axis.soap.SOAPConstants;public class javasoap { public void main () throws Exception{ String url = ""http://www.bioinformatics.med.umich.edu/app/nlp/soap/dbquery.php">http://www.bioinformatics.med.umich.edu/app/nlp/soap/dbquery.php";String query="select top 10 * from DocText"; Call call = new Call(url); Object[] params = new Object[] {"db3", "bionlp","username", "password", query}; String result = (String)call.invoke("", params); }} Hope somebody can help me!Thanks --jg Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Re: Axis2 not replacing service class
Perhaps I'm missing something, but if you are using databinding that to me implies you want to use code that is autogenerated from your wsdl . If you already have a class, then why use databinding? Perhaps what you are looking for is the -ssi flag which will produce an interface which you can code to. If that's the case, just implement the interface in your class, use the -p flag the generate the package you want and use definitions name=YourService to match your class name. Just a suggestion . HTH, Robert http://www.braziloutsource.com/ On 8/16/06, Z Chen [EMAIL PROTECTED] wrote: Hi, I am using WSDL2Java to generated all code and services.xml from a wsdl file. Since I have a implementation class for the web service already, I thought I can simple replace the ServiceClass. But after I looked at the generated code, such as Axis2SampleDocLitServiceMessageReceiverInOut.java, it reference the Axis2SampleDocLitServiceSkeleton directly, even the code looks up the service class. Does anybody know how I can get around this problem ? Thanks John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] java.lang.NumberFormatException: badDate00
Hi When I'm sending java.util.Calendar by RPCClient, I'm getting exception: java.lang.NumberFormatException: badDate00 at org.apache.axis2.databinding.typemapping.SimpleTypeMapper.makeCalendar(SimpleTypeMapper.java:227) at org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSimpleTypeObject(SimpleTypeMapper.java:97) at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:216) at org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:445) at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:407) at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:364) I think that there is a problem in org.apache.axis2.databinding.utils.BeanUtil. Calendar object is deserialized: java.util.GregorianCalendar[time=1155740947187,areFieldsSet=true, ・・・] When Calendar(SimpleType) is deserialized, object.toString() is called. I think that it must be SimpleTypeMapper.isSimpleType(object). I hope that problem will be corrected. Thanks. Takanori - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2: how to use Java POJO beans
Hi , I have created a web service with the following two simple methods Method1: public Client getClient() { // Client is a simple java class with getter and setter. Client client= new Client(); client.setIdentifier(123); return l_ client; } Method2: The second method uses java primitives public String getValue(String para) { return para; } On the client side when I invoke method method2 , I did get the value para where as invoking method1 returns nothing. Do I need to do any mapping on my custom class Client somewhere? Code snippet to print outpuit on client side ... OMElement result = serviceClient.sendReceive(getPayload()); System.out.println(Result==+ l_ result); .. Here is my xml output (system out) on client side for method1 ns:getClientResponse xmlns:ns=http://org.apache.axis2/xsd;return /return //ns: getClientResponse (No data 123 in this XML) Any help is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple bindings/ports added to WSDL
I created a WSDL (named myService.wsdl) with 1 binding: type=axis2:versionPortType name=versionSOAP12Binding and 1 port. I created an aar file moved it to axis2/WEB-INF/services Everything works fine - however - when I view the wsdl via axis I always get 3 bindings 3 ports.. (as shown below - SOAP11Binding HttpBinding are added by axis2) why is this - am I missing a configuration property? I'm mostly curious as to the why how of this behavior. Thanks for the help! Jane ex. of service element in wsdl w/3 ports added by axis2: wsdl:service name=version - wsdl:port binding=axis2:versionSOAP11Binding name=versionSOAP11port0 soap:address location=http://umwwl06a14761.sbphrd.corpnet1.com:8080/axis2/services/version / /wsdl:port - wsdl:port binding=axis2:versionSOAP12Binding name=versionSOAP12port0 soap12:address location=http://umwwl06a14761.sbphrd.corpnet1.com:8080/axis2/services/version / /wsdl:port - wsdl:port binding=axis2:versionHttpBinding name=versionHttpport0 http:address location=http://umwwl06a14761.sbphrd.corpnet1.com:8080/axis2/rest/version / /wsdl:port /wsdl:service
Re: Axis2: how to use Java POJO beans
You're setting: client.setIdentifier(123); But returning: return l_ client; Is that what you intended to do ? HTH, Robert http://www.braziloutsource.com On 8/16/06, Charak, Vikas [EMAIL PROTECTED] wrote: Hi , I have created a web service with the following two simple methods Method1: public Client getClient() { // Client is a simple java class with getter and setter. Client client= new Client(); client.setIdentifier(123); return l_ client; } Method2: The second method uses java primitives public String getValue(String para) { return para; } On the client side when I invoke method method2 , I did get the value para where as invoking method1 returns nothing. Do I need to do any mapping on my custom class Client somewhere? Code snippet to print outpuit on client side ... OMElement result = serviceClient.sendReceive(getPayload()); System.out.println(Result==+ l_ result); .. Here is my xml output (system out) on client side for method1 ns:getClientResponse xmlns:ns=http://org.apache.axis2/xsd;return /return //ns: getClientResponse (No data 123 in this XML) Any help is appreciated. - 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: how to use Java POJO beans
Sorry here is the correct method Method1: public Client getClient() { // Client is a simple java class with getter and setter. Client client= new Client(); client.setIdentifier(123); return client; } -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 12:46 PM To: axis-user@ws.apache.org Subject: Re: Axis2: how to use Java POJO beans You're setting: client.setIdentifier(123); But returning: return l_ client; Is that what you intended to do ? HTH, Robert http://www.braziloutsource.com On 8/16/06, Charak, Vikas [EMAIL PROTECTED] wrote: Hi , I have created a web service with the following two simple methods Method1: public Client getClient() { // Client is a simple java class with getter and setter. Client client= new Client(); client.setIdentifier(123); return l_ client; } Method2: The second method uses java primitives public String getValue(String para) { return para; } On the client side when I invoke method method2 , I did get the value para where as invoking method1 returns nothing. Do I need to do any mapping on my custom class Client somewhere? Code snippet to print outpuit on client side ... OMElement result = serviceClient.sendReceive(getPayload()); System.out.println(Result==+ l_ result); .. Here is my xml output (system out) on client side for method1 ns:getClientResponse xmlns:ns=http://org.apache.axis2/xsd;return /return //ns: getClientResponse (No data 123 in this XML) Any help is appreciated. - 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: need help with service design issue (more info)
i just modified the code (see below) so that instead of passing the OMElement to the ftp thread, i will just be passing the datahandler. however, it is precisely in the data handler where the bottleneck occurs which renders this solution useless. public OMElement mtomService(OMElement element) throws Exception { //ThreadedFTPService goFTP = new ThreadedFTPService(element); //goFTP.start(); OMElement _fileNameEle = null; OMElement _fileElement = null; for (Iterator _iterator = element.getChildElements(); _iterator.hasNext();) { OMElement _ele = (OMElement) _iterator.next(); System.out.println(element: + _ele.getLocalName()); if (_ele.getLocalName().equalsIgnoreCase(fileName)) { _fileNameEle = _ele; continue; } if (_ele.getLocalName().equalsIgnoreCase(file)) { _fileElement = _ele; if (_fileNameEle == null || _fileElement == null ) { try { throw new AxisFault(Either Image or FileName is null); } catch (AxisFault e) { e.printStackTrace(); } } String fileName = _fileNameEle.getText(); _fileElement.build(); _fileElement.buildNext(); _fileElement.detach(); OMText binaryNode = (OMText) _fileElement.getFirstOMChild(); SimpleDateFormat timeFormat = new SimpleDateFormat(HH:mm:ss); System.out.println(start time: + timeFormat.format(new Date())); DataHandler actualDH = (DataHandler) binaryNode.getDataHandler(); System.out.println(end time: + timeFormat.format(new Date())); ThreadedFTPService goFTP = new ThreadedFTPService(fileName, actualDH); goFTP.start(); } } OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace ns = fac.createOMNamespace(urn://fakenamespace, ns); OMElement ele = fac.createOMElement(response, ns); ele.setText(File Saved); return ele; } -Original Message- From: Pader, Erwin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 12:01 PM To: axis-user@ws.apache.org Subject: need help with service design issue Hi All, we are planning to use axis2 to send hospital patient info using mtom (including scanned images, pdf docs, etc) to a service. this service will then start a new thread whose only function is to ftp the binary attachment to an external system. the service passes the whole OMElement to the ftp thread. the problem is it looks like the new thread closes or resets the socket connection to the binary attachment causing an exception. if i do not start a new thread my service will be tied up as it tries to readin in the attachment (DataHandler actualDH = (DataHandler) binaryNode.getDataHandler();). a 10 mb files takes 20 secs for my service to get the data handler. i need all your help please for a better solution to this. thanks! Erwin Pader HMA, Inc. Naples FL - 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: Axis 2: Creating SOAP body from SAX driver
Great example with regards tp XSLT processor ..Is there a way to specify the XSLT processor or is that hardcoded somewhere? (I thought it might be an option for BeanWriter?) Thanks, 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: Davanum Srinivas [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Wednesday, August 16, 2006 8:29 AM Subject: Re: Axis 2: Creating SOAP body from SAX driver Jochen, plz see the snippets in JaxmeDataBindingTemplate.xsl -- dims On 8/16/06, Jochen Wiedmann [EMAIL PROTECTED] wrote: Hi, as I read the Axis 2 implementation (AbstractInOutSyncMessageReceiver), it allows to stream a response, if the response can be pulled. In other words, if the response object behaves like an InputStream. Unfortunately, in my case this is not an option. I have an object, which can only push. For example, imagine an XMLFilter or SAX driver. Is it possible to stream a response in that manner? In other words, obtain an XMLWriter to which the body may be written? Thanks, Jochen - 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]
soap envelope response from axis 1.4
Hello: When I get the soap envelope response from the call object after a successful webservice call a. Use java parameter input ( say for Add operation the inputs are 2 float java objects) b. For output always register as follows call.registerTypeMapping(org.w3c.dom.Element.class, WebserviceUtils.getQName(param.getXmlQName()), new ElementSerializerFactory(), new ElementDeserializerFactory()); The soap response looks like below: soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" GetSimpleClassResponse xmlns="http://tempuri.org/" GetSimpleClassResult NameSimpleClassName/Name Value999/Value /GetSimpleClassResult /GetSimpleClassResponse /soapenv:Body Wondering if it is possible to get the soap response as below: soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" tem:GetSimpleClassResponse tem:GetSimpleClassResult tem:NameSimpleClassName/tem:Name tem:Value999/tem:Value /tem:GetSimpleClassResult /tem:GetSimpleClassResponse /soapenv:Body The xpath _expression_ for the second xml is straight forward compared to the first one ( ofcourse I can write a valid xpath for the first one also) Not sure if I need to add any property when I make the call to get the response message in the required format. Just want to make sure I'm not missing anything. Thanks for your time, Ravi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 not replacing service class
I have tried -ssi flag and the receiver class references the interface class not the skeleton class directly anymore. I am tring to make the interface class as common as possible, such as Axis2SampleDocLitService, not in Axis2 it generates Axis2SampleDocLitServiceSkeletonInterface.java, which looks too specific. Anybody knows a way to change the interface class name ? Thanks John --- robert lazarski [EMAIL PROTECTED] wrote: I believe inside the wsdl try changing 'definitions name=YourService ' or maybe eliminate the -ss flag which would eliminate the server side code . I've never tried that so you'll have to experiment . Here's the guide that explains the flags . http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html HTH, Robert http://www.braziloutsource.com On 8/16/06, Z Chen [EMAIL PROTECTED] wrote: I am using Jibx binding, so I have to use wsdl2java tool to generate the receive class. Even I use -p and -ssi, the receiver class still reference the Skeleton class, how can I change that ? May I change the class name of the service class ? What will the wsdl2java command look like ? Thanks John --- robert lazarski [EMAIL PROTECTED] wrote: Perhaps I'm missing something, but if you are using databinding that to me implies you want to use code that is autogenerated from your wsdl . If you already have a class, then why use databinding? Perhaps what you are looking for is the -ssi flag which will produce an interface which you can code to. If that's the case, just implement the interface in your class, use the -p flag the generate the package you want and use definitions name=YourService to match your class name. Just a suggestion . HTH, Robert http://www.braziloutsource.com/ On 8/16/06, Z Chen [EMAIL PROTECTED] wrote: Hi, I am using WSDL2Java to generated all code and services.xml from a wsdl file. Since I have a implementation class for the web service already, I thought I can simple replace the ServiceClass. But after I looked at the generated code, such as Axis2SampleDocLitServiceMessageReceiverInOut.java, it reference the Axis2SampleDocLitServiceSkeleton directly, even the code looks up the service class. Does anybody know how I can get around this problem ? Thanks John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need help with service design issue (more info)
Hi Erwin, AFAIK it should be the calling thread who is closing the socket upon sending the response or finishing the message flow. IMHO you might not be able to avoid that 20 sec delay, cause the file anyway has to be transfered before closing the socket. You can use an async client or you can send one way fire and forget requests to make the client non-blocking. AFAICS even a server side async service will not be able to solve this problem. ~Thilina On 8/16/06, Pader, Erwin [EMAIL PROTECTED] wrote: i just modified the code (see below) so that instead of passing the OMElement to the ftp thread, i will just be passing the datahandler. however, it is precisely in the data handler where the bottleneck occurs which renders this solution useless. public OMElement mtomService(OMElement element) throws Exception { //ThreadedFTPService goFTP = new ThreadedFTPService(element); //goFTP.start(); OMElement _fileNameEle = null; OMElement _fileElement = null; for (Iterator _iterator = element.getChildElements(); _iterator.hasNext();) { OMElement _ele = (OMElement) _iterator.next(); System.out.println(element: + _ele.getLocalName()); if (_ele.getLocalName().equalsIgnoreCase(fileName)) { _fileNameEle = _ele; continue; } if (_ele.getLocalName().equalsIgnoreCase(file)) { _fileElement = _ele; if (_fileNameEle == null || _fileElement == null ) { try { throw new AxisFault(Either Image or FileName is null); } catch (AxisFault e) { e.printStackTrace(); } } String fileName = _fileNameEle.getText(); _fileElement.build(); _fileElement.buildNext(); _fileElement.detach(); OMText binaryNode = (OMText) _fileElement.getFirstOMChild(); SimpleDateFormat timeFormat = new SimpleDateFormat(HH:mm:ss); System.out.println(start time: + timeFormat.format(new Date())); DataHandler actualDH = (DataHandler) binaryNode.getDataHandler(); System.out.println(end time: + timeFormat.format(new Date())); ThreadedFTPService goFTP = new ThreadedFTPService(fileName, actualDH); goFTP.start(); } } OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace ns = fac.createOMNamespace(urn://fakenamespace, ns); OMElement ele = fac.createOMElement(response, ns); ele.setText(File Saved); return ele; } -Original Message- From: Pader, Erwin [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 12:01 PM To: axis-user@ws.apache.org Subject: need help with service design issue Hi All, we are planning to use axis2 to send hospital patient info using mtom (including scanned images, pdf docs, etc) to a service. this service will then start a new thread whose only function is to ftp the binary attachment to an external system. the service passes the whole OMElement to the ftp thread. the problem is it looks like the new thread closes or resets the socket connection to the binary attachment causing an exception. if i do not start a new thread my service will be tied up as it tries to readin in the attachment (DataHandler actualDH = (DataHandler) binaryNode.getDataHandler();). a 10 mb files takes 20 secs for my service to get the data handler. i need all your help please for a better solution to this. thanks! Erwin Pader HMA, Inc. Naples FL - 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] -- May the SourcE be with u http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ http://www.bloglines.com/blog/Thilina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Applets--Could not get it working
It seems to me that at the very least, information on how to do this should be in the user guide. Also, it seems that the error message that Kaylan got was not particularly understandable, to say the least, and did not help much in diagnosing the problem. I would request that Kaylan please file a JIRA for one or both of the above issues. Derek -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 4:13 AM To: KALYAN Cc: axis-user@ws.apache.org Subject: Re: Applets--Could not get it working There you go! :) On 8/16/06, KALYAN [EMAIL PROTECTED] wrote: OK GOT IT. I BIG TIME GOT IT WORKING. People you got two options. You don't have to take the pain of second option.. but I am just telling. 1.) Copy latest axis and commons-discovery snapshot jar files from http://people.apache.org/repository/axis/jars/axis-1.4-SNAPSHOT.jar http://people.apache.org/repository/commons-discovery/jars/com mons-discovery-SNAPSHOT.jar rename them to remove SNAPSHOT text if you want to. 2.) a.)Checkout latest build using svn co http://svn.apache.org/repos/asf/webservices/axis/trunk/java axis b.)Build it using ant. c.) Copy the built commons-discovery and axis jars to wherever you need it. Place them where your applets suck them in... thats it. Thats it...no signing of jars, no changing java.policy file ... I am relieved. Thanks very much dims. May be if a new release of axis is done people would not come accross this issue anymore. Kalyan Davanum Srinivas [EMAIL PROTECTED] wrote: Please see the following threads: http://marc.theaimsgroup.com/?l=axis-userw=2r=1s=applet+discoveryq =b On 8/15/06, KALYAN wrote: Its not a secure site. I had accepted the certificate that I created. But the applet works only if I modify the java.policy file. Let me know if I should give more info. Here is the error message I get. Exception in thread Thread-7 java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getCategoryL ist(UnitConverterServiceClient.java:32) at unitconverter.panels.UnitConvertorPanel$2.run(UnitConvertorPanel.java: 164) Exception in thread Thread-8 java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSing leton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSing leton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory. java:41) at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33) at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getUnitList( UnitConverterServiceClient.java:52) at unitconverter.panels.UnitConvertorPanel.updateUnit1and2Lists(UnitConve rtorPanel.java:211) at unitconverter.panels.UnitConvertorPanel$3.run(UnitConvertorPanel.java: 166) Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source) at java.lang.ClassLoader.(Unknown Source) at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.(PsuedoSystem ClassLoader.java:73) at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK1 2Hooks.java:215) at org.apache.commons.discovery.jdk.JDK12Hooks.(JDK12Hooks.java:73) ... 13 more Kalyan Larry Lemons wrote: What error message are you getting? Is the site at which the web service is hosted a secure site? If the certificate for which the applet was signed is a trusted certificate or is allowed to run by the client, i.e. the client clicks on the run or allow, or OK button that would enable the applet to run, then it should run, unless there are other certificates involved in the process, i.e. one installed on the web services server. Thank you, Larry M. Lemons (304)
RE: Applets--Could not get it working
It seems to me that at the very least, information on how to do this should be in the user guide. Also, it seems that the error message that Kaylan got was not particularly understandable, to say the least, and did not help much in diagnosing the problem. I would request that Kaylan please file a JIRA for one or both of the above issues. Derek -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 4:13 AM To: KALYAN Cc: axis-user@ws.apache.org Subject: Re: Applets--Could not get it working There you go! :) On 8/16/06, KALYAN [EMAIL PROTECTED] wrote: OK GOT IT. I BIG TIME GOT IT WORKING. People you got two options. You don't have to take the pain of second option.. but I am just telling. 1.) Copy latest axis and commons-discovery snapshot jar files from http://people.apache.org/repository/axis/jars/axis-1.4-SNAPSHOT.jar http://people.apache.org/repository/commons-discovery/jars/com mons-discovery-SNAPSHOT.jar rename them to remove SNAPSHOT text if you want to. 2.) a.)Checkout latest build using svn co http://svn.apache.org/repos/asf/webservices/axis/trunk/java axis b.)Build it using ant. c.) Copy the built commons-discovery and axis jars to wherever you need it. Place them where your applets suck them in... thats it. Thats it...no signing of jars, no changing java.policy file ... I am relieved. Thanks very much dims. May be if a new release of axis is done people would not come accross this issue anymore. Kalyan Davanum Srinivas [EMAIL PROTECTED] wrote: Please see the following threads: http://marc.theaimsgroup.com/?l=axis-userw=2r=1s=applet+discoveryq =b On 8/15/06, KALYAN wrote: Its not a secure site. I had accepted the certificate that I created. But the applet works only if I modify the java.policy file. Let me know if I should give more info. Here is the error message I get. Exception in thread Thread-7 java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getCategoryL ist(UnitConverterServiceClient.java:32) at unitconverter.panels.UnitConvertorPanel$2.run(UnitConvertorPanel.java: 164) Exception in thread Thread-8 java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSing leton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSing leton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory. java:41) at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33) at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:110) at org.apache.axis.client.Service.(Service.java:119) at unitconverter.webserviceclient.UnitConverterServiceClient.getUnitList( UnitConverterServiceClient.java:52) at unitconverter.panels.UnitConvertorPanel.updateUnit1and2Lists(UnitConve rtorPanel.java:211) at unitconverter.panels.UnitConvertorPanel$3.run(UnitConvertorPanel.java: 166) Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source) at java.lang.ClassLoader.(Unknown Source) at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.(PsuedoSystem ClassLoader.java:73) at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK1 2Hooks.java:215) at org.apache.commons.discovery.jdk.JDK12Hooks.(JDK12Hooks.java:73) ... 13 more Kalyan Larry Lemons wrote: What error message are you getting? Is the site at which the web service is hosted a secure site? If the certificate for which the applet was signed is a trusted certificate or is allowed to run by the client, i.e. the client clicks on the run or allow, or OK button that would enable the applet to run, then it should run, unless there are other certificates involved in the process, i.e. one installed on the web services server. Thank you, Larry M. Lemons (304)
[Axis2] Argument type mismatch, wsdl sorcery
Hi List, I have generated two services. The first one runs perfectly. The other which is very similar, throws the error below at the time of response. I cannot find where this is coming from, but I did see that when I generate the code from the WSDL2Java tool in Eclipse, it generates a bunch of related stubs from a previous incarnation of the service (Factory, etc), and when I look at the WSDL from the Axis2 admin interface (web browser) I see it contains a bunch of ops/messages from the previous incarnation also. However, when I look at the wsdl inside of eclipse, this is not the case. Questions: 1. How is it possible for the wsdl viewed in Axis2 admin to be different from the wsdl I generated in eclipse? 2. How is the gen tool creating all these factories/nested classes/methods in the stub that do not exist in the class? 3. Is there a relation between the above 2 issues and the error I am getting? Hope someone can provide insight... rg.apache.axis2.AxisFault: argument type mismatch at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO peration.java:287) at com.boeing.soa.ajtest.TestService2Stub.processData(TestService2Stub.java :106) at com.boeing.soa.ajtest.TestClient.runTestService2(TestClient.java:126) at com.boeing.soa.ajtest.TestClient.main(TestClient.java:53) Caused by: java.lang.Exception: org.apache.axis2.AxisFault: argument type mismatch at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogi c(RawXMLINOutMessageReceiver.java:102) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abst ractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques t(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136) 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(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.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:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Thread.java:595) Thanks, Alan J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 not replacing service class
Chen- Inside codegen-config.properties you will see java.skeleton.interface.template=org.apache.axis2.wsdl.codegen.writer.SkeletonInterfaceWriter,/org/apache/axis2/wsdl/template/java/SkeletonInterfaceTemplate.xsl so the code for org.apache.axis2.wsdl.codegen.writer.SkeletonInterfaceWriter would have to reflect your change I guess I dont understand why you need to change the name?? 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: Z Chen [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Wednesday, August 16, 2006 1:09 PM Subject: Re: Axis2 not replacing service class I have tried -ssi flag and the receiver class references the interface class not the skeleton class directly anymore. I am tring to make the interface class as common as possible, such as Axis2SampleDocLitService, not in Axis2 it generates Axis2SampleDocLitServiceSkeletonInterface.java, which looks too specific. Anybody knows a way to change the interface class name ? Thanks John --- robert lazarski [EMAIL PROTECTED] wrote: I believe inside the wsdl try changing 'definitions name=YourService ' or maybe eliminate the -ss flag which would eliminate the server side code . I've never tried that so you'll have to experiment . Here's the guide that explains the flags . http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html HTH, Robert http://www.braziloutsource.com On 8/16/06, Z Chen [EMAIL PROTECTED] wrote: I am using Jibx binding, so I have to use wsdl2java tool to generate the receive class. Even I use -p and -ssi, the receiver class still reference the Skeleton class, how can I change that ? May I change the class name of the service class ? What will the wsdl2java command look like ? Thanks John --- robert lazarski [EMAIL PROTECTED] wrote: Perhaps I'm missing something, but if you are using databinding that to me implies you want to use code that is autogenerated from your wsdl . If you already have a class, then why use databinding? Perhaps what you are looking for is the -ssi flag which will produce an interface which you can code to. If that's the case, just implement the interface in your class, use the -p flag the generate the package you want and use definitions name=YourService to match your class name. Just a suggestion . HTH, Robert http://www.braziloutsource.com/ On 8/16/06, Z Chen [EMAIL PROTECTED] wrote: Hi, I am using WSDL2Java to generated all code and services.xml from a wsdl file. Since I have a implementation class for the web service already, I thought I can simple replace the ServiceClass. But after I looked at the generated code, such as Axis2SampleDocLitServiceMessageReceiverInOut.java, it reference the Axis2SampleDocLitServiceSkeleton directly, even the code looks up the service class. Does anybody know how I can get around this problem ? Thanks John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 not replacing service class
I want to seperate the generated class from my own classes, so I would have com.mycom.MyService as the interface and being referenced by the MessageReceiver class and MyServiceImpl implementing MyService as the serviceClass. A MyServiceSkeletonInterface in my repository doesn't follow my naming convention. John --- Martin Gainty [EMAIL PROTECTED] wrote: Chen- Inside codegen-config.properties you will see java.skeleton.interface.template=org.apache.axis2.wsdl.codegen.writer.SkeletonInterfaceWriter,/org/apache/axis2/wsdl/template/java/SkeletonInterfaceTemplate.xsl so the code for org.apache.axis2.wsdl.codegen.writer.SkeletonInterfaceWriter would have to reflect your change I guess I dont understand why you need to change the name?? 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: Z Chen [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Wednesday, August 16, 2006 1:09 PM Subject: Re: Axis2 not replacing service class I have tried -ssi flag and the receiver class references the interface class not the skeleton class directly anymore. I am tring to make the interface class as common as possible, such as Axis2SampleDocLitService, not in Axis2 it generates Axis2SampleDocLitServiceSkeletonInterface.java, which looks too specific. Anybody knows a way to change the interface class name ? Thanks John --- robert lazarski [EMAIL PROTECTED] wrote: I believe inside the wsdl try changing 'definitions name=YourService ' or maybe eliminate the -ss flag which would eliminate the server side code . I've never tried that so you'll have to experiment . Here's the guide that explains the flags . http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html HTH, Robert http://www.braziloutsource.com On 8/16/06, Z Chen [EMAIL PROTECTED] wrote: I am using Jibx binding, so I have to use wsdl2java tool to generate the receive class. Even I use -p and -ssi, the receiver class still reference the Skeleton class, how can I change that ? May I change the class name of the service class ? What will the wsdl2java command look like ? Thanks John --- robert lazarski [EMAIL PROTECTED] wrote: Perhaps I'm missing something, but if you are using databinding that to me implies you want to use code that is autogenerated from your wsdl . If you already have a class, then why use databinding? Perhaps what you are looking for is the -ssi flag which will produce an interface which you can code to. If that's the case, just implement the interface in your class, use the -p flag the generate the package you want and use definitions name=YourService to match your class name. Just a suggestion . HTH, Robert http://www.braziloutsource.com/ On 8/16/06, Z Chen [EMAIL PROTECTED] wrote: Hi, I am using WSDL2Java to generated all code and services.xml from a wsdl file. Since I have a implementation class for the web service already, I thought I can simple replace the ServiceClass. But after I looked at the generated code, such as Axis2SampleDocLitServiceMessageReceiverInOut.java, it reference the Axis2SampleDocLitServiceSkeleton directly, even the code looks up the service class. Does anybody know how I can get around this problem ? Thanks John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around
Re: [Axis2] Argument type mismatch, wsdl sorcery
Hi Alan, I am not sure what you meant by 'a previous incarnation' ? perhaps you could attach the two WSDLs ? On 8/16/06, Jones, Alan R [EMAIL PROTECTED] wrote: Hi List, I have generated two services. The first one runs perfectly. The other which is very similar, throws the error below at the time of response. I cannot find where this is coming from, but I did see that when I generate the code from the WSDL2Java tool in Eclipse, it generates a bunch of related stubs from a previous incarnation of the service (Factory, etc), and when I look at the WSDL from the Axis2 admin interface (web browser) I see it contains a bunch of ops/messages from the previous incarnation also. However, when I look at the wsdl inside of eclipse, this is not the case. Questions: 1. How is it possible for the wsdl viewed in Axis2 admin to be different from the wsdl I generated in eclipse? 2. How is the gen tool creating all these factories/nested classes/methods in the stub that do not exist in the class? 3. Is there a relation between the above 2 issues and the error I am getting? Hope someone can provide insight... rg.apache.axis2.AxisFault: argument type mismatch at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO peration.java:287) at com.boeing.soa.ajtest.TestService2Stub.processData(TestService2Stub.java :106) at com.boeing.soa.ajtest.TestClient.runTestService2(TestClient.java:126) at com.boeing.soa.ajtest.TestClient.main(TestClient.java:53) Caused by: java.lang.Exception: org.apache.axis2.AxisFault: argument type mismatch at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogi c(RawXMLINOutMessageReceiver.java:102) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abst ractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques t(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136) 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(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.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:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Thread.java:595) Thanks, Alan J - 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]
Re: Axis 2: Creating SOAP body from SAX driver
See, the problem is *IF* you need to secure the soap message, this will fail since with this hack, you are just writing it to the outputstream. -- dims On 8/16/06, Jochen Wiedmann [EMAIL PROTECTED] wrote: Davanum Srinivas wrote: plz see the snippets in JaxmeDatabindingTemplate.xsl Are you referring to the toOM method? But that's not exactly streaming, isn't it? It simply converts the SAX drivers output into a (possibly large) OM tree? In the meantime, I've found a solution, which I personally do consider better: return new OMElementImpl(qName, null, pCommands.getOMFactory()){ protected void internalSerialize(XMLStreamWriter pWriter, boolean pCache) throws XMLStreamException { if (pCache) { throw new IllegalStateException(Caching isn't implemented.); } // Fire the SAX drivers output into pWriter here ... } }; - 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]
Axis 2 in WebSphere6
Hi I have Axis 2 running inside Websphere 6 and I can bring up the Adminpage. The same service which I have running in Tomcat, Iam attempting to put into the instance of Axis2 running in Websphere. But it seems that the WEB-INF\services.xmlwhich is so readily found in Tomcat is not locatable within Websphere 6. The error is as follows Error: org.apache.axis2.deployment.DeploymentException: services.xml not found for service 'C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\profiles\default\installedApps\U0014135-XPANode01Cell\axis2ReleaseEAR.ear\axis2Release.war\WEB-INF\services\FoundationServicesServerService.aar'; nested exception is: org.apache.axis2.deployment.DeploymentException: services.xml not found for service 'C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\profiles\default\installedApps\U0014135-XPANode01Cell\axis2ReleaseEAR.ear\axis2Release.war\WEB-INF\services\FoundationServicesServerService.aar' at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:124) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:620) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:91) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:142) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:42) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:213) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:274) at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1398) at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor Any assistence would be greatly appreciated. Thanks Dave Ziebol
Re: Internal Server Error Accessing Version Service's WSDL
Thank you,I fetched the source and generated the axis2.war from the source and the problem no longer exists.On 8/15/06, Davanum Srinivas [EMAIL PROTECTED] wrote:Kris,Please use the nightly build and open a bug report with the stack trace if you still face the problem. (Also check the email archives,there was traffic on a releated problem in weblogic)thanks,dimsOn 8/15/06, Kristopher Huggins [EMAIL PROTECTED] wrote: I'm getting an internal server error when accessing the version services WSDL. I've downloaded the 1.0 axis2.war ( http://ws.apache.org/axis2/download/1_0/download.cgi ) and deployed it in Weblogic 8.1 after making the following modifications: 1.Added weblogic.xml to axis2.war's WEB-INF as described here ( http://ws.apache.org/axis/java/install.html ) 2.Tweaked HappyAxis.jsp to help debug classpath issues. According to the HappyAxis.jsp page, it can access the version web service, however, when I click the link in the web console to view the services wsdl file, I get an Internal Server Error and the following is in the weblogic console: Aug 14, 2006 3:52:21 PM EDT Error HTTP BEA-101017 [ServletContext(id=28303739 ,name=axis2,context-path=/axis2)] Root cause of ServletException. org.apache.axis2.AxisFault : null; nested exception is: java.lang.ClassCastException at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533) at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144) at org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89) at org.apache.axis2.transport.http.AxisServlet.doGet (AxisServlet.java:109) at javax.servlet.http.HttpServlet.service (HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java :1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java :321)at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java :3764) at weblogic.servlet.internal.ServletRequestImpl.execute (ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Caused by: java.lang.ClassCastException at javax.xml.transform.TransformerFactory.newInstance(Unknown Source) at org.apache.ws.commons.schema.XmlSchema.serialize_internal(XmlSchema.java:214) at org.apache.ws.commons.schema.XmlSchema.write (XmlSchema.java:200) at org.apache.axis2.description.AxisService2OM.generateOM (AxisService2OM.java:147) at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:553) ... 16 more Here is some potentially pertinent info: Found TransformerFactory (javax.xml.transform.TransformerFactory) at C:\bea81\weblogic81\samples\domains\examples\examplesServer\.wlnotdelete\extract\examplesServer__appsdir_axis2_war_axis2\jarfiles\WEB-INF\lib\xml- apis-1.3.02.jar Servlet version2.3 PlatformWebLogic Server 8.1 SP4 Mon Nov 29 16:21:29 PST 2004 471647 sun.boot.class.path=c:\bea81\jdk142_05\jre\lib\rt.jar;c:\bea81\jdk142_05\jre\lib\i18n.jar;c:\bea81\jdk142_05\jre\lib\sunrsasign.jar;c:\bea81\jdk142_05\jre\lib\jsse.jar;c:\bea81\jdk142_05\jre \lib\jce.jar;c:\bea81\jdk142_05\jre\lib\charsets.jar;c:\bea81\jdk142_05\jre\classes--Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
[axis2] [jibx] deployed axis2 doc/lit/wrapped wsdl generation issue
Hi I am trying to port my existing Axis1 application to Axis2. 1. I have a few java beans on which I run the axis1 java2wsdl to create a reference wsdl file. 2. extract the schema part of the generated WSDL and adjust the namespaces a bit to use jibx xsd2jibx tool which generates the java classes and services.xml 3. the axis2 wsdl2java is used to generate the ServiceSkeletonInterface.java, ServiceSkeleton.java and ErgoServiceMessageReceiverInOut.java. Input is the reference wsdl and the jibx services.xml. 4. the ServiceSkeleton is edited and an empty reponse type object is returned 5. then the ergo.aar is assembled and this file also contains META-INF/services.xml along with my reference WSDL file. 6. this is deployed in axis2. I tested both release 1.0 and a build from maven. 7. MS office 2003 Web Tools is used to get the axis2 server generated WSDL but no object are constructed. The reference wsdl generated by axis1 java2wsdl works fine and MS office 2003 Web Tools creates the VB necessary to use my axis1 web service. It took me a while to find an example of the major differences in the two WSDL-files. I am not a WSDL guru (yet) but here is an extract of a difference between the reference wsdl and the axis2 generated: reference wsdl extract: wsdl:operation name=ergoSave wsdl:input message=impl:ergoSaveRequest name=ergoSaveRequest / wsdl:output message=impl:ergoSaveResponse name=ergoSaveResponse / /wsdl:operation axis2 deployed service generated wsdl: wsdl:operation xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; name=ergoSave wsdl:input xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; message=impl:ergoSaveRequest / wsdl:output xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; message=impl:ergoSaveResponse wsaw:Action=transport.ergo.com/Ergo/ergoSaveResponse / /wsdl:operation also see the two attached images from the eclipse wsdl editor my goal is to generate doc/lit wrapped wsdl which apparently is preferred by MS software. please advice. /johan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
webservices working in Axis2 stand-alone server but not on tomcat
I have a web services defined. Using Axis stand-alone simpleHttpServer, I am able to invoke the service. But when I dropped the .aar file on tomcat server, I can see the service is deployed by listing the service and seeing the details of the services. But when I tried to invoke it from a java client, I got nothing ! I can see sth generated in the log file, such as the IllegalStateException, do I have to do anything extra than just dropping the .aar file ? Thanks java.lang.IllegalStateException at org.apache.coyote.Response.reset(Response.java:296) at org.apache.coyote.tomcat4.CoyoteResponse.reset(CoyoteResponse.java:580) at org.apache.coyote.tomcat4.CoyoteResponse.reset(CoyoteResponse.java:776) at org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:364) at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:278) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:128) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to call php soap service in java soap client with axis?
Hi Larry Lemons,Thank you very much for your reply. As what you said, I have all jar files in my classpath, it worked and generate a class file. But, when I run the class I got errors:C:\axis-1_4java -classpath lib\axis-ant.jar;lib\axis.jar;lib\commons-discovery-0.2.jar;lib\commons-logging-1.0.4.jar;lib\jaxrpc.jar;lib\log4j-1.2.8.jar;lib\saaj.jar;lib\wsdl4j-1.5.1.jar; javasoap- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.Exception in thread "main" AxisFaultfaultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalExceptionfaultSubcode:faultString: No operation name specified!faultActor:faultNode:faultDetail: {http://xml.apache.org/axis/}stackTrace:No operation name specified! at org.apache.axis.client.Call.invoke(Call.java:1809) at javasoap.main(javasoap.java:14) {http://xml.apache.org/axis/}hostname:StatesLab4 No operation name specified! at org.apache.axis.client.Call.invoke(Call.java:1809) at javasoap.main(javasoap.java:14) Here is my java code import java.util.*;import org.apache.axis.AxisEngine;import org.apache.axis.client.Call;import org.apache.axis.soap.SOAPConstants;public class javasoap { public static void main(String args[]) throws Exception{ String url ="" "http://www.bioinformatics.med.umich.edu/app/nlp/soap/dbquery.php"; String query="select top 10 * from DocText"; Call call = new Call(url); Object[] params = new Object[] {"db3", "bionlp","username", "password", query}; String result = (String)call.invoke(params); System.out.println(result); }} I could not get much help from google. Could you please give some suggestion? Looking forward to hearing from you. Thanks, --jg Larry Lemons [EMAIL PROTECTED] wrote: You need to make sure you have all the required jar files in your classpath, i.e. all the jar files that came with AXIS. As for needing to install Tomcat, unless it is the soap client is running as a servlet or jsp, you shouldn't need Tomcat. The client will connect to the php soap service. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: j g [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:10 AMTo: axis-user@ws.apache.orgSubject: how to call php soap service in java soap client with axis? Hi,I am new for the Axis.I had a php soap service to query our mssql database, I also have a perl soap client to call the service by providing parameters like username, password etc. They both work fine. Now, I need to write a java soap client to call the php soap service instead of the soap client written in perl. Since the service is writen with php, I did not install tomcat at my client computer(do I need it?)Here is my java code.. When I compile the code, there are errors like:package org.apache.axis does not existpackage mysrc.testjavasoap;import java.util.*;import org.apache.axis.AxisEngine;import org.apache.axis.client.Call;import org.apache.axis.soap.SOAPConstants;public class javasoap { public void main () throws Exception{ String url = ""http://www.bioinformatics.med.umich.edu/app/nlp/soap/dbquery.php">http://www.bioinformatics.med.umich.edu/app/nlp/soap/dbquery.php";String query="select top 10 * from DocText"; Call call = new Call(url); Object[] params = new Object[] {"db3", "bionlp","username", "password", query}; String result = (String)call.invoke("", params); }} Hope somebody can help me!Thanks --jg Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
RE: Axis2: how to use Java POJO beans
My Mistake. My WSDL was wrong. For some reason Axis2 Eclipse plugin generates wrong WSDL (from Java code) if you have a Java Bean as input or output parameter. I have to manually modify it to deploy the service. Any one else faces such a problem? -Original Message- From: Charak, Vikas Sent: Wednesday, August 16, 2006 12:49 PM To: 'axis-user@ws.apache.org' Subject: RE: Axis2: how to use Java POJO beans Sorry here is the correct method Method1: public Client getClient() { // Client is a simple java class with getter and setter. Client client= new Client(); client.setIdentifier(123); return client; } -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 12:46 PM To: axis-user@ws.apache.org Subject: Re: Axis2: how to use Java POJO beans You're setting: client.setIdentifier(123); But returning: return l_ client; Is that what you intended to do ? HTH, Robert http://www.braziloutsource.com On 8/16/06, Charak, Vikas [EMAIL PROTECTED] wrote: Hi , I have created a web service with the following two simple methods Method1: public Client getClient() { // Client is a simple java class with getter and setter. Client client= new Client(); client.setIdentifier(123); return l_ client; } Method2: The second method uses java primitives public String getValue(String para) { return para; } On the client side when I invoke method method2 , I did get the value para where as invoking method1 returns nothing. Do I need to do any mapping on my custom class Client somewhere? Code snippet to print outpuit on client side ... OMElement result = serviceClient.sendReceive(getPayload()); System.out.println(Result==+ l_ result); .. Here is my xml output (system out) on client side for method1 ns:getClientResponse xmlns:ns=http://org.apache.axis2/xsd;return /return //ns: getClientResponse (No data 123 in this XML) Any help is appreciated. - 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: how to call php soap service in java soap client with axis?
So, I'm guessing nobody has any ideas on this one? Or is more information needed to get an answer? I really do need some help. We are at at stand still and have no other ideas. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: Larry Lemons [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:58 AMTo: axis-user@ws.apache.orgSubject: RE: how to call php soap service in java soap client with axis? You need to make sure you have all the required jar files in your classpath, i.e. all the jar files that came with AXIS. As for needing to install Tomcat, unless it is the soap client is running as a servlet or jsp, you shouldn't need Tomcat. The client will connect to the php soap service. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: j g [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:10 AMTo: axis-user@ws.apache.orgSubject: how to call php soap service in java soap client with axis? Hi,I am new for the Axis.I had a php soap service to query our mssql database, I also have a perl soap client to call the service by providing parameters like username, password etc. They both work fine. Now, I need to write a java soap client to call the php soap service instead of the soap client written in perl. Since the service is writen with php, I did not install tomcat at my client computer(do I need it?) Here is my java code.. When I compile the code, there are errors like:package org.apache.axis does not exist package mysrc.testjavasoap;import java.util.*;import org.apache.axis.AxisEngine;import org.apache.axis.client.Call;import org.apache.axis.soap.SOAPConstants;public class javasoap { public void main () throws Exception{ String url = ""http://www.bioinformatics.med.umich.edu/app/nlp/soap/dbquery.php">http://www.bioinformatics.med.umich.edu/app/nlp/soap/dbquery.php";String query="select top 10 * from DocText"; Call call = new Call(url); Object[] params = new Object[] {"db3", "bionlp","username", "password", query}; String result = (String)call.invoke("", params); }} Hope somebody can help me!Thanks --jg Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Error Fetching http headers
I have some web services running on axis 1.4 and a client who is trying to access it via php soap. He is running into problems with an error that says Caught exception: Error Fetching http headers. Exiting. I am not sure what's causing this problem. I have tried using his code on my local laptop and have been unable to replicate the error. Does anybody know what causes this sort of error and what potential solutions to this problem are? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [axis2] [jibx] deployed axis2 doc/lit/wrapped wsdl generation issue
Hi Johan, The shown WSDL fragments are almost the same (I'm not sure why the wsdl namespace is declared in every element - probably one of the StAX writer issues) and the input and out put name being absent is not really a problem since there is no parameter order enforced. Presence of other attributes (belonging to other namespaces) is also not a problem since WSDL allows it. I'm thinking it might have something to do with the schemas so It would be helpful if you can attach the two WSDL files. Ajith On 8/16/06, Johan Lundberg [EMAIL PROTECTED] wrote: Hi I am trying to port my existing Axis1 application to Axis2. 1. I have a few java beans on which I run the axis1 java2wsdl to create a reference wsdl file. 2. extract the schema part of the generated WSDL and adjust the namespaces a bit to use jibx xsd2jibx tool which generates the java classes and services.xml 3. the axis2 wsdl2java is used to generate the ServiceSkeletonInterface.java, ServiceSkeleton.java and ErgoServiceMessageReceiverInOut.java. Input is the reference wsdl and the jibx services.xml. 4. the ServiceSkeleton is edited and an empty reponse type object is returned 5. then the ergo.aar is assembled and this file also contains META-INF/services.xml along with my reference WSDL file. 6. this is deployed in axis2. I tested both release 1.0 and a build from maven. 7. MS office 2003 Web Tools is used to get the axis2 server generated WSDL but no object are constructed. The reference wsdl generated by axis1 java2wsdl works fine and MS office 2003 Web Tools creates the VB necessary to use my axis1 web service. It took me a while to find an example of the major differences in the two WSDL-files. I am not a WSDL guru (yet) but here is an extract of a difference between the reference wsdl and the axis2 generated: reference wsdl extract: wsdl:operation name=ergoSave wsdl:input message=impl:ergoSaveRequest name=ergoSaveRequest / wsdl:output message=impl:ergoSaveResponse name=ergoSaveResponse / /wsdl:operation axis2 deployed service generated wsdl: wsdl:operation xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; name=ergoSave wsdl:input xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; message=impl:ergoSaveRequest / wsdl:output xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; message=impl:ergoSaveResponse wsaw:Action=transport.ergo.com/Ergo/ergoSaveResponse / /wsdl:operation also see the two attached images from the eclipse wsdl editor my goal is to generate doc/lit wrapped wsdl which apparently is preferred by MS software. please advice. /johan - 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]
Re: how to call php soap service in java soap client with axis?
You need to set some attributes in the call object. Take a look at the Axis getting started documentation (http://ws.apache.org/axis/java/user-guide.html#BasicsGettingStarted). At a minimum, you must set the target URL and the operation name, eg: call.setTargetEndpointAddress( new java.net.URL(url) ); call.setOperationName(new QName(qualifying-namespace, operationName)); Do you have a WSDL for the service? That will tell you the appropriate values to specify. If not, then do you have a sample message that worked from the perl client? You can find the qualified name of the operation from it -- it's the name of child element of the soap:Body. Anne On 8/16/06, Larry Lemons [EMAIL PROTECTED] wrote: So, I'm guessing nobody has any ideas on this one? Or is more information needed to get an answer? I really do need some help. We are at at stand still and have no other ideas. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: Larry Lemons [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:58 AM To: axis-user@ws.apache.org Subject: RE: how to call php soap service in java soap client with axis? You need to make sure you have all the required jar files in your classpath, i.e. all the jar files that came with AXIS. As for needing to install Tomcat, unless it is the soap client is running as a servlet or jsp, you shouldn't need Tomcat. The client will connect to the php soap service. Thank you, Larry M. Lemons (304) 726-4809 Ext. 4505 From: j g [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 10:10 AM To: axis-user@ws.apache.org Subject: how to call php soap service in java soap client with axis? Hi, I am new for the Axis. I had a php soap service to query our mssql database, I also have a perl soap client to call the service by providing parameters like username, password etc. They both work fine. Now, I need to write a java soap client to call the php soap service instead of the soap client written in perl. Since the service is writen with php, I did not install tomcat at my client computer(do I need it?) Here is my java code.. When I compile the code, there are errors like: package org.apache.axis does not exist package mysrc.testjavasoap; import java.util.*; import org.apache.axis.AxisEngine; import org.apache.axis.client.Call; import org.apache.axis.soap.SOAPConstants; public class javasoap { public void main () throws Exception{ String url = http://www.bioinformatics.med.umich.edu/app/nlp/soap/dbquery.php;; String query=select top 10 * from DocText; Call call = new Call(url); Object[] params = new Object[] {db3, bionlp,username, password, query}; String result = (String)call.invoke(, params); } } Hope somebody can help me! Thanks --jg Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to compress message with GZIP in Axis 1.4
Hi Cyril, I wrote a socket listenener to serialise all incoming data on the web service socket (with the app server turned off) and can confirm that indeed the incoming messages were compressed by CommonsHttpSender and AXIS OOTB compression. So I guess AXIS has a socketlistener on the server to intercept the incoming stub requests *before* any servlet filters can intercept them, hence order of intercept on the server will be AXIS SOAP Monitor (via socket listener), my servlet filter, AXIS servlet filter.?? This makes sense once you know what is going on, but for someone using AXIS with none of this documented it has been extremely frustrating trying to get a test compressed (serialised to file for poc purposes) output message across to our collaborative project member hosting the stubs. Perhaps you could add a paragraph such as the above to the compression FAQ section on the AXIS wiki, as I'm sure I'm not going to be the last person to try and figure this out for the same reasons. Cheers, Damian [EMAIL PROTECTED] obox.com To: axis-user@ws.apache.org Sent by: cc: [EMAIL PROTECTED]Subject: Re: Unable to compress message with GZIP in Axis 1.4 mail.com 14/08/2006 01:54 PM Please respond to axis-user Hi Damian, Can you use a network sniffer to look at the communication from your Axis client to your Websphere server ? I you don't, I can send you a small Eclipse plugin that does the job. BTW, I don't know if Axis built in SOAP Monitor transparently uncompress the streams (ie. figuring if compression is enabled would be harder to figure out) Cyrille On 8/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Cyril, I may be missing something here but shouldnt the point of http compression be to compress the message on the client *prior* to sending it over the wire? (je: If I have to send my message (uncompressed) over the wire to the web server which then compresses the message and routes the compressed data to the app server wouldnt that be redundant?). The instructions at http://wiki.apache.org/ws/FrontPage/Axis/GzipCompression outline that setting the HTTPConstants.MC_GZIP_REQUEST property on the service instance in the client layer in conjunction with changing the client wsdd to specifiy using a compression-enabled http transporter such as CommonsHTTPSender enables sending out compressed messages from the client. I have traced through the Axis code on my local machine and can confirm that CommonsHTTPSender is picking up on the MC_GZIP_REQUEST property and kicks off the appropriate GZipOutputStream, however the messages are never recieved at the endpoint in a compressed state. I will hook up Websphere to recieve incoming endpoint calls via IHS once I recieve the messages in a compressed state. Has anyone else had a problem sending out compressed messages via Axis 1.4? I have followed the instructions at the above URL, so is there something additional that I should be doing? Any further advice would be appreciated. Thanks Damian [EMAIL PROTECTED] obox.com To: axis-user@ws.apache.org Sent by: cc: [EMAIL PROTECTED]Subject: Re: Unable
Downloading earlier versions?
Hi all, I'm trying to download Axis 1.2.1 for Java and all the listed mirror sites seem to have taken it down (they only seem to have v1.4 available now) Is there somewhere I can download this version from? I need it to run against Java 1.3. Also, can anyone confirm that Axis 1.2.1 will work against Java 1.3? I have searched and found a couple of threads saying this 'should' be OK, but with no further details. Thanks, Stephen -- View this message in context: http://www.nabble.com/Downloading-earlier-versions--tf2118828.html#a5843758 Sent from the Axis - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Downloading earlier versions?
http://archive.apache.org/ On 8/16/06, steve_c [EMAIL PROTECTED] wrote: Hi all, I'm trying to download Axis 1.2.1 for Java and all the listed mirror sites seem to have taken it down (they only seem to have v1.4 available now) Is there somewhere I can download this version from? I need it to run against Java 1.3. Also, can anyone confirm that Axis 1.2.1 will work against Java 1.3? I have searched and found a couple of threads saying this 'should' be OK, but with no further details. Thanks, Stephen -- View this message in context: http://www.nabble.com/Downloading-earlier-versions--tf2118828.html#a5843758 Sent from the Axis - User forum at Nabble.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]
Re: Axis1 style=message in Axis2?
I'm still trying to figure out how to deploy a message style service WITHOUT having to declare each possible wsa:Action value which might be used on the invocation. Its a message style service... I dont want or need Axis to figure out what method to invoke. There's only one method available. I tried the 1st possible solution mentioned below, 1. Remove the dispach phase from your Axis2 configuration and write your own MessageReceiver (which removes the need for an AxisOperation to be identified) I wrote a new message receiver but ran into bigger problems. If I remove the actionMapping tags in the service's deployment descriptor, my new message receiver never gets called. I receive a fault with a response code 500 with no additional information to help diagnose where the problem occured. Nothing showed up in Tomcat's catalina.log. Same problem seems to occur if the wsa:Action header value in the request doesn't match the set of actionMapping tags for the service. I tried commenting out the dispatch phase as stated as a suggestion without any difference in behavior. Suggestions? Is there an easier way to accomplish this? It still appears to me to be an Axis design issue. Axis should not force declaration of specific wsa:Action values for a message based service. It could be an option, but should not be required. Wildcard or similar should be supported. David Illsley [EMAIL PROTECTED] il.comTo axis-user@ws.apache.org 07/26/06 02:00 PM cc Subject Please respond to Re: Axis1 style=message in Axis2? [EMAIL PROTECTED] he.org On 26/07/06, David Melgar [EMAIL PROTECTED] wrote: Setting the message receiver to RawXMLMessageReceiver still appears to require actionMapping to determine which method to invoke. In axis1, the specified method would receive all messages for that service. Equivalent behavior should be available in axis2 regardless of the value of the wsa:Action header. To further clarrify, the service I'm writing bridges between webservices and a non-Java object invocation mechanism. It dynamically determines what operations are allowed. This services does not know at deployment time what operations are possible. I therefore don't know all the wsa:Action header values that it might be included in request messages. Therefore I cannot declare actionMapping values in the service deployment descriptor. In case you're wondering, this service also dynamically generates WSDL to describe the discovered supported operations. Is there a way to wildcard actionMapping to say that any action maps to a method? Or to avoid the requirement for specifying an actionMapping if RawXMLMessageReceiver is used. Are there other approaches that could be used? What you are trying to do sounds pretty advanced (given that you're dynamically generating WSDL). There are a couple of options I can think of... 1. Remove the dispach phase from your Axis2 configuration and write your own MessageReceiver (which removes the need for an AxisOperation to be identified) 2. Define a single operation for the service and add a handler to the DispatchPhase which selects that operation when the RawXMLInOutReceiver will then invoke on the endpoint object. David - 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: Axis1 style=message in Axis2?
Hi, Given what you need to do (which is possible ofcourse) it simply requires a bit more knowledge about the internals of Axis2. I am going to outline a doable procedure but unfortunatley I don't have the time to write a lengthy description and elaborate each point. 1. You need to introduce a custom dispatcher (Axis does not enforce the action but it comes addressing enabled by default). What this dispatcher does is figuring out the static and runtime service and operation 'data bags'. We call them AxisService,AxisOperation and serviceContext, operationContext. Ultimately your custom dispatcher should provide the these 'data bags' relevant to your service. Please have a look at the dispatcher implementations to get an idea of how these work. 2. Write a custom message receiver. If you generate code for server side using a simple WSDL you will see the source for a custom message receiver. Modify the code off that not to find the method using the action. That should do it :) Ajith On 8/16/06, David Melgar [EMAIL PROTECTED] wrote: I'm still trying to figure out how to deploy a message style service WITHOUT having to declare each possible wsa:Action value which might be used on the invocation. Its a message style service... I dont want or need Axis to figure out what method to invoke. There's only one method available. I tried the 1st possible solution mentioned below, 1. Remove the dispach phase from your Axis2 configuration and write your own MessageReceiver (which removes the need for an AxisOperation to be identified) I wrote a new message receiver but ran into bigger problems. If I remove the actionMapping tags in the service's deployment descriptor, my new message receiver never gets called. I receive a fault with a response code 500 with no additional information to help diagnose where the problem occured. Nothing showed up in Tomcat's catalina.log. Same problem seems to occur if the wsa:Action header value in the request doesn't match the set of actionMapping tags for the service. I tried commenting out the dispatch phase as stated as a suggestion without any difference in behavior. Suggestions? Is there an easier way to accomplish this? It still appears to me to be an Axis design issue. Axis should not force declaration of specific wsa:Action values for a message based service. It could be an option, but should not be required. Wildcard or similar should be supported. David Illsley [EMAIL PROTECTED] il.comTo axis-user@ws.apache.org 07/26/06 02:00 PM cc Subject Please respond to Re: Axis1 style=message in Axis2? [EMAIL PROTECTED] he.org On 26/07/06, David Melgar [EMAIL PROTECTED] wrote: Setting the message receiver to RawXMLMessageReceiver still appears to require actionMapping to determine which method to invoke. In axis1, the specified method would receive all messages for that service. Equivalent behavior should be available in axis2 regardless of the value of the wsa:Action header. To further clarrify, the service I'm writing bridges between webservices and a non-Java object invocation mechanism. It dynamically determines what operations are allowed. This services does not know at deployment time what operations are possible. I therefore don't know all the wsa:Action header values that it might be included in request messages. Therefore I cannot declare actionMapping values in the service deployment descriptor. In case you're wondering, this service also dynamically generates WSDL to describe the discovered supported operations. Is there a way to wildcard actionMapping to say that any action maps to a method? Or to avoid the requirement for specifying an actionMapping if RawXMLMessageReceiver is used. Are there other approaches that could be used? What you are trying to do sounds pretty advanced (given that you're dynamically generating WSDL). There are a couple of options I can think of... 1. Remove the dispach phase from your Axis2 configuration and write your own MessageReceiver (which removes the need for an AxisOperation to be identified) 2. Define a single operation for the service and add a handler to the DispatchPhase which selects that operation when the RawXMLInOutReceiver will then invoke on the endpoint object. David - 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] -- Ajith Ranabahu - To unsubscribe,
How to configure axis to use commons-httpclient underneath, for proxy and basic auth
I have a short sequence of code using Axis to send a soap message through Axis to a provider. The code looks something like this (simplified somewhat): - Call.initialize(); Call call = new Call(endpoint); call.setTimeout(new Integer(timeOut)); call.setRequestMessage(soapToAxis(soapRequest)); call.invoke(); soapResponse = call.getResponseMessage(); - I've discovered that Axis out of the box has trouble handling the combination of SSL, proxy auth, and basic auth. I've been able to get this interaction to work with commons-httpclient. I was told there's a way to configure Axis to use commons-httpclient for its connections, so I can configure the authorization headers through httpclient. I've briefly looked through the Axis documentation, and I didn't see how to do this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]