You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Xu Mingwei <xm...@sohu.com> on 2002/10/14 01:48:37 UTC

A Question about portlet call a web service in jetspeed

Hello,every one! Now i meet a question about web service call in a portlet.
i use win2k,jetspeed1.4 ,tomcat4.0 , apache soap .When i call a simple helloworld web service( The function of this web service is return a String), some errors ecurred:


[Header=null] [methodName=getService] [targetObjectURI=urn.www] [encodin
gStyleURI=http://schemas.xmlsoap.org/soap/encoding/] [SOAPContext=[Parts={}]] [Params={[[name=input] [type=class java.lang.String] [value=hehe,niu] [encodingStyleURI=null]]}]    ///this is the soap message in send
java.lang.ClassCastException: org.apache.soap.util.xml.XMISerializer
        at org.apache.soap.encoding.SOAPMappingRegistry.initializeRegistry(Unkno
wn Source)
        at org.apache.soap.encoding.SOAPMappingRegistry.<init>(Unknown Source)
        at org.apache.soap.encoding.SOAPMappingRegistry.getBaseRegistry(Unknown
Source)
        at org.apache.soap.encoding.SOAPMappingRegistry.<init>(Unknown Source)
        at org.apache.soap.rpc.Call.invoke(Unknown Source)
        at test.portlet.SinPortlet.getSinValue(SinPortlet.java:51)
        at test.portlet.SinPortlet.getContent(SinPortlet.java:75)
        at org.apache.jetspeed.portal.security.portlets.PortletWrapper.getConten
t(PortletWrapper.java:142)

This question has bothered me several days, who can help me ?
Thanks thousands,
Xu Mingwei

Best Regards,
Xu MingWei
Computer Science and Project Department,
Beijing University of Aeronautics and Astronautics,
Beijing,China

mailto:xmw2004@sohu.com