On Sat, Aug 20, 2011 at 6:53 PM, Denis Weerasiri <[email protected]> wrote:

> Hi,
> I'm using 3.2.0 based Carbon product to do all the following stuff.
>
> 1. I generated a service skeleton using a multi-part WSDL with RPC-literal
> binding and deployed in Carbon.
>      <wsdl:message name="probeMessage">
>         <wsdl:part name="probeName" type="xsd:string"/>
>         <wsdl:part name="probeData" type="xsd:string"/>
>     </wsdl:message>
>
>     <wsdl:portType name="probeMessagePT">
>         <wsdl:operation name="probe">
>             <wsdl:input name="ProbeInputMessage" message="tns:probeMessage"
> wsaw:Action="http://probe"/>
>             <wsdl:output name="ProbeOutputMessage"
> message="tns:probeMessage"/>
>         </wsdl:operation>
>     </wsdl:portType>
>
>     <wsdl:binding name="probeBinding" type="tns:probeMessagePT">
>  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http";
> />
>         <wsdl:operation name="probe">
> <soap:operation soapAction="http://probe"; />
>       <wsdl:input>
> <soap:body use="literal" />
>       </wsdl:input>
>       <wsdl:output>
>  <soap:body use="literal" />
>       </wsdl:output>
>  </wsdl:operation>
>     </wsdl:binding>
>
> 2. Then the ?wsdl for that service generate something like as follows. So
> here the problem is now it's a single-part message with wrong element name
> ":probe". How can I fix this?
>
Seems this happened as WSDL generation can't determine the namespace of the
element.

>  <xsd:schema>
>    <wsdl:types>
>  <xsd:element name="probe">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element form="unqualified" name="probeName" nillable="true" type="
> xsd:string"/>
> <xsd:element form="unqualified" name="probeData" nillable="true" type="
> xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
>  </xsd:schema>
>  </wsdl:types>
>
> <wsdl:message name="probeMessage">
> **
> *<wsdl:part name="parameters" element=":probe"/>*
> </wsdl:message>
> <wsdl:portType name="ProbeServicePortType">
> <wsdl:operation name="probe">
> <wsdl:input message="tns:probeMessage" wsaw:Action="http://probe"/>
> <wsdl:output message="tns:probeMessage" wsaw:Action="
> http://ode/bpel/unit-test/ProbeService.wsdl/probeMessagePT/ProbeOutputMessage
> "/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="probeBinding" type="tns:ProbeServicePortType">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="
> document"/>
> <wsdl:operation name="probe">
> <soap:operation soapAction="http://probe"; style="document"/>
> <wsdl:input>
> <soap:body use="literal"/>
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
>
> --
> Thanks,
> Denis
> ----------------------------------------------------------
> *Denis Weerasiri*
> Software Engineer; WSO2 Inc.; http://wso2.com,
> *email: denis <http://goog_277208233/>** [AT] wso2.com* <http://wso2.com/>
> *
> *
> *site: 
> **https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/>
> *blog: **http://ddweerasiri.blogspot.com*<http://ddweerasiri.blogspot.com/>
> *
> twitter: **http://twitter.com/ddweerasiri*<http://twitter.com/ddweerasiri>
> *
> linked-in: 
> **http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri>
>
>


-- 
Thanks,
Denis
----------------------------------------------------------
*Denis Weerasiri*
Software Engineer; WSO2 Inc.; http://wso2.com,
*email: denis <http://goog_277208233/>** [AT] wso2.com* <http://wso2.com/>*
*
*site: 
**https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/>
*blog: **http://ddweerasiri.blogspot.com* <http://ddweerasiri.blogspot.com/>
*
twitter: **http://twitter.com/ddweerasiri* <http://twitter.com/ddweerasiri>*
linked-in: 
**http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri>
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to