RE: Compilation on visual .net
Yes ! That's it! thanks a lot ![EMAIL PROTECTED] a écrit: You are very welcome,You need to make sure that the Axisclient.DLL is in your PATH or in the same dir that your app is running from.Thanks,John 4400Computer Drive 2nd floor, Mailstop D239 Ext: 35983From: Arnault BELLINA [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 11:48 AM To: Apache AXIS C User List Subject: RE: Compilation on visual .netyou find it ! That was i forgot ! Thanks !However when execute the client now , it can't find the AxisClient.lib... Do I have to put something in the path of windows or somethong like that ?Thanks for your helpArno[EMAIL PROTECTED] a écrit:Are you sure you are including AxisClient.lib as a required library from your project? Thanks,John 4400Computer Drive 2nd floor , Mailstop D239 Ext: 35983 From: Arnault BELLINA [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 10:59 AM To: axis-c-user@ws.apache.org Subject: Compilation on visual .netI try to compile on windows a client I made on Lin ux. Also I use visual .net. I got this error when I generate my client : Client InSoap error LNK2020: jeton non résolu (0A2A) axiscpp.Stub.__dtor Client InSoap error LNK2020: jeton non résolu (0A29) axiscpp.Call.__dtorDo you have any idea to solve this compilation problemThanks a lotArnoAppel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez le ici ! Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez le ici ! Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta.
stub transport
Is there any sort of stub http transport? Maybe something file driven? I would like to use something like that for unit testing? The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
CalClient giving Exception
HI All, I build Axis C++ calclient on Windows. I followed build and setup instructions as per Axis C++ Windows Developers Guide. In xsd__int Calculator::add(xsd__int Value0, xsd__int Value1)function when it calls if (AXIS_SUCCESS != m_pCall-initialize(CPP_RPC_PROVIDER)) it is giving exception AXISC_NODE_VALUE_MISMATCH_EXCEPTION. Apache server is running and I can get page of http://localhost/axis Please let me know what me the problem at the earliest. With Regards Deepak _ A Camera Sells every 2 Minutes on eBay. Get Your's at a Great Price Now! http://adfarm.mediaplex.com/ad/ck/4686-26272-10936-699?ck=Cameras
schema for SOAP 1.2 ??
Sorry if this is slightly off-topic, but ... Does anybody know where I can find an XML Schema definition of SOAP 1.2 ?
Re: schema for SOAP 1.2 ??
http://www.w3.org/2003/05/soap-envelope/ HTH, Jaya On 12/14/05, Mark Hansen [EMAIL PROTECTED] wrote: Sorry if this is slightly off-topic, but ...Does anybody know where I can find an XML Schema definition of SOAP 1.2 ?-- -- Jaya
return value problem with attachments.
Hi, I am facing a problem in sending attachments (MIME)from a webservice. Can any body help me with this.. GetFile and Copyfile functions that i implemented send files to the client system as attachments and also return the status of the call in a string as return value. The problem that I am facing is the string returned by above functions is null when there are attachments to be sent to client system. All the functional requirements are met in the above case. If I remove the attachments the system works fine and the client is able to receive all the strings that are returned by the functions. When I try to debug the code I see a valid and correct value assigned to the variable that is being returned from the above functions. I have upgraded Axis from 1.1 to 1.2Rc2 to see if the problem is fixed in higher versions . But still I have the same problem. I have searched over the net for a solution and found postings with similar problem but did not see any reply to solve the same. Can you please suggest what could be the problem and how to solve it. Thanks Regards Srikanth Sri Vatsavayee Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Re: About the operation element in server-config.wsdd
Hi, As far as I has understand the operation element in the server-config.wsdd is a mapping description into the sever code and SOAP messages. For me, it is useful only if you don't use Axis server-side stubs. I use it to make my server (deplouyed as a .jar file in Axis webapps) properly generate fault messages. -- Frantz Bengali Bengali a écrit : Hi, I don't really understand what's the point of having an operation element in the server-config.wsdd.
Re: Problem with instant deployment
But i had this working before and it's working on a linux box might this minute. This xp machine I had working before until I started trying to do custom deployment with wsdd files jayachandra wrote: Looks like we havea very interesting scenario here. If I recollect correct, axis engine inside a jvm is a *singleton* and to serve Service1 it might be existing as a singleton with serverside flag set to true inside Tomcat JVM, and since inside your Service1 you try to access the engine code as if like a client side client is trying to call Service2, axis might be failing. Axis can't be blamed for this either, for its an SOA framework where client is assumed to be located in a seperate JVM. So I'd suggest that don't try to invoke the Service2 methods via an axis client call mechanism but rather import the corresponding Service2SoapBindingImpl into your Service1SoapBindingImpl class and do a direct method call, unless you want to truly *experiment* and findsomething for yourself as a case study. HTH, Jaya On 12/14/05, Frank [EMAIL PROTECTED] wrote: Well I've narrowed it down and it is a server problem but I'm not sure how to fix it. Service 1 and service 2 both work fine if called from a client or a browser. Service 1 calls service 2 and that's where it stops and returns to the client that useless exception. The server code has a try catch around that call but produces nothing in the server log. This except code works on another machine and I had it working on here earlier. All I can figure is it's some config etc thing. The tubs are compiled and in the \webapps\axis\WEB-INF\classes unjared. Any thoughts? Thanks, Frank jayachandra wrote: Totally agree with Ron, have a peep into catalina_home/logs and I bet 70% of the time we'll know what to do. Jaya On 12/14/05, Ron Reynolds [EMAIL PROTECTED] wrote: errors in Axis are actually logged (in some cases) at the DEBUG level. also make sure the request is hitting your server (check your $TOMCAT_HOME/logs/ directory for most recent catalina, localhost and access logs). there was a posting earlier that sounded like the Axis engine never came up - if that's the case check the localhost log as that's where the problem will be logged. in all cases where i got a very generic error on the client it was a server-side error that had somehow been "dumbed down" to a generic error, so that's why i suggested checking the server-side logs. .ron. (tho you can call me "roy") ;-) - Original Message - From: De Graef Luc To: 'axis-user@ws.apache.org' Sent: Tuesday, December 13, 2005 10:37 PM Subject: RE: Problem with instant deployment Hello, in the message 'Server.UserException / InvocationTargetException with a new webs ervice', I described approximately the same scenario, let's say the same output. I am also working with Tomcat 5.0.28 but with Axis 1.3 . A suggestion from Roy Reynolds was that it really is a server related issue, and that we need to check the server logging output. It seems however that I don't have any logging, not even with a log4j.properties file containing following info : # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=INFO, CONSOLE, LOGFILE #log4j.rootCategory=INFO, CONSOLE, LOGFILE # Logging detail level, # Must be one of ("trace", "debug", "info", "warn", "error", or "fatal"). org.apache.commons.logging.simplelog.defaultlog=trace # Set the enterprise logger category to FATAL and its only appender to CONSOLE. log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE log4j.logger.org.apache=INFO, CONSOLE, LOGFILE # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.Threshold=TRACE log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n # LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender log4j.appender.LOGFILE.File=axis.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.Threshold=TRACE log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n Do you have some output at server side ? Regards Luc -Original Message- From: Frank [mailto:[EMAIL PROTECTED] ] Sent: woensdag 14 december 2005 0:51 To: axis Subject: Problem with instant deployment Been
Problem with production deployment of Eclipse developed WS client
I have made lots of good progress with web services thanks to this list. I have Eclipse 3.1 with the WTP plugins installed and working. Using Tomcat 5.0.2.8 and JDK 1.4.2_08 in my development workstation. The roadblock at this point is that the target production environment is on server running Solaris 5.9, Apache 1.3, and Tomcat 4.1.29, and this server is behind a firewall. I am accessing the client webpage from inside the firewall as I am connected via VPN. When a functional (in the development environment) Eclipse generated client is deployed to the server, it does not work as expected. I successfully deployed the service, and installed the client classes and the jsp files in the server. The client page will come up, the getEndpoint() method returns the wrong value! The Tomcat instance is set up to listen on port 8921, but the server and port are wrong in the response, localhost:8080 instead of the corr ect server and port. This initially made me think the service did not work, as I got "ConnectException: Connection refused". Once I realized the endpoint was wrong and used the setEndpoint() method to set the correct value, the service works. So the question is why does the following call in the init method of the proxy class return the wrong value? _endpoint = (String)((javax.xml.rpc.Stub)testClass)._getProperty("javax.xml.rpc.service.endpoint.address");Jim Azeltine Sr. Software Engineer SAIC
RE: Bug in beandeserializer??
Title: Bug in beandeserializer?? Can someone please look at this??? I need to resolve it. Thanks, Parikh, Pratik | Software Engineer | Cerner Corporation | (1)-816-201-1298 | [EMAIL PROTECTED] | www.cerner.com From: Parikh,Pratik [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 6:55 PMTo: axis-user@ws.apache.orgSubject: Bug in beandeserializer?? Hi Everyone, I have a case where the generated code is that behaving right with case sensitivity. My element name is "EmptyName" and the generate code is something like this: elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("emptyName"); elemField.setXmlName(new javax.xml.namespace.QName("urn:person-org", "EmptyName")); elemField.setXmlType(new javax.xml.namespace.QName("urn:person-org", "PersonOrg.EmptyName")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); The schema is as following ?xml version="1.0" encoding="utf-8"? xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:person-org" elementFormDefault="qualified" xmlns:porg="urn:person-org" xmlns="urn:person-org" xs:element name="PersonOrg" type="PersonOrg.Message"/ xs:complexType name="PersonOrg.Message" xs:sequence xs:element name="EmptyName" type="PersonOrg.EmptyName"/ /xs:sequence /xs:complexType xs:complexType name="PersonOrg.EmptyName" xs:sequence xs:element type="xsd:string" minOccurs="1" maxOccurs="1" name="author"/ /xs:sequence /xs:complexType /xs:schema faultcodesoapenv:Server.userException/faultcodefaultstringorg.xml.sax.SAXException: Invalid element in org.person.PersonOrg - EmptyName/faultstringdetailns1:hostname xmlns:ns1="http://xml.apache.org/axis/"LPP010755/ns1:hostname/detail When I debugged thought it is erroring out on BeanDeserilizer line 259. Please help I need to get this working by tomorrow morning??? I think this is a bug and if someone can fix it for me then it will be nice??? Thanks, Parikh, Pratik | Software Engineer | Cerner Corporation | (1)-816-201-1298 | [EMAIL PROTECTED] | www.cerner.com 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. --
Axis2 Deployment Options
The changes in the deployment options from Axis1 to Axis2 are very disruptive. The web admin for uploading new services is nice for testing, but makes my company's deployment scripts useless. The fact that the aar files need to be placed in the exploded axis2 war's services directory makes deployment a real pain. Axis1 was very simple and easy to use since it was only a regular webapp. I've been reading through the docs, and I do not see any other deployment options. Has anyone found any better ways to deploy axis2 services?
getPrefix() problem with axis 1.3?
Hello, I have noticed a few posts regarding the exception below that occurrs while running WSDL2Java. Is there a resolution or work around for this issue? I have ensured that I have the correct wsdl4j jar, although I can only find the class in the jaxrpc jar. [axis-wsdl2java] java.lang.NoSuchMethodError: javax.xml.namespace.QName.getPrefix()Ljava/lang/String; [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithDifferentLoca l(BackslashUtil.java:62) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithBackslashless Local(BackslashUtil.java:39) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.SymbolTable.populateServices(SymbolTabl e.java:3078) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:7 45) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:5 18) [axis-wsdl2java]at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4 95) [axis-wsdl2java]at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) [axis-wsdl2java]at java.lang.Thread.run(Thread.java:534) Any help would be greatly appreciated Thanks Jeremy
Re: Bad envelope tag : html
--- anil kumar [EMAIL PROTECTED] wrote: Hi, I have a service deployed on a secured server. When I make a call to the servcie I get the following error: [12/14/05 8:43:53:948 EST] 615994 SystemErr R AxisFault faultCode: { *http://schemas.xmlsoap.org/soap/envelope/}Server.userException *http://schemas.xmlsoap.org/soap/envelope/%7DServer.userExceptionfaultSubcode: faultString: org.xml.sax.SAXException: Bad envelope tag: HTML faultActor: faultNode: faultDetail: { * http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException*http://xml.apache.org/axis/%7DstackTrace:org.xml.sax.SAXException: Bad envelope tag: HTML at org.apache.axis.message.EnvelopeBuilder.startElement (EnvelopeBuilder.java:71) at org.apache.axis.encoding.DeserializationContext.startElement( DeserializationContext.java:1048) at org.apache.xerces.parsers.AbstractSAXParser.startElement( AbstractSAXParser.java:446) at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement ( XMLNamespaceBinder.java:835) at org.apache.xerces.impl.XMLNamespaceBinder.startElement( XMLNamespaceBinder.java:568) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:809) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement ( XMLDocumentFragmentScannerImpl.java:752) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook (XMLDocumentScannerImpl.java:950) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch( XMLDocumentFragmentScannerImpl.java:1524) at org.apache.xerces.impl.XMLDocum entFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.StandardParserConfiguration.parse( StandardParserConfiguration.java :525) at org.apache.xerces.parsers.StandardParserConfiguration.parse( StandardParserConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) at org.apache.xerces.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1158) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse( DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java :696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke( MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke( AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at agencyserviceClient.AgencySweepPaymentWebServiceSoapBindingStub.verifySweepPaymentEligibility(Unknown Source) at org.apache.jsp._AgencySweepInput._jspService(_AgencySweepInput.java:99) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service( JspServlet.java :365) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile( JspServlet.java:715) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:813) at javax.servlet.http.HttpServlet.service(HttpServlet.java :853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService( StrictServletInstance.java :110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service( StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.IdleServletState.service ( StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service( StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch( ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch( ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch( WebAppRequestDispatcher.java:1073) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch( WebAppRequestDispatcher.java:598) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward( WebAppRequestDispatcher.java :206) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook( WebAppInvoker.java:214) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation ( CachedInvocation.java:71) at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke( CacheableInvocationContext.java:116) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI( ServletRequestProcessor.java :186)
EchoNonBlockingDualClient
Hi Im trying to deploythe EchoNonBlockingDualClient in my sun solaris 8 server but I get this error, I dont know what its causing the problem and how to solve it.Im running axis2 using jboss and with a proxypass from apache. If I run EchoNonBlockingClient everything work fine.Alan.2005-12-14 12:10:20,787 INFO [org.apache.axis2.engine.AxisEngine] Axis Engine Started2005-12-14 12:10:20,787 INFO [org.apache.axis2.engine.Phase] Invoke the Handler AddressingOutHandlerwith in the Phase MessageOut2005-12-14 12:10:20,797 INFO [org.apache.commons.httpclient.HttpMethodDirector] I/O exception caught when processing request: Connection refused2005-12-14 12:10:20,797 INFO [org.apache.commons.httpclient.HttpMethodDirector] Retrying request2005-12-14 12:10:20,801 INFO [org.apache.commons.httpclient.HttpMethodDirector] I/O exception caught when pr ocessing request: Connection refused2005-12-14 12:10:20,801 INFO [org.apache.commons.httpclient.HttpMethodDirector] Retrying request2005-12-14 12:10:20,806 INFO [org.apache.commons.httpclient.HttpMethodDirector] I/O exception caught when processing request: Connection refused2005-12-14 12:10:20,806 INFO [org.apache.commons.httpclient.HttpMethodDirector] Retrying request Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping
Re: Bad envelope tag : html
Hi Wade, When i hit the URL (which is https), it pops up two security alerts related to certficates, then when i click 'yes' twice it shows the Hi there, this is an AXIS service! Any ideas? Thanks A On 12/14/05, Wade Chandler [EMAIL PROTECTED] wrote: --- anil kumar [EMAIL PROTECTED] wrote: Hi, I have a service deployed on a secured server. When I make a call to the servcie I get the following error: [12/14/05 8:43:53:948 EST] 615994 SystemErr R AxisFault faultCode: { *http://schemas.xmlsoap.org/soap/envelope/}Server.userException* http://schemas.xmlsoap.org/soap/envelope/%7DServer.userExceptionfaultSubcode: faultString: org.xml.sax.SAXException: Bad envelope tag: HTML faultActor: faultNode: faultDetail: { * http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException* http://xml.apache.org/axis/%7DstackTrace:org.xml.sax.SAXException: Bad envelope tag: HTML at org.apache.axis.message.EnvelopeBuilder.startElement (EnvelopeBuilder.java:71) at org.apache.axis.encoding.DeserializationContext.startElement( DeserializationContext.java:1048) atorg.apache.xerces.parsers.AbstractSAXParser.startElement( AbstractSAXParser.java:446) at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement ( XMLNamespaceBinder.java:835) atorg.apache.xerces.impl.XMLNamespaceBinder.startElement( XMLNamespaceBinder.java:568) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:809) atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement ( XMLDocumentFragmentScannerImpl.java :752) atorg.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook (XMLDocumentScannerImpl.java:950) atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch ( XMLDocumentFragmentScannerImpl.java:1524) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) atorg.apache.xerces.parsers.StandardParserConfiguration.parse ( StandardParserConfiguration.java :525) atorg.apache.xerces.parsers.StandardParserConfiguration.parse( StandardParserConfiguration.java:581) atorg.apache.xerces.parsers.XMLParser.parse (XMLParser.java:147) at org.apache.xerces.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1158) at javax.xml.parsers.SAXParser.parse(Unknown Source) atorg.apache.axis.encoding.DeserializationContext.parse ( DeserializationContext.java:227) atorg.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java :696) atorg.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke( MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke( AxisClient.java:206) atorg.apache.axis.client.Call.invokeEngine (Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) atagencyserviceClient.AgencySweepPaymentWebServiceSoapBindingStub.verifySweepPaymentEligibility(Unknown Source) at org.apache.jsp._AgencySweepInput._jspService(_AgencySweepInput.java:99) atcom.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89) atjavax.servlet.http.HttpServlet.service (HttpServlet.java:853) atcom.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service( JspServlet.java :365) atcom.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile ( JspServlet.java:715) atcom.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:813) atjavax.servlet.http.HttpServlet.service(HttpServlet.java :853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService( StrictServletInstance.java :110) atcom.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service( StrictLifecycleServlet.java :174) atcom.ibm.ws.webcontainer.servlet.IdleServletState.service ( StrictLifecycleServlet.java:313) atcom.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service( StrictLifecycleServlet.java :116) atcom.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) atcom.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch( ValidServletReferenceState.java :42) atcom.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch( ServletInstanceReference.java:40) atcom.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch( WebAppRequestDispatcher.java:1073) atcom.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch( WebAppRequestDispatcher.java:598) atcom.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward ( WebAppRequestDispatcher.java :206) atcom.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80) atcom.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook( WebAppInvoker.java:214) atcom.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation ( CachedInvocation.java:71) atcom.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke (
doc / lit array of complexType ?
Hi all, I've used 'rpc encoded' arrays a lot but now I'm trying to migrate the concept to doc / lit. Here's what I mean in 'rpc encoded' style : complexType name=ReturnWeb_AdminResellerListNewsCentres complexContent extension base=tns:ReturnWeb_Base sequence element name=list type=tns:ArrayOfReturnWeb_AdminResellerListNewsCentres_Item//sequence/extension/complexContent/complexType complexType name=ArrayOfReturnWeb_AdminResellerListNewsCentres_Item complexContent restriction base=soap11-enc:Array attribute ref=soap11-enc:arrayType wsdl:arrayType=tns:ReturnWeb_AdminResellerListNewsCentres_Item[]//restriction/complexContent/complexType complexType name=ReturnWeb_AdminResellerListNewsCentres_Item sequence element name=news_id type=int/ element name=call_centre_id type=int/ element name=call_centre_name type=string//sequence/complexType That allows me to do a conversion like so: ReturnWeb_AdminResellerListNewsCentres result = new ReturnWeb_AdminResellerListNewsCentres(); java.util.List list = new ArrayList(); // db result set - just an example while (rs.next()) { ReturnWeb_AdminResellerListNewsCentres_Item item = new ReturnWeb_AdminResellerListNewsCentres_Item( rs.getInt(news_id), rs.getInt(call_centre_id), rs.getString(call_centre_name) ); list.add(item); } rs.close(); ReturnWeb_AdminResellerListNewsCentres_Item[] list_array = new ReturnWeb_AdminResellerListNewsCentres_Item[0]; list_array = (ReturnWeb_AdminResellerListNewsCentres_Item[]) list.toArray(list_array); result.setList(list_array); Sorry for the long example. Now I'm trying to do the same with doc / lit and I believe, minOccurs and maxOccurs: !-- shown for completeness -- complexType name=ReturnWebBase sequence element name=errorMessage type=xsd:string/ element name=successErrorCode type=xsd:int/ /sequence /complexType element name=ReturnWeb_AdminResellerListNewsCentres minOccurs=0 maxOccurs=unbounded complexType complexContent extension base=tns:ReturnWebBase sequence element name=news_id type=int/ element name=call_centre_id type=int/ element name=call_centre_name type=string/ /sequence /extension /complexContent /complexType /element That of course doesn't work because 'Attribute not allowed: maxOccurs' on a global element like 'ReturnWeb_AdminResellerListNewsCentres' . Any hints? Googling isn't turning up much. Note that I'm not just trying to put an array in a complexType, I want an _array_ of complexType . iksrazal
Re: doc / lit array of complexType ?
element name=ReturnWeb_AdminResellerListNewsCentres complexType sequence element name=ReturnWeb_AdminResellerListNewsCentre minOccurs=0 maxOccurs=unbounded complexType complexContentextension base=tns:ReturnWebBase sequence element name=news_id type=int/ element name=call_centre_id type=int/ element name=call_centre_name type=string//sequence /extension /complexContent /complexType /element /sequence /complexType /element On 12/14/05, iksrazal [EMAIL PROTECTED] wrote: Hi all,I've used 'rpc encoded' arrays a lot but now I'm trying to migrate the conceptto doc / lit. Here's what I mean in 'rpc encoded' style : complexType name=ReturnWeb_AdminResellerListNewsCentres complexContentextension base=tns:ReturnWeb_Basesequenceelement name=listtype=tns:ArrayOfReturnWeb_AdminResellerListNewsCentres_Item//sequence/extension/complexContent/complexType complexType name=ArrayOfReturnWeb_AdminResellerListNewsCentres_ItemcomplexContentrestriction base=soap11-enc:Arrayattribute ref=soap11-enc:arrayType wsdl:arrayType=tns:ReturnWeb_AdminResellerListNewsCentres_Item[]//restriction/complexContent/complexTypecomplexType name=ReturnWeb_AdminResellerListNewsCentres_Item sequenceelement name=news_id type=int/element name=call_centre_id type=int/element name=call_centre_name type=string//sequence/complexTypeThat allows me to do a conversion like so:ReturnWeb_AdminResellerListNewsCentres result = newReturnWeb_AdminResellerListNewsCentres(); java.util.List list = new ArrayList();// db result set - just an examplewhile (rs.next()) {ReturnWeb_AdminResellerListNewsCentres_Item item =new ReturnWeb_AdminResellerListNewsCentres_Item( rs.getInt(news_id),rs.getInt(call_centre_id),rs.getString(call_centre_name) );list.add(item);}rs.close();ReturnWeb_AdminResellerListNewsCentres_Item[] list_array=newReturnWeb_AdminResellerListNewsCentres_Item[0]; list_array = (ReturnWeb_AdminResellerListNewsCentres_Item[])list.toArray(list_array);result.setList(list_array);Sorry for the long example.Now I'm trying to do the same with doc / lit and I believe, minOccurs and maxOccurs:!-- shown for completeness --complexType name=ReturnWebBasesequenceelement name=errorMessage type=xsd:string/ element name=successErrorCode type=xsd:int//sequence/complexTypeelement name=ReturnWeb_AdminResellerListNewsCentres minOccurs=0 maxOccurs=unboundedcomplexTypecomplexContentextension base=tns:ReturnWebBasesequenceelement name=news_id type=int/element name=call_centre_id type=int/element name=call_centre_name type=string//sequence/extension/complexContent/complexType/element That of course doesn't work because 'Attribute not allowed: maxOccurs'on aglobal element like 'ReturnWeb_AdminResellerListNewsCentres' .Any hints? Googling isn't turning up much. Note that I'm not just trying to put an array in a complexType, I want an _array_ of complexType .iksrazal
Urgent: Axis 1.3 BasicAuthentication and CommonsHTTPSender problem
Hello!! I am sending again my problem I am using Axis 1.3, tomcat 5.5.12, java 1.5. I am using a client-deploy.wsdd that points to CommonHTTPSender transport so my axis client can use Http 1.1. I am also using commonsHTTPclient-3.0-rc4.jar and commonsCodec-1-3.jar. My web service is using those two handlers for authentication: requestFlow name=checks handler type=java:org.apache.axis.handlers.SimpleAuthenticationHandler/ handler type=java:org.apache.axis.handlers.SimpleAuthorizationHandler/ /requestFlow. I also set the userName and password for my Call object. Also set setMaintainSession(true). The problem is: When the client sends the message it is not authorized (HTTP/1.1 401 Unauthorized). But the client sends automatically the same message again, and now it is authorized. Running ethereal I saw in the Http Header that in the first message there is not a Authorization: Basic + some hexadecimal stuff entry. The Http header response has the follow entry: WWW-Authenticate: Basic realm=AXIS. I did not set this realm at any place (tomcat configuration file or the axis server side). At the axis fault string I have: faultstringUser 'null' not authenticated (unknown user)/faultstring. As I said I set the user name and password (Ah, the user name and password exists at users.lst). Only one detail. Debugging I saw that in the messageContext object, at the client side, that the user name and password were empty. So in my stub I also set userName and password for the messageContext. See the code below: _call.getMessageContext().setUsername(userName); _call.getMessageContext().setPassword(passWord); The second message, that is the first one sent again, goes with the Authorization entry at the Http header. The credentials: user name and password, are filled. So, the message is authorized. At last, when I use http 1.0 and HTTPSender I do not have the authentication problem and the message´s duplication problem. With this problem, when I use http 1.1 (using CommonsHTTPSender)my web service is slower than with http 1.0 (using HTTPSender) even running it at a local network Could anyone help me? What is going on? Thx, Fabrizzio Cabral de Lacerda
Re: Axis2 Deployment Options
Also, how do you share global objects now? I used to be able to create an entire war and share any objects I needed to. Now that the services are in individual aar files, where do I put the shared objects? On 12/14/05, Todd Orr [EMAIL PROTECTED] wrote: The changes in the deployment options from Axis1 to Axis2 are very disruptive. The web admin for uploading new services is nice for testing, but makes my company's deployment scripts useless. The fact that the aar files need to be placed in the exploded axis2 war's services directory makes deployment a real pain. Axis1 was very simple and easy to use since it was only a regular webapp. I've been reading through the docs, and I do not see any other deployment options. Has anyone found any better ways to deploy axis2 services?
Re: Axis2 Deployment Options
Also, how would you version the services now? I used to be able to create a separate war with a different url-pattern based on version. Now that services are deployed under one war, how can I differentiate? On 12/14/05, Todd Orr [EMAIL PROTECTED] wrote: Also, how do you share global objects now? I used to be able to create an entire war and share any objects I needed to. Now that the services are in individual aar files, where do I put the shared objects? On 12/14/05, Todd Orr [EMAIL PROTECTED] wrote: The changes in the deployment options from Axis1 to Axis2 are very disruptive. The web admin for uploading new services is nice for testing, but makes my company's deployment scripts useless. The fact that the aar files need to be placed in the exploded axis2 war's services directory makes deployment a real pain. Axis1 was very simple and easy to use since it was only a regular webapp. I've been reading through the docs, and I do not see any other deployment options. Has anyone found any better ways to deploy axis2 services?
How is the Service initialized with Application scope?
Hi. I'm a newbie to this web services thing. I have a class that need's to perform some instructions when it loads, e.g. I need to connect to a RMI Server. How can I do that? I've already put the scope as Application but the constructor is never called... E.g in Servlets the engine calls init() to initialate the Servlet... Is there a way to do that in Axis? Thanks
Re: Problem with production deployment of Eclipse developed WS client
check the WSDL you used to generate the original client code :) look for soap:address -- dims On 12/14/05, Jim Azeltine [EMAIL PROTECTED] wrote: I have made lots of good progress with web services thanks to this list. I have Eclipse 3.1 with the WTP plugins installed and working. Using Tomcat 5.0.2.8 and JDK 1.4.2_08 in my development workstation. The roadblock at this point is that the target production environment is on server running Solaris 5.9, Apache 1.3, and Tomcat 4.1.29, and this server is behind a firewall. I am accessing the client webpage from inside the firewall as I am connected via VPN. When a functional (in the development environment) Eclipse generated client is deployed to the server, it does not work as expected. I successfully deployed the service, and installed the client classes and the jsp files in the server. The client page will come up, the getEndpoint() method returns the wrong value! The Tomcat instance is set up to listen on port 8921, but the server and port are wrong in the response, localhost:8080 instead of the corr ect server and port. This initially made me think the service did not work, as I got ConnectException: Connection refused. Once I realized the endpoint was wrong and used the setEndpoint() method to set the correct value, the service works. So the question is why does the following call in the init method of the proxy class return the wrong value? _endpoint = (String)((javax.xml.rpc.Stub)testClass)._getProperty(javax.xml.rpc.service.endpoint.address); Jim Azeltine Sr. Software Engineer SAIC -- Davanum Srinivas : http://wso2.com/blogs/
Cross Site Scripting and database injection via axis web services
I am looking at security issues with our web services before we go to production. Has any one got any good tips, suggestions or references on how to prevent cross site scripting through web services, especially web services with attachments. What experiences have people had with mime/dime and security risks? I am looking at a filter chain to inspect the soap message for malice scripting and sql text The thing that concerns me is that although we are using basic authentication over ssh, and only open up our firewalls to trusted clients, I cannot be sure that our clients databases have not injected with scripting whic then finds it's way into the web service soap contents and then into our data base. Am I being overly paranoid or are these valid concerns? Would the filters be somthing usefull to contrubute back to the axis project and have as a configurable item, that axis users could turn on and extend upon if they wish? Matt Send instant messages to your online friends http://au.messenger.yahoo.com
Re: Cross Site Scripting and database injection via axis web services
Note where I said ssh I meant SSL!! --- Matthew Hannay [EMAIL PROTECTED] wrote: I am looking at security issues with our web services before we go to production. Has any one got any good tips, suggestions or references on how to prevent cross site scripting through web services, especially web services with attachments. What experiences have people had with mime/dime and security risks? I am looking at a filter chain to inspect the soap message for malice scripting and sql text The thing that concerns me is that although we are using basic authentication over ssh, and only open up our firewalls to trusted clients, I cannot be sure that our clients databases have not injected with scripting whic then finds it's way into the web service soap contents and then into our data base. Am I being overly paranoid or are these valid concerns? Would the filters be somthing usefull to contrubute back to the axis project and have as a configurable item, that axis users could turn on and extend upon if they wish? Matt Send instant messages to your online friends http://au.messenger.yahoo.com Send instant messages to your online friends http://au.messenger.yahoo.com
problem in getting WSDL
Hi all, 1. I don't know how to take the WSDL from the myself written service.2. I deployed my.. .aar file intheservices folder.That service is working nicley with java client.But now I want access that from .NET client to do that I want to take wsdl. whenI(brows by using thius http://localhost:8080/axis2)go serrvice link that show all the method my services.but once I go to the link corresponding to the service then it giev XML document telling WSDL is not available. Why like that.If you know any method totakeWSDL onceafter deployingthe servicein axis2 .please send me . Any kind of response is higly appreciated3.How can I make a java or .Net proxy to achve interopoerability.madushan thilina Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping
axis2 impressions
The more I learn about Axis2, the less appealing it is. It seems to be giant leap backwards. Why is coding using OMElement (and the other OM... objects) a better approach than deploying a POJO? This is a huge pain. Not to mention the deployment issues that I've already run into. Based on the documentation I feel as though Axis2 is a step forward architecturally, but extremely weak in user friendliness. For this reason I've been finding myself more interested in XFire. It has many features of Axis2, yet is extremely easy to create Web services with. Why would the Axis2 team go in this anti-productivity direction?