[
https://wso2.org/jira/browse/WSAS-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Afkham Azeez updated WSAS-595:
------------------------------
Assignee: Amila Suriarachchi (was: sumedha rubasinghe)
Fix Version/s: 2.3
> WCF interop: 'The [action] cannot be processed at the receiver.' error thrown
> in RM-dual channel invocation
> -----------------------------------------------------------------------------------------------------------
>
> Key: WSAS-595
> URL: https://wso2.org/jira/browse/WSAS-595
> Project: WSO2 WSAS
> Issue Type: Bug
> Components: core
> Affects Versions: 2.1
> Environment: Winxp, WCF RM service, jdk15
> Reporter: Charitha Kankanamge
> Assignee: Amila Suriarachchi
> Fix For: 2.3
>
>
> I experienced following issue while invoking a service using RM and dual
> channel (Addressable RM).
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> This is the createSequence message sent to the server.
> POST
> /ReliableMessaging_Service_WSAddressing10_Indigo/RequestReply.svc/Reliable_Addressable_Soap12_WSAddressing10_RM10
> HTTP/1.1
> Content-Type: application/soap+xml; charset=UTF-8;
> action="http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence"
> User-Agent: Axis2
> Host: 131.107.72.15:8085
> Transfer-Encoding: chunked
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
> xmlns:wsa="http://www.w3.org/2005/08/addressing">
> <soapenv:Header>
>
> <wsa:To>http://131.107.72.15/ReliableMessaging_Service_WSAddressing10_Indigo/RequestReply.svc/Reliable_Addressable_Soap12_WSAddressing10_RM10</wsa:To>
> <wsa:ReplyTo>
>
> <wsa:Address>http://124.43.192.15:8095/axis2/services/EchoStringService25966201</wsa:Address>
> </wsa:ReplyTo>
>
> <wsa:MessageID>urn:uuid:F01412C42D7F2E4DFD1193738592851</wsa:MessageID>
>
> <wsa:Action>http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</wsa:Action>
> </soapenv:Header>
> <soapenv:Body>
> <wsrm:CreateSequence
> xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm">
> <wsrm:AcksTo>
>
> <wsa:Address>http://124.43.192.15:8095/axis2/services/EchoStringService25966201</wsa:Address>
> </wsrm:AcksTo>
> <wsrm:Offer>
>
> <wsrm:Identifier>urn:uuid:F01412C42D7F2E4DFD1193738592868</wsrm:Identifier>
> </wsrm:Offer>
> </wsrm:CreateSequence>
> </soapenv:Body>
> </soapenv:Envelope>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> This is the response received by WSAS client.
> POST /axis2/services/EchoStringService25966201 HTTP/1.1
> Content-Type: application/soap+xml; charset=utf-8
> Host: 127.0.0.1:8095
> Content-Length: 974
> Expect: 100-continue
> Connection: Keep-Alive
> <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
> xmlns:a="http://www.w3.org/2005/08/addressing">
> <s:Header>
> <a:Action
> s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse</a:Action>
> <a:RelatesTo>urn:uuid:F01412C42D7F2E4DFD1193738592851</a:RelatesTo>
> <ActivityId CorrelationId="e53e70f5-f02b-4600-8fca-dc7d368167e7"
> xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">8d8531f3-71aa-438f-a5ee-f2059e254164</ActivityId>
> <a:To
> s:mustUnderstand="1">http://124.43.192.15:8095/axis2/services/EchoStringService25966201</a:To>
> </s:Header>
> <s:Body>
> <CreateSequenceResponse
> xmlns="http://schemas.xmlsoap.org/ws/2005/02/rm">
>
> <Identifier>urn:uuid:4525a8dc-f425-4059-b450-c4e495b4e0fd</Identifier>
> <Accept>
> <AcksTo>
>
> <a:Address>http://131.107.72.15/ReliableMessaging_Service_WSAddressing10_Indigo/RequestReply.svc/Reliable_Addressable_Soap12_WSAddressing10_RM10</a:Address>
> </AcksTo>
> </Accept>
> </CreateSequenceResponse>
> </s:Body></s:Envelope>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Finally, WSAS client sends following fault to service.
> HTTP/1.1 100 Continue
> HTTP/1.1 500 The [action] cannot be processed at the receiver.
> Date: Tue, 30 Oct 2007 10:15:57 GMT
> Server: Simple-Server/1.1
> Transfer-Encoding: chunked
> Content-Type: application/soap+xml; charset=utf-8;
> action="http://www.w3.org/2005/08/addressing/fault"
> Connection: Close
> 316
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
> xmlns:wsa="http://www.w3.org/2005/08/addressing">
> <soapenv:Header>
> <wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>
> </soapenv:Header>
> <soapenv:Body>
> <soapenv:Fault>
> <soapenv:Code>
> <soapenv:Value>soapenv:Sender</soapenv:Value>
> <soapenv:Subcode>
> <soapenv:Value>wsa:ActionNotSupported</soapenv:Value>
> </soapenv:Subcode>
> </soapenv:Code>
> <soapenv:Reason>
> <soapenv:Text xml:lang="en-US">The [action] cannot be
> processed at the receiver.</soapenv:Text>
> </soapenv:Reason>
> <soapenv:Detail>
> <wsa:ProblemAction>
>
> <wsa:Action>http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse</wsa:Action>
> </wsa:ProblemAction>
> </soapenv:Detail>
> </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Steps to reproduce:
> ================
> 1. Generate client stub using following WCF endpoint url (unwrap = true,
> unpack classes = true)
> http://131.107.72.15/ReliableMessaging_Service_WSAddressing10_Indigo/RequestReply.svc?wsdl
> 2. extract the generated zip in to a directory and issue 'mvn
> eclipse:eclipse' command to build the stubs
> 3. Write a junit test as follows.
> public class EchoStringServiceCustomBinding_IEchoString2StubTest extends
> TestCase {
> public static final String AXIS2_XML = "C:\\wsas\\client-repo\\axis2.xml";
> public static final String AXIS2_REPOSITORY = "C:\\wsas\\client-repo\\";
> EchoStringServiceStub stub = null;
> protected void setUp() throws Exception {
> ConfigurationContext confContext =
>
> ConfigurationContextFactory.createConfigurationContextFromFileSystem(AXIS2_REPOSITORY,
> AXIS2_XML);
> stub = new EchoStringServiceStub(confContext,
> "http://131.107.72.15/ReliableMessaging_Service_WSAddressing10_Indigo/RequestReply.svc/Reliable_Addressable_Soap12_WSAddressing10_RM10");
> stub._getServiceClient().engageModule(Sandesha2Constants.MODULE_NAME);
>
> stub._getServiceClient().getOptions().setProperty(AddressingConstants.INCLUDE_OPTIONAL_HEADERS,
> Constants.VALUE_TRUE);
>
> stub._getServiceClient().getOptions().setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
> SandeshaPolicyBean bean = new SandeshaPolicyBean();
> bean.setSequenceRemovalTimeoutValue(1200000000);
> bean.setRetransmissionInterval(12000);
> bean.setAcknowledgementInterval(12000);
> SandeshaClient.setPolicyBean(stub._getServiceClient(), bean);
>
> stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(600000000);
>
> //stub._getServiceClient().getOptions().setProperty(SandeshaClientConstants.OFFERED_SEQUENCE_ID,
> UUIDGenerator.getUUID());
> // set the proxy
>
> stub._getServiceClient().getOptions().setProperty(Constants.Configuration.TRANSPORT_URL,
>
> "http://localhost:8085/ReliableMessaging_Service_WSAddressing10_Indigo/RequestReply.svc/Reliable_Addressable_Soap12_WSAddressing10_RM10");
>
> }
> public void testEchoString() {
>
> stub._getServiceClient().getOptions().setProperty(SandeshaClientConstants.LAST_MESSAGE,
> Constants.VALUE_TRUE);
> stub._getServiceClient().getOptions().setUseSeparateListener(true);
> PingRequestBodyType pingRequestBodyType = new PingRequestBodyType();
> pingRequestBodyType.setText("test");
> pingRequestBodyType.setSequence("test");
> try {
> PingResponseBodyType result =
> stub.EchoString(pingRequestBodyType);
> SandeshaClient.terminateSequence(stub._getServiceClient());
> System.out.println("Result ==> " + result.getEchoStringReturn());
> try {
> Thread.sleep(20000);
> } catch (InterruptedException e) {
> e.printStackTrace();
> }
> } catch (RemoteException e) {
> }
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev