I am getting an error while trying to use HttpBinding with service
binding.ws.  I am trying to run this service as part of a vtest project
using "tuscany-host-tomcat" and "tuscany-binding-ws-axis2" modules.
Wondering what I am doing wrong.

Here is my wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="
http://wsbinding.vtest.sca.tuscany.apache.org"; xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:ns0="
http://wsbinding.vtest.sca.tuscany.apache.org"; xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/"; xmlns:ns1="
http://org.apache.axis2/xsd"; xmlns:wsaw="
http://www.w3.org/2006/05/addressing/wsdl"; xmlns:xs="
http://www.w3.org/2001/XMLSchema"; xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/";>
  <wsdl:types>
    <xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="
http://wsbinding.vtest.sca.tuscany.apache.org"; xmlns:ns="
http://wsbinding.vtest.sca.tuscany.apache.org";>
            <xs:element name="getGreetings">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="param0"
nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getGreetingsResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return"
nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
  </wsdl:types>
  <wsdl:message name="getGreetingsRequest">
    <wsdl:part name="parameters" element="ns0:getGreetings">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="getGreetingsResponse">
    <wsdl:part name="parameters" element="ns0:getGreetingsResponse">
    </wsdl:part>
  </wsdl:message>

  <wsdl:portType name="AServicePortType">
    <wsdl:operation name="getGreetings">
      <wsdl:input message="ns0:getGreetingsRequest"
wsaw:Action="urn:getGreetings">
    </wsdl:input>
      <wsdl:output message="ns0:getGreetingsResponse"
wsaw:Action="urn:getGreetingsResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="AServiceSOAP12Binding" type="ns0:AServicePortType">
    <soap12:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getGreetings">
      <soap12:operation soapAction="urn:getGreetings" style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="AServicePortTypeBinding" type="ns0:AServicePortType">
    <soap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getGreetings">
      <soap:operation soapAction=""/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="AServiceHttpBinding" type="ns0:AServicePortType">
    <http:binding verb="POST"/>
    <wsdl:operation name="getGreetings">
      <http:operation location="AService/getGreetings"/>
      <wsdl:input>
        <mime:content part="getGreetings" type="text/xml"/>
      </wsdl:input>
      <wsdl:output>
        <mime:content part="getGreetings" type="text/xml"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="AServiceSOAP11Binding" type="ns0:AServicePortType">
    <soap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getGreetings">
      <soap:operation soapAction="urn:getGreetings" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="AServicePortTypeService">
    <wsdl:port name="AServicePortTypePort"
binding="ns0:AServicePortTypeBinding">
      <soap:address location="http://localhost:8090/AService"/>
    </wsdl:port>
  </wsdl:service>
  <wsdl:service name="AService">
    <wsdl:port name="AServiceHttpport" binding="ns0:AServiceHttpBinding">
      <http:address location="http://localhost:8080/AService"/>
    </wsdl:port>
    <wsdl:port name="AServiceSOAP12port_http"
binding="ns0:AServiceSOAP12Binding">
      <soap12:address location="http://localhost:8012/AService"/>
    </wsdl:port>
    <wsdl:port name="AServiceSOAP11port_http"
binding="ns0:AServiceSOAP11Binding">
      <soap:address location="http://localhost:8011/AService"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
--------

Here is my composite file:
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
    targetNamespace="http://vtest";
    name="one">

    <component name="AComponent">
        <implementation.java
class="org.apache.tuscany.sca.vtest.wsbinding.impl.AServiceImpl"/>
        <service name="AService">
            <binding.ws name="bndh" wsdlElement="
http://wsbinding.vtest.sca.tuscany.apache.org#wsdl.binding(AServiceHttpBinding)
">
                <wsa:EndpointReference xmlns:wsa="
http://www.w3.org/2005/08/addressing";>
                    <wsa:Address>http://localhost:8110/AService
</wsa:Address>
                </wsa:EndpointReference>
            </binding.ws>
        </service>
    </component>
</composite>
---------

Here is the  stack trace of the exception:

org.osoa.sca.ServiceRuntimeException: java.lang.RuntimeException:
org.apache.axis2.AxisFault: RPC-literal type message part parameters should
have a type attribute
    at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:276)
    at
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:70)
    at
org.apache.tuscany.sca.vtest.wsbinding.WSBindingTestCase.startServer(WSBindingTestCase.java:36)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
    at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:75)
    at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:36)
    at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
Caused by: java.lang.RuntimeException: org.apache.axis2.AxisFault:
RPC-literal type message part parameters should have a type attribute
    at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.start(Axis2ServiceProvider.java:292)
    at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceBindingProvider.start(Axis2ServiceBindingProvider.java:94)
    at
org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl$2.run(CompositeActivatorImpl.java:500)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:498)
    at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:245)
    at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.&amp;lt;init&amp;gt;(DefaultSCADomain.java:113)
    at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:242)
    ... 26 more
Caused by: org.apache.axis2.AxisFault: RPC-literal type message part
parameters should have a type attribute
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
    at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:291)
    at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider$1.run(Axis2ServiceProvider.java:522)
    at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider$1.run(Axis2ServiceProvider.java:521)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.createWSDLAxisService(Axis2ServiceProvider.java:520)
    at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.createAxisService(Axis2ServiceProvider.java:430)
    at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.start(Axis2ServiceProvider.java:238)
    ... 33 more
Caused by:
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
RPC-literal type message part parameters should have a type attribute
    at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addPartToElement(WSDL11ToAxisServiceBuilder.java:1992)
    at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getNewComplextType(WSDL11ToAxisServiceBuilder.java:1879)
    at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.createSchemaForPorttype(WSDL11ToAxisServiceBuilder.java:1544)
    at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapperSchema(WSDL11ToAxisServiceBuilder.java:1431)
    at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:255)
    ... 39 more

Reply via email to