users@jax-rpc.java.net

RE: unsupported schema type Map

From: Marc Des Garets <marc.desgarets_at_192.com>
Date: Mon, 2 Jun 2008 14:35:40 +0100

Following my previous post I am trying JAX-WS but I have some
difficulties to do so. Here is how I proceed following this:

http://static.springframework.org/spring/docs/2.5.x/reference/remoting.h
tml (17.5.5)

 

<bean id="testService"
class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">

<property name="serviceInterface" value=" testService"/>

<property name="wsdlDocumentUrl"
value="http://test/remote/TestService.cfc?wsdl"/>

<property name="namespaceUri" value="http://remote"/>

<property name="serviceName" value="TestService:RemoteProxyBean"/>

<property name="portName" value="TestService.cfc"/>

</bean>

 

My interface:

@WebService

@WebServiceClient(name = "ChargingManager")

public interface ChargingManager {

    public Object getSomething(String test);

}

 

I put WebService because I get an Exception without. Here is the error I
get:

Class jaxws.getSomething do not have a property of the name arg0

 

In the wsdl, it's:

<wsdl:message name="getSomethingResponse">

<wsdl:part name="getSomethingReturn" type="xsd:anyType"/>

</wsdl:message>

 

I think the problem comes from the anyType. Do you know how I could
manage this?

 

Thank you for your help.

 

________________________________

From: Marc Des Garets [mailto:marc.desgarets_at_192.com]
Sent: 02 June 2008 10:41
To: users_at_jax-rpc.dev.java.net
Subject: unsupported schema type Map

 

 

Hi,

 

I am using JAX-RPC to consume a coldfusion webservice but I have the
following error:

javax.xml.rpc.ServiceException: modeler error: unsupported schema type:
{http://xml.apache.org/xml-soap}Map

 

Here is the part of the wsdl related to Map:

<schema targetNamespace="http://xml.apache.org/xml-soap">

<import namespace="http://rpc.xml.coldfusion"/>

<import namespace="http://remote"/>

<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

<complexType name="mapItem">

<sequence>

<element name="key" nillable="true" type="xsd:anyType"/>

<element name="value" nillable="true" type="xsd:anyType"/>

</sequence>

</complexType>

 

<complexType name="Map">

<sequence>

<element maxOccurs="unbounded" minOccurs="0" name="item"
type="apachesoap:mapItem"/>

</sequence>

</complexType>

</schema>

 

So my question is: how do I add the support of Map? I'm using JAX-RPC
with spring if it helps... And one more information, I am using jax-rpc
1.1.3. I was thinking that maybe jax-ws 2.1.3 could handle this, what is
your opinion?

 

Thank you in advance for your help.

 

 

Marc des Garets

 

 

________________________________

This transmission is strictly confidential, possibly legally privileged,
and intended solely for the addressee. Any views or opinions expressed
within it are those of the author and do not necessarily represent those
of 192.com, i-CD Publishing (UK) Ltd or any of it's subsidiary
companies. If you are not the intended recipient then you must not
disclose, copy or take any action in reliance of this transmission. If
you have received this transmission in error, please notify the sender
as soon as possible. No employee or agent is authorised to conclude any
binding agreement on behalf of i-CD Publishing (UK) Ltd with another
party by email without express written confirmation by an authorised
employee of the Company. http://www.192.com <http://www.192.com/> (Tel:
08000 192 192).
i-CD Publishing (UK) Ltd is incorporated in England and Wales, company
number 3148549, VAT No. GB 673128728.

________________________________