Hi,

I'm trying to do a proxy Web Services in Apache Synapse. I try to publish a
WSDL file (in attach), and it has a message with more than one part. I
receive this error from Apache Synapse:

org.apache.axis2.AxisFault: *More than one part for message input*
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
WSDL11ToAxisServiceBuilder.java:298)
       at org.apache.synapse.core.axis2.ProxyService.buildAxisService(
ProxyService.java:240)
       at org.apache.synapse.core.axis2.SynapseModule.init(
SynapseModule.java:109)
       at org.apache.axis2.context.ConfigurationContextFactory.initModules(
ConfigurationContextFactory.java:209)
       at org.apache.axis2.context.ConfigurationContextFactory.init(
ConfigurationContextFactory.java:189)
       at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:
72)
       at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(ConfigurationContex
tFactory.java:174)
       at org.apache.synapse.SynapseServer.main(SynapseServer.java:60)
Caused by:
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:More
than one part for message i
nput
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(
WSDL11ToAxisServiceBuilder.java:858)
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(
WSDL11ToAxisServiceBuilder.java:782)
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(
WSDL11ToAxisServiceBuilder.java:474)
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(
WSDL11ToAxisServiceBuilder.java:374)
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(
WSDL11ToAxisServiceBuilder.java:334)
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
WSDL11ToAxisServiceBuilder.java:288)
       ... 7 more
org.apache.synapse.SynapseException: Error building service from WSDL
       at org.apache.synapse.core.axis2.ProxyService.handleException(
ProxyService.java:524)
       at org.apache.synapse.core.axis2.ProxyService.buildAxisService(
ProxyService.java:265)
       at org.apache.synapse.core.axis2.SynapseModule.init(
SynapseModule.java:109)
       at org.apache.axis2.context.ConfigurationContextFactory.initModules(
ConfigurationContextFactory.java:209)
       at org.apache.axis2.context.ConfigurationContextFactory.init(
ConfigurationContextFactory.java:189)
       at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:
72)
       at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(ConfigurationContex
tFactory.java:174)
       at org.apache.synapse.SynapseServer.main(SynapseServer.java:60)
Caused by: org.apache.axis2.AxisFault: More than one part for message input
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
WSDL11ToAxisServiceBuilder.java:298)
       at org.apache.synapse.core.axis2.ProxyService.buildAxisService(
ProxyService.java:240)
       ... 6 more
Caused by:
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:More
than one part for message i
nput
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(
WSDL11ToAxisServiceBuilder.java:858)
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(
WSDL11ToAxisServiceBuilder.java:782)
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(
WSDL11ToAxisServiceBuilder.java:474)
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(
WSDL11ToAxisServiceBuilder.java:374)
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(
WSDL11ToAxisServiceBuilder.java:334)
       at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
WSDL11ToAxisServiceBuilder.java:288)
       ... 7 more

Does Apache Synapse support messages with more than one part?


Best regards,
André Macedo.
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="SellPC" targetNamespace="SellPC" xmlns:plnk2="http://docs.oasis-open.org/wsbpel/2.0/plnktype"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="SellPC" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

   <wsdl:message name="output">

      <wsdl:part name="accept" type="xsd:boolean"/>

   </wsdl:message>

   <wsdl:message name="input">

      <wsdl:part name="id" type="xsd:int"/>

      <wsdl:part name="num" type="xsd:int"/>

   </wsdl:message>

   <wsdl:portType name="SellPCPortType">

      <wsdl:operation name="SellPCOperation">

         <wsdl:input message="tns:input"/>

         <wsdl:output message="tns:output"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="SellPCPartnerLinServiceBinding" type="tns:SellPCPortType">

      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>

      <wsdl:operation name="SellPCOperation">

       <soap:operation soapAction="" style="document" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>

         <wsdl:input>

        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>

         </wsdl:input>

         <wsdl:output>

        <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="SellPCPartnerLinService">

      <wsdl:port binding="tns:SellPCPartnerLinServiceBinding" name="SellPCPartnerLinServicePort">

       <soap:address location="http://10.3.3.158:8181/active-bpel/services/SellPCPartnerLinService"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to