Hi Heitzso, I have recompiled with the debugging information. Attached file contains details of the exception.
Hope somebody can spot what is going ? Thanks -----Original Message----- From: Heitzso [mailto:[EMAIL PROTECTED]] Sent: 31 May 2002 17:09 To: [EMAIL PROTECTED] Subject: RE: String[] Something obvious is not jumping out at me. Recommend you recompile with debugging on and optimization off to get line numbers in your exception, then repost with just top couple of lines from exception trace to see which line is breaking. Perhaps someone else can spot your error. I can state that the whole axis serialization mechanism works very well once you have the tricks down. Don't know which trick you're missing. I just this morning tried to setup serialization of a bean that contained an array of beans like itself along with a single simple bean (containing just String, boolean, etc.), i.e. a tree. Took about an hour to sort out my errors in setting up all of the bean serialization, but works like a champ and is successfully serializing a test tree 4 levels deep. Heitzso On Fri, 2002-05-31 at 11:23, Chohan, DB (Dharmesh) wrote: > > Thanks for the info. I tried out but I get the following exception : > > at org.apache.axis.message.SOAPFaultBuilder.endElement(Unknown > Source) > > This is extract of my source code. It fails on line marked with ***. > > private void mdsConnect() { > > String endpoint = "http://localhost:8080/axis/MDSService.jws"; > Service service = new Service(); > try { > Call call = (Call)service.createCall(); > call.setTargetEndpointAddress( new java.net.URL(endpoint) ); > call.setOperationName( "mdsSearch" ); > call.addParameter("host", XMLType.XSD_STRING,.. > call.addParameter("objectclass", XMLType.XSD_STRING,.. > call.addParameter("voname", XMLType.XSD_STRING,.. > call.addParameter("attributeindex", XMLType.XSD_INT,.. > call.addParameter("attributes", XMLType.SOAP_ARRAY,.. > call.setReturnType(XMLType.XSD_STRING); > Integer attribCount = new Integer(selectedAttributes); > *** String result = (String)call.invoke( new Object [] { > mdsHost, mdsObject, mdsVoName, attribCount, mdsTypes }); > } > catch(Throwable e) { > } > } > > -----Original Message----- > From: Heitzso [mailto:[EMAIL PROTECTED]] > > to pass array in: > String[] columnName = ... > call.addParameter("columnName", > org.apache.axis.Constants.SOAP_ARRAY, > javax.xml.rpc.ParameterMode.IN); > and > blat (Blat) = call.invoke(new Object[] { columnName } ); > > > On Fri, 2002-05-31 at 05:40, Chohan, DB (Dharmesh) wrote: > > > > Hi, > > > > Does anybody know how to pass a string[] in a RPC call, eg > > call.addParameter( "attributes", XMLType.???, ParameterMode.PARAM_MODE_IN > ); > > > > Thanks > > Dharmesh
Failed to call MDS web service : Method not found Method name = mdsSearch Service name = null Method not found Method name = mdsSearch Service name = null at org.apache.axis.message.SOAPFaultBuilder.endElement(Unknown Source) at org.apache.axis.encoding.DeserializationContextImpl.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:559) at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:853) at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:643) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2978) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:918) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1145) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:988) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerI at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529) at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148) at javax.xml.parsers.SAXParser.parse(SAXParser.java:394) at org.apache.axis.encoding.DeserializationContextImpl.parse(Unknown Source) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(Unknown Source) at org.apache.axis.client.Call.invoke(Unknown Source) at org.apache.axis.client.Call.invoke(Unknown Source) at org.apache.axis.client.Call.invoke(Unknown Source) at org.apache.axis.client.Call.invoke(Unknown Source) at MDSQuery.mdsConnect(MDSQuery.java:485) at MDSQuery.submitButtonActionPerformed(MDSQuery.java:281) at MDSQuery.access$500(MDSQuery.java:23) at MDSQuery$6.actionPerformed(MDSQuery.java:214) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)