spacer
cornerspacercorner
Reply
Employee
Ari Chopra
Posts: 779
Registered: 05-18-2010
0 Kudos

Re: v9 - Usage of Process Activator

Attached is some sample C# code that I've used in an ASP.NET page to call a web service that was activated using the Process Activator.  This is for an initiation action (Blank Form - initiateLocation is the action name).  You should be able to modify this code slightly to call your particular web service-enabled action.  Keep in mind of course that you will need to add the Service Reference in Visual Studio for your service.  I also added a using statement for the imported service reference.

 

Hopefully this helps-

Employee
Noonsy
Posts: 10
Registered: 05-21-2010
0 Kudos

Re: v9 - Usage of Process Activator

Hello, you may find the following link useful, which avoids the need for the registry change.

 

http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-a...

 

Best Regards


Rich

Senior Member
Soumitra
Posts: 2
Registered: 10-18-2010
0 Kudos

Re: v9 - Usage of Process Activator

Hi Ari Chopra,

 

Thank you for this sample of code. we are also have the similar requirement comsuming metastrom web service in .net application. but the wsdl exposed by metastorm is not having the correct web operation definition for every operation its showing literal as request parameter and response parameter so after adding the web reference of metastorm wsdl we not getting the correct proxy class with interface for invocking webservice.

 

If posible can you please provide the sample metastorm wsdl file which you have used.

 

sample of our wsdl for login operation we got in wsdl:

 

<wsdl:smileysurprised:peration>

<soap:smileysurprised:peration soapAction="http://metastorm.com/ECL_services/IAWSService/Login" style="document" />

<wsdl:input>

<soap:body use="literal" />

</wsdl:input>

 <wsdl:smileysurprised:utput>

<soap:body use="literal" />

</wsdl:smileysurprised:utput>

 

Advisor
Mike G
Posts: 13
Registered: 02-11-2011
0 Kudos

Re: v9 - Usage of Process Activator

I am having a bit of a problem myself. I used the process activator to publish the service. Everything showed up fine.  I was moving along in my web app setting up the referenecs and when i got to the login it was asking for 5 parameters instead of the 4 I saw in the examples:

 

Login(string ClientType, int currentSAP,bool currentSAPSpecified,string authenticationProcess,LoginData)

 

I used the folliwing values:

eclServiceSession = objX.Login("WEB;", 0, false, "", loginData);

 

and received the following error

 

"Engine Exception occurred - look at the inner detail of this exception for more information."

 

The inner exception was NULL but had the following when i drilled down further.

 

_COMPlusExceptionCode -532462766

 

This is a new one for me. Has anyone seen this?

 

Occasional Visitor
ICCMPaul
Posts: 1
Registered: 11-01-2011
0 Kudos

Re: v9 - Usage of Process Activator

I believe the reason you are getting an extra parameter is because you have added a web reference rather than a service reference this will be dependant on what .net framework you are targeting in visual studio.

 

I have had problems getting this working I have been getting error

 

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.

 

I resolved this by changing the web.config for my process web service I changed the security mode to TransportCredentialOnly and the clientCredentialType to Windows case sensitive so be careful

 

        <binding name="basicHttpBinding_Service" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false"

hostNameComparisonMode="StrongWildcard" maxBufferSize="41943040" maxBufferPoolSize="524288" maxReceivedMessageSize="41943040" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered">           <readerQuotas maxDepth="32" maxStringContentLength="41943040" maxArrayLength="41943040" maxBytesPerRead="4096" maxNameTableCharCount="16384" />           <security mode="TransportCredentialOnly">             <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />             <message clientCredentialType="UserName" algorithmSuite="Default" />           </security>         </binding>

Advisor
Mike G
Posts: 13
Registered: 02-11-2011
0 Kudos

Re: v9 - Usage of Process Activator

Yes, I was adding it as a web reference instead of service.

 

I made the changes you suggested to the config file of the service that was created and now i am getting the following message that you mentioned.

 

"The HTTP request is unauthorized with client authentication scheme 'Negotiate'."

 

Instead of the message to look at the inner exception.  Could really use some guidance on how to get the service i created  working. 

 

 

 

 

 

Valued Contributor
Greg
Posts: 179
Registered: 05-19-2010
0 Kudos

Re: v9 - Usage of Process Activator

Hi

 

I was trying to use some action published as webservice by processactivator in another process. But If I try to login i have error message like this:

 

"Engine Exception occurred - look at the inner detail of this exception for more information"

 

Any ideas?

 

Member
gspross
Posts: 1
Registered: 12-12-2011
0 Kudos

Re: v9 - Usage of Process Activator

[ Edited ]

@Mike G: How did you get by this error?

 

"The HTTP request is unauthorized with client authentication scheme 'Negotiate'."

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