Hi,
I am using vugen 11.52 Build 5113
we need to create web service using WSDL URL for create operation. this service uses webservice Atomic transaction. You can find the script snapt shot and output below.
while running the script we are getting the error response - The service operation requires a transaction to be flowed. Request you to pelase share your feedback on fixing this error
WCF - Custombinding has been set as sceario type in Manage service setting.
web_set_user("Doamin\\Username","*******","Host:Port");
web_service_call( "StepName=SomeCreateService_101",
"SOAPMethod=BizTalkServiceInstance|WSHttpBinding_ITwoWayAsyncVoidTxn|SomeCreateService",
"ResponseParam=response",
"Service=BizTalkServiceInstance",
"ExpectedResponse=SoapResult",
"Snapshot=t1422532201.inf",
BEGIN_ARGUMENTS,
"xml:Create="
.....,
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
Output:
<?xml version="1.0" encoding="utf-16"?>
<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.microsoft.com/net/2005/12/windowscommunicationfoundation/transactions/fault</a:Action>
</s:Header>
<s:Body>
<s:Fault>
<s:Code>
<s:Value>s:Sender</s:Value>
<s:Subcode>
<s:Value xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/transactions">a:TransactionHeaderMissing</s:Value>
</s:Subcode>
</s:Code>
<s:Reason>
<s:Text xml:lang="en-US">The service operation requires a transaction to be flowed.</s:Text>
</s:Reason>
</s:Fault>
</s:Body>
</s:Envelope>
Action.c(203): After saving response
Action.c(203): Error Exceptions:
Action.c(203): System.Exception: Soap error:
Message:Exception of type 'System.Web.Services.Protocols.SoapHeaderException' was thrown.
at Mercury.LR.LrWsNetClient.ProxyCreator.InvokeMethod(String sMethod, IWSMethodParameters mParams, String sAsyncEvent)
at Mercury.LR.LrWsNetClient.NetReplay.InvokeMethod(String sMethod, IWSMethodParameters mParams, String sAsyncEvent)
Action.c(203): Error:<CENTER><STRONG><FONT COLOR=#FF0031>Expected SOAP result, received SOAP fault</FONT></STRONG></CENTER>
Action.c(203): Error:<CENTER><STRONG><FONT COLOR=#FF0031>Failed to retrieve output arguments/checkpoints - SOAP fault occurred</FONT></STRONG></CENTER>
Action.c(203): Notify: Saving Parameter "SomeCreateService_101_Response = ".
Action.c(203): Notify: Saving Parameter "response = <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">\r\n <s:Header />\r\n <s:Body>\r\n <s:Fault>\r\n <s:Code>\r\n <s:Value>s:Sender</s:Value>\r\n <s:Subcode>\r\n <s:Value xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/transactions">a:TransactionHeaderMissing</s:Value>\r\n </s:Subcode>\r\n </s:Code>\r\n <s:Reason>\r\n <s:Text xml:lang="en-US">The service operation requires a transaction to be flowed.</s:Text>\r\n </s:Reason>\r\n </s:Fault>\r\n </s:Body>\r\n</s:Envelope>".