RE: Really need help badly, If you know what is causing this then please reply - Ignore
Title: Really need help badly, If you know what is causing this then please reply Ignore this message thread. From: Parikh,Pratik [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 11:28 PMTo: axis-user@ws.apache.orgSubject: Really need help badly, If you know what is causing this then please reply Hi Everyone, I am getting following when I deploy my web service on web sphere. I don't know what is going can some one point me in right directory [11/3/05 23:22:58:384 CST] 4f35ede6 WebGroup E SRVE0020E: [Servlet Error]-[AdminServlet]: Failed to load servlet: java.lang.ClassCastException: org.apache.axis.transport.http.AdminServlet at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542) at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1272) at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:277) at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:412) at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:219) at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1026) at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136) at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:415) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:351) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:268) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:246) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418) at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:134) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418) at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183) at com.ibm.ws.runtime.WsServer.start(WsServer.java:128) at com.ibm.ws.runtime.WsServer.main(WsServer.java:225) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94) at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97) [11/3/05 23:22:58:424 CST] 4f35ede6 TraceNLS u No message text associated with key Servlet.[AdminServlet]:.not.a.servlet.class in bundle com.ibm.ejs.resources.seriousMessages [11/3/05 23:22:58:424 CST] 4f35ede6 WebAppServlet E Servlet [AdminServlet]: not a servlet class [11/3/05 23:22:58:434 CST] 4f35ede6 WebGroup E SRVE0020E: [Servlet Error]-[SOAPMonitorService]: Failed to load servlet: java.lang.ClassCastException: org.apache.axis.monitor.SOAPMonitorService at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542) at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1272) at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:277) at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:412) at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:219) at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1026) at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136) at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:415) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:351) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:268) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:246) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418) at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:134) at
Problem with generated BindingStub.java
Hello, I'm generating a webservise with maven (wsdl2java). In the generated deploy wsdl I have: service name=elquerito-port but in the generated BindingStub.java it's writing: _call.setOperationName(new javax.xml.namespace.QName(http://elquerito.hti.bfh.ch/soap/wsdl/v1.0;, authenticate)); the namespace is used instead of the port-type. This was the server does nod finde the requested service by the client. is there a fault in the wsdl? soap:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http/ operation style=rpc use=encoded name=authenticate soap:operation soapAction=authenticate/ input name=authenticate-request soap:body use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=http://elquerito.hti.bfh.ch/soap/wsdl/v1.0/ /input output name=authenticate-response soap:body use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=http://elquerito.hti.bfh.ch/soap/wsdl/v1.0/ /output fault name=elquerito-soap-exception soap:fault use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=http://elquerito.hti.bfh.ch/soap/wsdl/v1.0/ /fault /operation Regards, Mike
Re: proxy server information
Yes, works for axis used as client consuming a webservice. rb Ravi Krishnamurthy schrieb: Ralf: May be a dumb question. The following code does it execute on the client side or on the server side. In my case, I'm using Axis to talk to any webservice ( may not be using axis). Hope your valuable suggestion is executed on the client side. Regards, Ravi Ralf Bust wrote: Hi, Easy-Way-Solution: (probably not the best, but working) Write a Class implementing DefaultHTTPTransportClientProperties. Overwrite the getters() with your code. Everytime a SOAP Call will be made is will look into your Class to get the apropriate Proxy settings. Load class with(VM Arguments): -Dorg.apache.axis.components.net.TransportClientProperties=name.of.your.classWhatever or change within your application with: System.getProperties().setProperty(org.apache.axis.components.net.TransportClientProperties,name.of.your.classWhatever); /* * Axis is directed to use this class instead of * org.apache.axis.components.net.TransportClientProperties by * setting the System property * * This reads proxy settings from the MessageContext to give per-request proxysupport */ public class AxisTransportClientProperties extends DefaultHTTPTransportClientProperties { public String getProxyHost() { // Retrieve proxy info from Message context every time String ret = null; MessageContext context = MessageContext.getCurrentContext(); if (context != null) { ret = (String) context.getProperty(whatever.you.want); } if (ret == null) { // use System property if set ret = super.getProxyHost(); } return ret; } } or analye the Endpoint: String targetService; targetService = context.getTargetService(); if (targetService.startsWith(http://www.apache.org;)){ // do what y want } Hope this helps. Ralf Bust Merten Schumann schrieb: Per webservice .. how could you do that??? Merten -Original Message- From: Somendra Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 7:03 AM To: axis-user@ws.apache.org Subject: Re: proxy server information It should ge set per jvm.But if you want to use different proxy servers for different calls,then it should be set per webservice. Regards, Somendra --- Ravi Krishnamurthy [EMAIL PROTECTED] wrote: Hello: Can the proxy server settings like http.proxyHost be set per webservice call or it should be set per jvm. Thanks, Ravi
AW: new ?wsdl bug in 1.3?
Hi, This seems to be a code generation problem. You have to clear all '' in the generated files. And don't forget to edit the deploy.wsdd . After editing the wsdl is displayed correctly. Greetings, Frank -Ursprüngliche Nachricht- Von: Parikh,Pratik [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 4. November 2005 04:20 An: axis-user@ws.apache.org Betreff: RE: new ?wsdl bug in 1.3? Did you regenerate the code? BTW,I am having the same problem. Thanks, Pratik Parikh -Original Message- From: Garret Pick [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 6:58 PM To: axis-user@ws.apache.org Subject: new ?wsdl bug in 1.3? Hi, Does anyone know if this is a new bug in axis 1.3? I did not have this problem with axis 1.2.2 At http:/server/service?wsdl, I see the following error: Fault - makeTypeElement() was told to create a type {http://xxxqueryStringList, with no containing element AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: makeTypeElement() was told to create a type {http://xxxqueryStringList, with no containing element faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:xxx Here is the portion of my WSDL where this is defined: xsd:element name=queryStringList maxOccurs=1 minOccurs=0 xsd:complexType xsd:sequence xsd:element name=queryString type=xsd:string maxOccurs=unbounded minOccurs=1 /xsd:sequence /xsd:complexType /xsd:element - What's somewhat odd is that the service seems to be deployed and working. However, I also need the published WSDL to work. Any work-arounds such as an alternate way to define Java type String[]? thanks, Garret __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. -- This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc.
Re: call web service from jsp
We do this a lot in AstroGrid. We generate stub classes using WSDL2ava and add those classes to the web-application where they are consumed by the JSP. Generally, we pack the stub classes into a jar file and add that jar to the lib directory of the consuming web-app. You need to consider whether you generate the stubs as part of the construction of the consuming web-app or as part of the consruction of the service; both work but with different advanatages and penalties. If you make the stubs jar in the service build, then you get to reuse that jar across several consuming applications. However, you then force all those applications to use the same version of Axis. If you build the jar in the consuming application then you can use any Axis version but you do more building and packaging. On Thu, 3 Nov 2005, Raffaele Viola wrote: How can I call web service by a jsp page using the java classes created by Axis Thanks Raffo Guy Rixon [EMAIL PROTECTED] Institute of Astronomy Tel: +44-1223-337542 Madingley Road, Cambridge, UK, CB3 0HA Fax: +44-1223-337523
problem with collection
Hello everyone, I'm having a problem when I place a collection of my class, inside this class I have set a collection as attribute of one of my otherclasses.The collection ,set as attribute, is always NULL when the client receives the response by the web service, but if I check the collection before it is sent itis set correct. I tried with array[]. any idea??? Thanks a lot Dario Lombardo
Re: Example on deploying Axis on Web Sphere Application Server
Hello Parikh, Here is an explanation on how to deploy axis.war under Websphere. Original newsgroup thread of this explanation : http://groups.google.com/group/ibm.software.websphere.application-server/browse_frm/thread/07a1e2c80ea16bf9/389dd76307095a7f#389dd76307095a7f Here is a workaround tested with Axis-1.2.1 Websphere-5.1.1.6 : 1) Open Websphere Web Admin Console 2) In Environment / Shared Libraries, create a new Shared Library (e.g. at Node scope) : - Name=Axis Library - Value= copy the four entries below and keep line breaks /path/to/axis/jars/axis.jar /path/to/axis/jars/saaj.jar /path/to/axis/jars/jaxrpc.jar /path/to/axis/jars/wsdl4j.jar 3) Install your Web Application axis.war 4) In Applications / Axis_war / Libraries, add library Axis Library 5) Check the following classloader policies * Application Server - Application classloader policy : Multiple * Enterprise Application - Classloader Mode : PARENT_LAST - WAR Classloader Policy : Module * Web Module : - ClassLoader Mode : PARENT_FIRST 5) Save 6) Start your Axis enterprise application 7) check http://localhost:9080/axis/happyaxis.jsp, you will see the location /path/to/axis/jar/* for the following components : - Found SAAJ API ( javax.xml.soap.SOAPMessage ) at ... - Found JAX-RPC API ( javax.xml.rpc.Service ) at ... - Found IBM's WSDL4Java ( com.ibm.wsdl.factory.WSDLFactoryImpl ) at ... Hope this helps, Cyrille -- Cyrille Le Clerc [EMAIL PROTECTED] [EMAIL PROTECTED] On 11/4/05, Parikh,Pratik [EMAIL PROTECTED] wrote: Hi Everyone, Can someone point me to an article that describes deploying a Axis web service on Web Sphere Application Server. This is urgent any help will be appreciated!!! Thanks, Parikh, Pratik
Re: Example on deploying Axis on Web Sphere Application Server
more fodder for the wiki :) Any volunteers? On 11/4/05, Cyrille Le Clerc [EMAIL PROTECTED] wrote: Hello Parikh, Here is an explanation on how to deploy axis.war under Websphere. Original newsgroup thread of this explanation : http://groups.google.com/group/ibm.software.websphere.application-server/browse_frm/thread/07a1e2c80ea16bf9/389dd76307095a7f#389dd76307095a7f Here is a workaround tested with Axis-1.2.1 Websphere-5.1.1.6 : 1) Open Websphere Web Admin Console 2) In Environment / Shared Libraries, create a new Shared Library (e.g. at Node scope) : - Name=Axis Library - Value= copy the four entries below and keep line breaks /path/to/axis/jars/axis.jar /path/to/axis/jars/saaj.jar /path/to/axis/jars/jaxrpc.jar /path/to/axis/jars/wsdl4j.jar 3) Install your Web Application axis.war 4) In Applications / Axis_war / Libraries, add library Axis Library 5) Check the following classloader policies * Application Server - Application classloader policy : Multiple * Enterprise Application - Classloader Mode : PARENT_LAST - WAR Classloader Policy : Module * Web Module : - ClassLoader Mode : PARENT_FIRST 5) Save 6) Start your Axis enterprise application 7) check http://localhost:9080/axis/happyaxis.jsp, you will see the location /path/to/axis/jar/* for the following components : - Found SAAJ API ( javax.xml.soap.SOAPMessage ) at ... - Found JAX-RPC API ( javax.xml.rpc.Service ) at ... - Found IBM's WSDL4Java ( com.ibm.wsdl.factory.WSDLFactoryImpl ) at ... Hope this helps, Cyrille -- Cyrille Le Clerc [EMAIL PROTECTED] [EMAIL PROTECTED] On 11/4/05, Parikh,Pratik [EMAIL PROTECTED] wrote: Hi Everyone, Can someone point me to an article that describes deploying a Axis web service on Web Sphere Application Server. This is urgent any help will be appreciated!!! Thanks, Parikh, Pratik -- Davanum Srinivas : http://wso2.com/blogs/
is there an advantage of using axis on client side instead of jax rpc?
Hi,I`m wondering which are the advantages of using axis on client side instead of the core jax rpc?I think no real dynamic invocation is easily possible on both and jax rpc can generate java classes for a wsdl file too. thx in advanceDominikVerschicken Sie romantische, coole und witzige Bilder per SMS!Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
Re: HTTP 404 when running AdminClient
I seem to remember that this is a classpath issue. Look over the Installation guide at: http://ws.apache.org/axis/java/install.html and specifically: http://ws.apache.org/axis/java/install.html#ClasspathSetup Cheers, Phil On Nov 3, 2005, at 6:11 PM, Jalenak, Jerry wrote: x-tad-biggerHi All,/x-tad-bigger x-tad-bigger /x-tad-bigger x-tad-biggerRunning Axis 1.3 Final, I’m getting the following when I try to deploy a service with the AdminClient./x-tad-bigger x-tad-bigger /x-tad-bigger x-tad-bigger>java org.apache.axis.client.AdminClient ./deploy.wsdd/x-tad-bigger x-tad-biggerProcessing file ./deploy.wsdd/x-tad-bigger x-tad-biggerException: AxisFault/x-tad-bigger x-tad-bigger faultCode: {http://xml.apache.org/axis/}HTTP/x-tad-bigger x-tad-bigger faultSubcode:/x-tad-bigger x-tad-bigger faultString: (404)/axis/services/AdminService/x-tad-bigger x-tad-bigger faultActor:/x-tad-bigger x-tad-bigger faultNode:/x-tad-bigger x-tad-bigger faultDetail:/x-tad-bigger x-tad-bigger {}:return code: 404/x-tad-bigger x-tad-biggerlt;htmlgt;lt;headgt;lt;titlegt;Apache Tomcat/5.0.30 - Error reportlt;/tit/x-tad-bigger x-tad-biggerlegt;lt;stylegt;lt;!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;ba/x-tad-bigger x-tad-biggerckground-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;/x-tad-bigger x-tad-biggercolor:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Ari/x-tad-bigger x-tad-biggeral,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-f/x-tad-bigger x-tad-biggeramily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-famil/x-tad-bigger x-tad-biggery:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:/x-tad-bigger x-tad-biggerTahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color :/x-tad-bigger x-tad-biggerblack;}A.name {color : black;}HR {color : #525D76;}--gt;lt;/stylegt; lt;/hea/x-tad-bigger x-tad-biggerdgt;lt;bodygt;lt;h1gt;HTTP Status 404 - /axis/services/AdminServicelt;/h1/x-tad-bigger x-tad-biggergt;lt;HR size=quot;1quot; noshade=quot;noshadequot;gt;lt;pgt;lt;bgt;ty/x-tad-bigger x-tad-biggerpelt;/bgt; Status reportlt;/pgt;lt;pgt;lt;bgt;messagelt;/bgt; lt;ugt/x-tad-bigger x-tad-bigger;/axis/services/AdminServicelt;/ugt;lt;/pgt;lt;pgt;lt;bgt;descriptionlt/x-tad-bigger x-tad-bigger;/bgt; lt;ugt;The requested resource (/axis/services/AdminService) is not ava/x-tad-bigger x-tad-biggerilable.lt;/ugt;lt;/pgt;lt;HR size=quot;1quot; noshade=quot;noshadequot;/x-tad-bigger x-tad-biggergt;lt;h3gt;Apache Tomcat/5.0.30lt;/h3gt;lt;/bodygt;lt;/htmlgt;/x-tad-bigger x-tad-bigger {http://xml.apache.org/axis/}HttpErrorCode:404/x-tad-bigger x-tad-bigger /x-tad-bigger x-tad-biggerCan someone please tell me what I’m doing wrong?/x-tad-bigger x-tad-bigger /x-tad-bigger x-tad-biggerThanks./x-tad-bigger x-tad-bigger /x-tad-bigger Jerry Jalenak x-tad-biggerSoftware Engineer/x-tad-bigger x-tad-biggerNetopia, Inc./x-tad-bigger
Re: call web service from jsp
I made my jar file but the jsp say that the can't import because the package does not exist Where I made a mistake??? Thanks a lot RaFFo 2005/11/4, Guy Rixon [EMAIL PROTECTED]: We do this a lot in AstroGrid. We generate stub classes using WSDL2ava and add those classes to the web-application where they are consumed by the JSP. Generally, we pack the stub classes into a jar file and add that jar to the lib directory of the consuming web-app. You need to consider whether you generate the stubs as part of the construction of the consuming web-app or as part of the consruction of the service; both work but with different advanatages and penalties. If you make the stubs jar in the service build, then you get to reuse that jar across several consuming applications. However, you then force all those applications to use the same version of Axis. If you build the jar in the consuming application then you can use any Axis version but you do more building and packaging. On Thu, 3 Nov 2005, Raffaele Viola wrote: How can I call web service by a jsp page using the java classes created by Axis Thanks Raffo Guy Rixon [EMAIL PROTECTED] Institute of Astronomy Tel: +44-1223-337542 Madingley Road, Cambridge, UK, CB3 0HA Fax: +44-1223-337523
WSS4J vs. Apache XML security for digital signatures?
Hi all, I'm interested in adding digital signatures to our Axis 1.3 based soap service. Originally I had assumed that I would use WSS4J (or something like it) to do implement this. But the Axis example code uses Apache XML Security directly, via a sample helper class called SignedSOAPEnvelope. And posts to this list seem to be split in their recommendations. Can anyone with practical experience adding security to their Axis service comment on the best overall direction to proceed? Best regards, -- Allen Cronce
WSDL2Java Question
I have a complete set of Java classes that I am exposing through Axis 1.3. Is there a way, using WSDL2Java, to only generate the binding classes (i.e. Service, ServiceLocator, SoapBindingImpl, SoapBindingStub, SoapBindingSkeleton), the deploy and undeploy WSDD files, without also generating all of the other server-side skeleton code for my existing classes? It would be nice (and convenient) if WSDL2Java would simply hook into my existing classes.. Thanks! Jerry Jalenak Software Engineer Netopia, Inc.
RE: WSDL2Java Question
use -S option while you generate. Thanks, Parikh, Pratik From: Jalenak, Jerry [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 10:57 AMTo: axis-user@ws.apache.orgSubject: WSDL2Java Question I have a complete set of Java classes that I am exposing through Axis 1.3. Is there a way, using WSDL2Java, to only generate the binding classes (i.e. Service, ServiceLocator, SoapBindingImpl, SoapBindingStub, SoapBindingSkeleton), the deploy and undeploy WSDD files, without also generating all of the other server-side skeleton code for my existing classes? It would be nice (and convenient) if WSDL2Java would simply hook into my existing classes.. Thanks! Jerry Jalenak Software Engineer Netopia, Inc. CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --
Re: WSS4J vs. Apache XML security for digital signatures?
I use the following links to help me understand and implement Web Service security for Axis-based services and they work pretty well. I would advise against using XML security directly if you are not used to dealing with the intricacies of security for XML. The WSS4J abstraction is meant to shield you from doing just that and also to easily comply with the WS-Security standard: - http://ws.apache.org/wss4j/axis.html - http://wiki.apache.org/ws/FrontPage/WsFx/wss4jParameters - http://ws.apache.org/wss4j/package.html -Arun On 11/4/05, Allen Cronce [EMAIL PROTECTED] wrote: Hi all,I'm interested in adding digital signatures to our Axis 1.3 based soapservice. Originally I had assumed that I would use WSS4J (or somethinglike it) to do implement this. But the Axis example code uses Apache XML Security directly, via a sample helper class called SignedSOAPEnvelope.And posts to this list seem to be split in their recommendations.Can anyone with practical experience adding security to their Axis service comment on the best overall direction to proceed?Best regards,--Allen Cronce
Re: Single sign on
To pass these security parameters in the most interoperable manner possible, try to make use of custom SOAP headers. -ArunOn 11/3/05, Ravi Krishnamurthy [EMAIL PROTECTED] wrote: Hello:If Single Sign On is enabled using Siteminder, is it possible to set theauthorization ID obtained from Siteminder when invoking a webservicecall dynamically on the call or service object.Thanks for your time and help, regards,Ravi
Re: call web service from jsp
Please make sure that your war file contains the stubs jar file. Also, set your classpath properly. HTH, - Jyoti On 11/4/05, Raffaele Viola [EMAIL PROTECTED] wrote: I made my jar file but the jsp say that the can't import because thepackage does not existWhere I made a mistake???Thanks a lotRaFFo2005/11/4, Guy Rixon [EMAIL PROTECTED] : We do this a lot in AstroGrid. We generate stub classes using WSDL2ava and add those classes to the web-application where they are consumed by the JSP. Generally, we pack the stub classes into a jar file and add that jar to the lib directory of the consuming web-app. You need to consider whether you generate the stubs as part of the construction of the consuming web-app or as part of the consruction of the service; both work but with different advanatages and penalties. If you make the stubs jar in the service build, then you get to reuse that jar across several consuming applications. However, you then force all those applications to use the same version of Axis. If you build the jar in the consuming application then you can use any Axis version but you do more building and packaging. On Thu, 3 Nov 2005, Raffaele Viola wrote: How can I call web service by a jsp page using the java classes created by Axis Thanks Raffo Guy Rixon [EMAIL PROTECTED] Institute of AstronomyTel: +44-1223-337542 Madingley Road, Cambridge, UK, CB3 0HAFax: +44-1223-337523
[axis2] Nightly builds
Where are nightly builds of Axis 2 available at? I want to get a version that has defect Axis2-277 fixed (servlet spec 2.4 incorrectly being required), and it seems that there is code checked in that fixes this. Don Kostello
Re: is there an advantage of using axis on client side instead of jax rpc?
In general, both API currently have comparable functionality on the client side. Given the amount of Web Services-related activities and APIs being developed (broadly) as part of the the Axis Project (WS-Security - WSS4J, WS-RM - Sandesha, etc.) I would like to stick with Axis and the Apache WS API for the foreseeable future. That said, these are all implementations of standards and as time goes on they will become more and more interchangeable in case you want to switch the underlying implementations in your architecture. -ArunOn 11/4/05, SOA Work [EMAIL PROTECTED] wrote: Hi,I`m wondering which are the advantages of using axis on client side instead of the core jax rpc?I think no real dynamic invocation is easily possible on both and jax rpc can generate java classes for a wsdl file too. thx in advanceDominik Verschicken Sie romantische, coole und witzige Bilder per SMS!Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
Re: AW: new ?wsdl bug in 1.3?
Hello, Yes, I did regenerate the code and the *.wsdd after upgrading axis. I tried manually modifying the *.wsdd and removing some but it didn't seem to help. Here's what part of it looks like: arrayMapping xmlns:ns=http://xxx; qname=ns:RequestTypequeryStringList type=java:java.lang.String[] innerType=cmp-ns:string xmlns:cmp-ns=http://www.w3.org/2001/XMLSchema; encodingStyle= / The after RequestType doesn't look right. Any suggestions? thanks, Garret --- Eisfeld, Frank [EMAIL PROTECTED] wrote: Hi, This seems to be a code generation problem. You have to clear all '' in the generated files. And don't forget to edit the deploy.wsdd . After editing the wsdl is displayed correctly. Greetings, Frank -Ursprüngliche Nachricht- Von: Parikh,Pratik [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 4. November 2005 04:20 An: axis-user@ws.apache.org Betreff: RE: new ?wsdl bug in 1.3? Did you regenerate the code? BTW,I am having the same problem. Thanks, Pratik Parikh -Original Message- From: Garret Pick [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 6:58 PM To: axis-user@ws.apache.org Subject: new ?wsdl bug in 1.3? Hi, Does anyone know if this is a new bug in axis 1.3? I did not have this problem with axis 1.2.2 At http:/server/service?wsdl, I see the following error: Fault - makeTypeElement() was told to create a type {http://xxxqueryStringList, with no containing element AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: makeTypeElement() was told to create a type {http://xxxqueryStringList, with no containing element faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:xxx Here is the portion of my WSDL where this is defined: xsd:element name=queryStringList maxOccurs=1 minOccurs=0 xsd:complexType xsd:sequence xsd:element name=queryString type=xsd:string maxOccurs=unbounded minOccurs=1 /xsd:sequence /xsd:complexType /xsd:element - What's somewhat odd is that the service seems to be deployed and working. However, I also need the published WSDL to work. Any work-arounds such as an alternate way to define Java type String[]? thanks, Garret __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. -- This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc. __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
Re: proxy server information
Thanks. I have one more question: There are 2 steps involved in my project: a. configuring the webservice means looking up the wsdl, and mapping the input and output parameters b. invoking the webservice When I invoke the webservice, the proxy information works great as per your suggestion. Interestingly when I invoke the webservice, I introspect the wsdl using the org.apache.axis.wsdl.gen.Parser.run(wsdluri). Observed that the Parser API has username and password but they are not for the proxy. Wondering how to use the proxy information using the Parser class. Thanks, Ravi Ralf Bust wrote: Yes, works for axis used as client consuming a webservice. rb Ravi Krishnamurthy schrieb: Ralf: May be a dumb question. The following code does it execute on the client side or on the server side. In my case, I'm using Axis to talk to any webservice ( may not be using axis). Hope your valuable suggestion is executed on the client side. Regards, Ravi Ralf Bust wrote: Hi, Easy-Way-Solution: (probably not the best, but working) Write a Class implementing DefaultHTTPTransportClientProperties. Overwrite the getters() with your code. Everytime a SOAP Call will be made is will look into your Class to get the apropriate Proxy settings. Load class with(VM Arguments): -Dorg.apache.axis.components.net.TransportClientProperties=name.of.your.classWhatever or change within your application with: System.getProperties().setProperty(org.apache.axis.components.net.TransportClientProperties,name.of.your.classWhatever); /* * Axis is directed to use this class instead of * org.apache.axis.components.net.TransportClientProperties by * setting the System property * * This reads proxy settings from the MessageContext to give per-request proxysupport */ public class AxisTransportClientProperties extends DefaultHTTPTransportClientProperties { public String getProxyHost() { // Retrieve proxy info from Message context every time String ret = null; MessageContext context = MessageContext.getCurrentContext(); if (context != null) { ret = (String) context.getProperty(whatever.you.want); } if (ret == null) { // use System property if set ret = super.getProxyHost(); } return ret; } } or analye the Endpoint: String targetService; targetService = context.getTargetService(); if (targetService.startsWith(http://www.apache.org;)){ // do what y want } Hope this helps. Ralf Bust Merten Schumann schrieb: Per webservice .. how could you do that??? Merten -Original Message- From: Somendra Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 7:03 AM To: axis-user@ws.apache.org Subject: Re: proxy server information It should ge set per jvm.But if you want to use different proxy servers for different calls,then it should be set per webservice. Regards, Somendra --- Ravi Krishnamurthy [EMAIL PROTECTED] wrote: Hello: Can the proxy server settings like http.proxyHost be set per webservice call or it should be set per jvm. Thanks, Ravi
AXIS 1.3 Client stub... hoping to spit out slightly different soap header output
Newbie axis question: Environment: AXIS 1.3 JDK 1.4.2 Client stub generated from WSDL using WSDL2Java Instead of... soap:Header ns1:wsConsumerCredential soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns1="http://myhost.com/ws/" password/password id/id /ns1:wsConsumerCredential /soapenv:Header Is it possible to get this result? soap:Header wsConsumerCredential xmlns="http://myhost.com/ws/" password/password id/id /wsConsumerCredential soap:Header My client of the generated webservice stub classcurrently uses the following: QName qnWSConsCreds = new QName("http://myhost.com/ws/","wsConsumerCredential");SOAPHeaderElement she = new SOAPHeaderElement(qnWSConsCreds);SOAPElement passwordElement = she.addChildElement("password", "");passwordElement.addTextNode("");SOAPElement idElement = she.addChildElement("id", "");idElement.addTextNode("");
Passing options to transport sender
Hi, When I create a call I like to pass options to my transport sender. For that I use the following code: SimpleTargetedChain c = new SimpleTargetedChain(new MySender()); config.deployTransport(myTransport , c); c.setOption(Hello, HelloAgain); // Set option But when I read the set option within the transport sender I just receive a Nullpointer exception. How do I can pass options to a given transport sender?? Thx, Chris // Complete method to create a call on client side public static Call createCall(ClientContext cContext) throws ServiceException { Call.addTransportPackage(org.my.axis.transport); Call.setTransportForProtocol(myTransport, MyTransport.class); EngineConfiguration defaultConfig = EngineConfigurationFactoryFinder .newFactory().getClientEngineConfig(); SimpleProvider config = new SimpleProvider(defaultConfig); SimpleTargetedChain c = new SimpleTargetedChain(new MySender()); // THIS DOESNT WORK!!! if (cContext != null) c.setOption(Constants.CLIENT_CONTEXT, cContext); config.deployTransport(myTransport , c); Service service = new Service(config); Call call = (Call) service.createCall(); call.setTransport(new MyTransport()); return call; }
RE: WSDL2Java Question
that should work, Thanks, Parikh, Pratik From: Jalenak, Jerry [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 11:09 AMTo: axis-user@ws.apache.orgSubject: RE: WSDL2Java Question Ive done that, and I still get skeleton classes for all of my objects. I think what is happening is that WSDL2Java is creating an entire package for my webservice, when I really already have all the implementation done. What I have been thinking now is, can I simply change the deploy.wsdd to point to my implemented class? Or will that cause other problems? Jerry Jalenak Software Engineer Netopia, Inc. From: Parikh,Pratik [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 11:00 AMTo: axis-user@ws.apache.orgSubject: RE: WSDL2Java Question use -S option while you generate. Thanks, Parikh, Pratik From: Jalenak, Jerry [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 10:57 AMTo: axis-user@ws.apache.orgSubject: WSDL2Java Question I have a complete set of Java classes that I am exposing through Axis 1.3. Is there a way, using WSDL2Java, to only generate the binding classes (i.e. Service, ServiceLocator, SoapBindingImpl, SoapBindingStub, SoapBindingSkeleton), the deploy and undeploy WSDD files, without also generating all of the other server-side skeleton code for my existing classes? It would be nice (and convenient) if WSDL2Java would simply hook into my existing classes.. Thanks! Jerry Jalenak Software Engineer Netopia, Inc. CONFIDENTIALITY NOTICEThis message and any included attachmentsare from Cerner Corporation and are intendedonly for the addressee. The informationcontained in this message is confidential andmay constitute inside or non-public informationunder international, federal, or statesecurities laws. Unauthorized forwarding,printing, copying, distribution, or use of suchinformation is strictly prohibited and may beunlawful. If you are not the addressee, pleasepromptly delete this message and notify thesender of the delivery error by e-mail or youmay call Cerner's corporate offices in KansasCity, Missouri, U.S.A at (+1) (816)221-1024. --
client serialization without wsdl2java generated type
I have a situation where I'm running a service and a client of the same service in one vm. So I've deleted the wsdl2java generated type (the type of the argument to a service method) because I have a jar with the actual type already. The argument type contains a String and a byte[] and the byte[] is the part that isn't getting to the service correctly. I'm not sure if it is a serialization or deserialization problem. I've added the typemapping from my server side wsdd to my client wsdd but that didn't fix things. Any ideas?
Re: [axis2] Nightly builds
Don't know if there are jar'ed nightlies, but you can follow the getting involved link and check out from subversion: http://ws.apache.org/axis2/svn.html HTH, iksrazal --- Kostello, Don [EMAIL PROTECTED] wrote: Where are nightly builds of Axis 2 available at? I want to get a version that has defect Axis2-277 fixed (servlet spec 2.4 incorrectly being required), and it seems that there is code checked in that fixes this. Don Kostello None are more hopelessly enslaved than those who falsely believe they are free. -- Goethe __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
Re: Single sign on
Ravi, I think it is not possible. If you are using Siteminder on top of Iplanet, then it is tough. You define the policies in the Siteminder, like Login page, error page, etc and then apply those policies in the policy server. Now, in the case of Webservice, even if you are authenticated for web application, it is tough to get those values for a dynamic invocation. What we did in a similar case is to put the path of webservices as unprotected in Siteminder. we are using ws security framework to authenticate the client. thanks vishist.On 11/4/05, Soactive Inc [EMAIL PROTECTED] wrote: To pass these security parameters in the most interoperable manner possible, try to make use of custom SOAP headers. -ArunOn 11/3/05, Ravi Krishnamurthy [EMAIL PROTECTED] wrote: Hello:If Single Sign On is enabled using Siteminder, is it possible to set theauthorization ID obtained from Siteminder when invoking a webservicecall dynamically on the call or service object.Thanks for your time and help, regards,Ravi
Re: Single sign on
Thanks Vishist. Regards, ravi Vishist Mandapaka wrote: Ravi, I think it is not possible. If you are using Siteminder on top of Iplanet, then it is tough. You define the policies in the Siteminder, like Login page, error page, etc and then apply those policies in the policy server. Now, in the case of Webservice, even if you are authenticated for web application, it is tough to get those values for a dynamic invocation. What we did in a similar case is to put the path of webservices as unprotected in Siteminder. we are using ws security framework to authenticate the client. thanks vishist. On 11/4/05, Soactive Inc [EMAIL PROTECTED] wrote: To pass these security parameters in the most interoperable manner possible, try to make use of custom SOAP headers. -Arun On 11/3/05, Ravi Krishnamurthy [EMAIL PROTECTED] wrote: Hello: If Single Sign On is enabled using Siteminder, is it possible to set the authorization ID obtained from Siteminder when invoking a webservice call dynamically on the call or service object. Thanks for your time and help, regards, Ravi
QName Linkage Error
Hello, I am getting this exception when I place axis.jar in WEB-INF/lib of a J2EE 1.4 web project without also placing jaxrpc.jar, wsdl4j.jar, saaj.jar (as they are part of J2EE 1.4. java.lang.LinkageError: Class javax/xml/namespace/QName violates loader constraints: definition mismatch between parent and child loaders Does axis have new jars for J2EE 1.4? thank you __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
SOAP 1.2 Support
Does Axis 1.3 support SOAP 1.2? I have the same question for Axis2 as well? - Suvanan. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: SOAP 1.2 Support
Yes and Yes On 11/4/05, SUVANAN DUTTA [EMAIL PROTECTED] wrote: Does Axis 1.3 support SOAP 1.2? I have the same question for Axis2 as well? - Suvanan. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Davanum Srinivas : http://wso2.com/blogs/
Setting cookie with apache axis
Hello: Let me know if this is possible with Apache Axis. All the webservies are secured with SiteMinder. During the webservice call the following needs to be done: obtain a sitemaintain token Take that token and use it to build a cookie associated with the webservicerequest. Its name will be SMSESSION, its value will be what you obtain from the SiteMinder service and it will need to be presented to all "companyname.com sites. Once you've associated the cookie, make the calls as you normally would. Suppose the token could be obtained how to set the cookie with Apache Axis for a dynamic invocation client. Any pointers will be very helpful. Thanks, Ravi
Re: [axis2] Nightly builds
Nightly builds aren't available yet. I think we need to do that. But if you want, get a checkout from SVN. Install maven and run maven jar. Its that easy. trebor iksrazal wrote: Don't know if there are jar'ed nightlies, but you can follow the "getting involved link" and check out from subversion: http://ws.apache.org/axis2/svn.html HTH, iksrazal --- "Kostello, Don" [EMAIL PROTECTED] wrote: Where are nightly builds of Axis 2 available at? I want to get a version that has defect Axis2-277 fixed (servlet spec 2.4 incorrectly being required), and it seems that there is code checked in that fixes this. Don Kostello "None are more hopelessly enslaved than those who falsely believe they are free. -- Goethe" __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com