Announcement Announcement Module
Collapse
No announcement yet.
JAX-RPC unsupported schema type Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    any one know the answer?

    Comment


    • #3
      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>

      Comment

      Working...
      X