[prev in list] [next in list] [prev in thread] [next in thread]
List: wsif-user
Subject: RE: WSIF and Hashtable as input parameter
From: <Marco.Mistroni () nokia ! com>
Date: 2003-05-27 14:20:56
[Download RAW message or body]
yep!
thanx very much!
regards
marco
> -----Original Message-----
> From: ext Owen D Burroughs [mailto:OWENB@uk.ibm.com]
> Sent: 27 May, 2003 17:04
> To: wsif-user@ws.apache.org
> Subject: RE: WSIF and Hashtable as input parameter
>
>
> Hi,
>
> If I've understood correctly, you are suggesting changing the
> service class
> (and interface) to take a HashMap instead of a Hashtable,
> correct? If so
> then yes, you would only need to do task a)
>
> Regards,
> Owen
>
>
>
> |---------+---------------------------->
> | | <Marco.Mistroni@n|
> | | okia.com> |
> | | |
> | | 27/05/2003 14:44 |
> | | Please respond to|
> | | wsif-user |
> | | |
> |---------+---------------------------->
>
> >-------------------------------------------------------------
> --------------------------------------------------------------
> -----------------------|
> |
>
> |
> | To: <wsif-user@ws.apache.org>
>
> |
> | cc:
>
> |
> | Subject: RE: WSIF and Hashtable as input parameter
>
> |
> |
>
> |
> |
>
> |
>
> >-------------------------------------------------------------
> --------------------------------------------------------------
> -----------------------|
>
>
>
> Hi Owen,
> thanx 4 the reply.
> so if i'll
>
> a) add the line u suggest to the format binding
> b) create an Hashtable inside the testcase
>
> everything should go fine, right?
>
> and..what if instead of using as input parameter an Hashtable i will
> use an Hashmap?
>
> then i'll need to do only the a) task, correct?
>
> thanx in advance and regards
> marco
>
> > -----Original Message-----
> > From: ext Owen D Burroughs [mailto:OWENB@uk.ibm.com]
> > Sent: 27 May, 2003 16:37
> > To: wsif-user@ws.apache.org
> > Subject: Re: WSIF and Hashtable as input parameter
> >
> >
> > Marco,
> >
> > The main problem is that the WSDL2WSDL tooling (still in
> > early development)
> > does not correctly add all the mappings to the format binding
> > used by the
> > Java provider, in fact it currently only adds a mapping for
> > xsd:string ->
> > java.lang.String. To make your testcase work you would need
> > to edit the
> > wsdl to add the following line to the format binding:
> >
> > <format:typeMap typeName="apachesoap:Map"
> formatType="java.util.Map"/>
> >
> > However, another problem appears to be that the testcase is
> setting a
> > HashMap for the part when infact a Hashtable is required by
> > the service
> > endpoint interface. So either a) the interface would have
> to change to
> > accept a java.util,Map or the testcase code would need
> > changing to create a
> > Hashtable rather than a HashMap.
> >
> > Regards,
> > Owen
> >
> >
> >
> > |---------+---------------------------->
> > | | <Marco.Mistroni@n|
> > | | okia.com> |
> > | | |
> > | | 27/05/2003 13:44 |
> > | | Please respond to|
> > | | wsif-user |
> > | | |
> > |---------+---------------------------->
> >
> > >-------------------------------------------------------------
> > --------------------------------------------------------------
> > -----------------------|
> > |
> >
> > |
> > | To: <wsif-user@ws.apache.org>
> >
> > |
> > | cc:
> >
> > |
> > | Subject: WSIF and Hashtable as input parameter
> >
> > |
> > |
> >
> > |
> > |
> >
> > |
> >
> > >-------------------------------------------------------------
> > --------------------------------------------------------------
> > -----------------------|
> >
> >
> >
> >
> >
> > hi all,
> > sorry to post again, but i got no replies from previous
> > posting...let's try again...
> > i create a simple interface with an Hashtable as input parameter...
> > i wanted to create a java mapping in order to call this class..
> >
> > i walked thru the process of creating wsdl files and test
> > cases (during
> > those processes, a class
> > named org.apache.xml.xml_soap.Map_item was created..
> >
> > but when i run the testcase, i got following exception :
> >
> >
> >
> > org.apache.wsif.WSIFException: Error while determining
> > signature of method
> > getJ
> >
> > oltService : The meta information is not consistent.; nested
> > exception is:
> >
> > org.apache.wsif.WSIFException: in0
> >
> > org.apache.wsif.WSIFException: in0
> >
> > at
> >
> org.apache.wsif.providers.java.WSIFOperation_Java.getMethodArgumentCl
> >
> > asses(Unknown Source)
> >
> > at
> > org.apache.wsif.providers.java.WSIFOperation_Java.getMethods(Unknown
> >
> > Source)
> >
> > at
> >
> org.apache.wsif.providers.java.WSIFOperation_Java.<init>(Unknown Sour
> >
> > ce)
> >
> > at
> >
> org.apache.wsif.providers.java.WSIFPort_Java.getDynamicWSIFOperation(
> >
> > Unknown Source)
> >
> > at
> > org.apache.wsif.providers.java.WSIFPort_Java.createOperation(Unknown
> >
> > Source)
> >
> > at org.apache.wsif.base.WSIFClientProxy.invoke(Unknown Source)
> >
> > at $Proxy0.getJoltService(Unknown Source)
> >
> > at
> >
> DefaultNamespace.JoltToolServiceTestCase.executeOpGetJoltService(Jolt
> >
> > ToolServiceTestCase.java:62)
> >
> > at
> >
> DefaultNamespace.JoltToolServiceTestCase.doitStubJoltTool(JoltToolSer
> >
> > viceTestCase.java:47)
> >
> > at
> >
> DefaultNamespace.JoltToolServiceTestCase.testDoitStubJoltTool(JoltToo
> >
> > lServiceTestCase.java:71)
> >
> > at java.lang.reflect.Method.invoke(Native Method)
> >
> > at junit.framework.TestCase.runTest(TestCase.java:154)
> >
> > at junit.framework.TestCase.runBare(TestCase.java:127)
> >
> > at junit.framework.TestResult$1.protect(TestResult.java:106)
> >
> > at junit.framework.TestResult.runProtected(TestResult.java:124)
> >
> > at junit.framework.TestResult.run(TestResult.java:109)
> >
> > at junit.framework.TestCase.run(TestCase.java:118)
> >
> > at junit.framework.TestSuite.runTest(TestSuite.java:208)
> >
> > at junit.framework.TestSuite.run(TestSuite.java:203)
> >
> > at junit.textui.TestRunner.doRun(TestRunner.java:116)
> >
> > at junit.textui.TestRunner.doRun(TestRunner.java:109)
> >
> > at junit.textui.TestRunner.run(TestRunner.java:72)
> >
> > at
> >
> DefaultNamespace.JoltToolServiceTestCase.main(JoltToolServiceTestCase
> >
> > .java:76)
> >
> >
> > has anyone had similar problems??
> >
> > thanx in advance and regards
> > marco
> >
> > ps attached is the original java file
> >
> >
> >
> >
> >
> >
> > #### JoltTool.java has been removed from this note on May 27
> > 2003 by Owen D
> > Burroughs
> >
> >
> >
> >
>
>
>
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic