![]() | ![]() |
|
07-21-2010 12:56 PM - last edited on 07-23-2010 09:40 AM
Anyone have any idea where I am going wrong? I have attached the web service.
I am trying to use the WSRequest, passing the following Workflow:
<Workflow>
<process>TestWebService</process>
<oqm>FSPOD</oqm>
<priority>5</priority>
<WSRequest endPoint="http://localhost/test.asmx" soapVersion="1.1">
<Payload>
<tns:CalculateTotal xmlns:tns="http://localhost/MyWebServices/">
<tns:quantity>12</tns:quantity>
<tns:cost>13</tns:cost>
</tns:CalculateTotal>
</Payload>
</WSRequest>
</Workflow>
I get the following error:
Cannot process Web Service: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .
at System.Web.Services.Protocols.Soap11ServerProtocol
at System.Web.Services.Protocols.SoapServerProtocol.R
at System.Web.Services.Protocols.SoapServerProtocol.I
at System.Web.Services.Protocols.ServerProtocol.SetCo
at System.Web.Services.Protocols.ServerProtocolFactor
Solved! Go to Solution.
07-21-2010 01:52 PM
Here is the WSDL.
07-21-2010 02:14 PM
Ethan,
Attached is a sample web service we test against and below is the web service request xml to invoke the getIntSum function via the process monitor. Your request does not specify the soapAction attribute in the WSRequest element.
<?xml version="1.0" encoding="UTF-8"?>
<Workflow>
<WSRequestList>
<WSRequest endPoint="http://tpaqa01/webservices/MIMinterop.asmx" soapAction="http://metastorm.com/webservices/getIntSum" soapVersion="1.1">
<Payload>
<tns:getIntSum xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://metastorm.com/webservices/" xmlns:types="http://metastorm.com/webservices/encodedTypes" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<intVal1 xsi:type="xsd:int">2</intVal1>
<intVal2 xsi:type="xsd:int">3</intVal2>
</tns:getIntSum>
</Payload>
</WSRequest>
</WSRequestList>
<process>Web_Service_Requester</process>
<priority>5</priority>
</Workflow>
07-21-2010 02:30 PM - last edited on 07-21-2010 02:32 PM
That was it. The SoapAction needs to be specified for this type of web service. Thanks to you and Doug Johnson for the assistance here.
Here is the WSResponse I received:
<WSResponse endpoint="http://localhost/test.asmx" hasFault="false" soapAction="http://localhost/MyWebServices/Calcula
<Payload>
<CalculateTotalResponse xmlns="http://localhost/MyWebServices/">
<CalculateTotalResult>156</CalculateTotalResult>
</CalculateTotalResponse>
</Payload>
</WSResponse>
![]() |
![]() |
![]() |
|
|
![]() |
![]() |
![]() |
















