Hi,
I checked with DSS Data Services 2.6.0,. I am attaching the wsdl with this.
Thanks
On Tue, Jan 3, 2012 at 11:13 AM, Amila Suriarachchi <am...@wso2.com> wrote:
>
>
> On Mon, Jan 2, 2012 at 6:17 PM, Shelan Perera <she...@wso2.com> wrote:
>
>> This is regarding the issue. [1]
>>
>> To reproduce the scenario i have developed a sample service which has two
>> methods ping1() and ping2() which will return two different strings
>> "pinging1" and "pinging 2".There are no parameters for the request.
>>
>> 1) When invoke from the try it with response caching enabled second
>> operation returns the same string which is "pinging1" instead
>> "pinging2".When i invoke from a wrapped client it is successful and return
>> the intended strings.
>>
>> 2) The difference with try it is ,
>>
>> with tryit : SOAP body is empty
>>
>> with wrapped client : SOAP Body has
>> <soapenv:Body>
>> <ns1:ping1 xmlns:ns1="http://www.wso2.org/types" />
>> </soapenv:Body>
>>
>> The reason is when you have an empty body it cannot differentiate two
>> request and mislead as the previous request (which again has an empty body).
>>
>> Since this happens only with the tryit if we are going to fix we need to
>> resolve it there. What is the best approach to handle it? Does the spec
>> allows to send an empty SOAP body ?
>>
>
> Can you send us the wsdl generated from the DSS service? I checked with
> the 2.6.2 version and the DSS wsdl is set to an empty soap body.
>
> According to basic profile[1] you can not use the same input message for
> two different operations. Therefore this is an issue with DSS and need to
> fix at the DSS wsdl generation.
>
> thanks,
> Amila.
>
> [1]
> http://www.ws-i.org/Profiles/BasicProfile-1.1.html#Operation_Signatures
>
>
>
>
>>
>>
>> Thanks,
>>
>>
>>
>> [1] https://wso2.org/jira/browse/CARBON-11947
>>
>>
>> --
>> *Shelan Perera*
>>
>> Software Engineer
>> **
>> *WSO2, Inc. : wso2.com*
>> lean.enterprise.middleware.
>>
>> *Home Page* : shelan.org
>> *Blog* : blog.shelan.org
>> *Linked-i*n :http://www.linkedin.com/pub/shelan-perera/a/194/465
>> *Twitter* :https://twitter.com/#!/shelan
>>
>> *Mobile* : +94 772 604 402
>>
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Amila Suriarachchi*
>
> Software Architect
> WSO2 Inc. ; http://wso2.com
> lean . enterprise . middleware
>
> phone : +94 71 3082805
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
--
*Shelan Perera*
Software Engineer
**
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.
*Home Page* : shelan.org
*Blog* : blog.shelan.org
*Linked-i*n :http://www.linkedin.com/pub/shelan-perera/a/194/465
*Twitter* :https://twitter.com/#!/shelan
*Mobile* : +94 772 604 402
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://www.wso2.org/types" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://www.wso2.org/types">
<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="WSO2CachingPolicy">
<wsp:ExactlyOne>
<wsp:All />
</wsp:ExactlyOne>
</wsp:Policy>
<wsdl:documentation>HelloService</wsdl:documentation>
<wsdl:types>
<xs:schema attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://www.wso2.org/types">
<xs:element name="ping2">
<xs:complexType>
<xs:sequence />
</xs:complexType>
</xs:element>
<xs:element name="ping2Response">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ping1">
<xs:complexType>
<xs:sequence />
</xs:complexType>
</xs:element>
<xs:element name="ping1Response">
<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="ping2Request">
<wsdl:part name="parameters" element="ns:ping2" />
</wsdl:message>
<wsdl:message name="ping2Response">
<wsdl:part name="parameters" element="ns:ping2Response" />
</wsdl:message>
<wsdl:message name="ping1Request">
<wsdl:part name="parameters" element="ns:ping1" />
</wsdl:message>
<wsdl:message name="ping1Response">
<wsdl:part name="parameters" element="ns:ping1Response" />
</wsdl:message>
<wsdl:portType xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" name="HelloServicePortType" wsp:PolicyURIs="#WSO2CachingPolicy">
<wsdl:operation name="ping2">
<wsdl:input message="ns:ping2Request" wsaw:Action="urn:ping2" />
<wsdl:output message="ns:ping2Response" wsaw:Action="urn:ping2Response" />
</wsdl:operation>
<wsdl:operation name="ping1">
<wsdl:input message="ns:ping1Request" wsaw:Action="urn:ping1" />
<wsdl:output message="ns:ping1Response" wsaw:Action="urn:ping1Response" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="HelloServiceSoap11Binding" type="ns:HelloServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<wsdl:operation name="ping2">
<soap:operation soapAction="urn:ping2" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ping1">
<soap:operation soapAction="urn:ping1" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="HelloServiceSoap12Binding" type="ns:HelloServicePortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<wsdl:operation name="ping2">
<soap12:operation soapAction="urn:ping2" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ping1">
<soap12:operation soapAction="urn:ping1" 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="HelloServiceHttpBinding" type="ns:HelloServicePortType">
<http:binding verb="POST" />
<wsdl:operation name="ping2">
<http:operation location="ping2" />
<wsdl:input>
<mime:content type="text/xml" part="parameters" />
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="parameters" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ping1">
<http:operation location="ping1" />
<wsdl:input>
<mime:content type="text/xml" part="parameters" />
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="parameters" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HelloService">
<wsdl:port name="HelloServiceHttpSoap11Endpoint" binding="ns:HelloServiceSoap11Binding">
<soap:address location="http://10.200.3.96:9763/services/HelloService.HelloServiceHttpSoap11Endpoint/" />
</wsdl:port>
<wsdl:port name="HelloServiceHttpsSoap11Endpoint" binding="ns:HelloServiceSoap11Binding">
<soap:address location="https://10.200.3.96:9443/services/HelloService.HelloServiceHttpsSoap11Endpoint/" />
</wsdl:port>
<wsdl:port name="HelloServiceHttpSoap12Endpoint" binding="ns:HelloServiceSoap12Binding">
<soap12:address location="http://10.200.3.96:9763/services/HelloService.HelloServiceHttpSoap12Endpoint/" />
</wsdl:port>
<wsdl:port name="HelloServiceHttpsSoap12Endpoint" binding="ns:HelloServiceSoap12Binding">
<soap12:address location="https://10.200.3.96:9443/services/HelloService.HelloServiceHttpsSoap12Endpoint/" />
</wsdl:port>
<wsdl:port name="HelloServiceHttpsEndpoint" binding="ns:HelloServiceHttpBinding">
<http:address location="https://10.200.3.96:9443/services/HelloService.HelloServiceHttpsEndpoint/" />
</wsdl:port>
<wsdl:port name="HelloServiceHttpEndpoint" binding="ns:HelloServiceHttpBinding">
<http:address location="http://10.200.3.96:9763/services/HelloService.HelloServiceHttpEndpoint/" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev