Results 1 to 3 of 3

Thread: JAX-RPC unsupported schema type

  1. #1
    Join Date
    May 2008
    Posts
    9

    Default JAX-RPC unsupported schema type

    Hi,

    I have a problem with JAX-RPC. I get the following error:
    javax.xml.rpc.ServiceException: modeler error: unsupported schema type:
    {xml.apache.org/xml-soap}Map

    Here is what I have in the wsdl related to Map:
    Code:
    <complexType name="Map">
      <sequence>
        <element maxOccurs="unbounded" minOccurs="0" name="item" type="apachesoap:mapItem"/>
      </sequence>
    </complexType>
    How do I add the support to Map (apachesoap:MapItem)?

    I tried to use JAX-WS instead of JAX-RPC thinking that maybe, JAX-WS will support it and maybe it's the case but I get an other error:
    Class jaxws.getSomething do not have a property of the name arg0

    Here is the bean and interface I have:
    Code:
    <bean id="testService" class="...JaxWsPortProxyFactoryBean">
      <property name="serviceInterface" value=" testService"/>
      <property name="wsdlDocumentUrl" value="urlToWsdl"/>
      <property name="namespaceUri" value="remote"/>
      <property name="serviceName" value="TestService:RemoteProxyBean"/>
      <property name="portName" value="TestService.cfc"/>
    </bean>
    My interface:
    Code:
    atWebService
    atWebServiceClient(name = "ChargingManager")
    public interface ChargingManager {
        public Object getSomething(String test);
    }
    In the wsdl, it’s:
    Code:
    <wsdl:message name="getSomethingResponse">
      <wsdl:part name="getSomethingReturn" type="xsd:anyType"/>
    </wsdl:message>
    I guess the problem is due to anyType. How can I handle anyType? I thought Object should work.

    Any help will be much appreciated so thank you in advance.

  2. #2
    Join Date
    Jun 2008
    Posts
    15

    Default

    any one know the answer?

  3. #3
    Join Date
    May 2008
    Posts
    9

    Default

    Here is what I have done to solve this problem:

    I am not using JAX-RPC anymore but xfire. My bean looks like this:
    <bean id="myClientService" class="org.codehaus.xfire.spring.remoting.XFireCli entFactoryBean">
    <property name="serviceClass" value="myClient"/>
    <property name="wsdlDocumentUrl" value="url/remote/service.cfc?wsdl"/>
    <property name="namespaceUri" value="url/remote"/>
    <property name="serviceName" value="Service"/>
    </bean>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •