spacer
cornerspacercorner
Reply
Employee
Ethan Beisher
Posts: 378
Registered: 05-10-2010
0 Kudos
Accepted Solution

WSRequest Not Working when using Web Services Requester Service

[ Edited ]

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.Soap11ServerProtocolHelper.RouteRequest()

   at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)

   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()

   at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)

   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

 

 

 

 

Ethan Beisher
Solutions Engineer
Business Process Solutions
Employee
Ethan Beisher
Posts: 378
Registered: 05-10-2010
0 Kudos

Re: WSRequest Not Working

Here is the WSDL.

Ethan Beisher
Solutions Engineer
Business Process Solutions
Employee
jsherman
Posts: 6
Registered: 07-21-2010

Re: WSRequest Not Working

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>

Employee
Ethan Beisher
Posts: 378
Registered: 05-10-2010
0 Kudos

Re: WSRequest Not Working

[ Edited ]

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/CalculateTotal" soapVersion="1.1">

   <Payload>

      <CalculateTotalResponse xmlns="http://localhost/MyWebServices/">

         <CalculateTotalResult>156</CalculateTotalResult>

      </CalculateTotalResponse>

   </Payload>

</WSResponse>

 

Ethan Beisher
Solutions Engineer
Business Process Solutions
line spacer line
spacerFollow Metastorm on:
spacer Twitter YouTube Blog iTunes LinkedIn Metastorm Community Central, MC2
spacer Copyright © 2011 OpenText Corporation. All Rights Reserved.spacer About Metastormspacer Privacyspacer Legalspacer Site Mapspacer RSSspacer Contact Us
Microsoft Gold Certified Partner
Powered by Windows Azure
line spacer line