kr.Nitesh

I am trying to call orchestration exposed as a web service but not able to do so from a simple C# client programe.

Code for C# Client is as:

static void Main(string[] args)

{

Request req = new Request();//Creatin an object of schema declared in BizTalk Project

//assiging value to each element of schema

req.RequestId = "RQ234F6";

req.RegionName = "North";

req.NumOfConnRequested = 100;

req.EstimCost = "1000000";

req.Description = "Need More Connection";

//creating object of Type Orchestration webservice

_UserToManager_Workflow1_Port_RequestResponseForHIPoc ws =

new _UserToManager_Workflow1_Port_RequestResponseForHIPoc();

//ws.PreAuthenticate = true;

ReplyUser rep = ws.Operation_1(req);

Console.ReadKey();

}

But at the run time it throw a SOAP error. Please tell me what I am missing here I had not added any proxy file here as we do in WSE-web service.

It a simple call to Orchestration(BizTalk) exposed as web service. If you have any document to do so also please share that with me.

Thanks




Re: BizTalk R2 General Calling Orchestration exposed as web service

Richard Hallgren

This is just the general SOAP exception. You'll need to check the application log to find out what actually went wrong. It can be everything form a security related error to not having started the orchestrations .... The application log will tell you.

This list is a good source of possible problems even if I would start with checking the application log.

Richard Hallgren
http://www.richardhallgren.com







Re: BizTalk R2 General Calling Orchestration exposed as web service

NIte

Thanks Richard,

I had gone through the list and change the anonymous access to windows integrated but now it show a different erroe as

The request failed with HTTP status 401: Unauthorized.

while calling orchestration:-


Reply res=

ws.Operation_1(req);

...Please let me know if you have an idea about it.

Thanks






Re: BizTalk R2 General Calling Orchestration exposed as web service

Richard Hallgren

The below is pasted from here. Have you set up your application pool like this

When you create an application pool for a SOAP receive location, you must configure it to run under an account that is a member of the Windows group for the isolated host running the SOAP receive adapter and the Internet Information Services Worker Process group (IIS_WPG group). You must then configure the host instance for the SOAP receive adapter to use this account. If you change the account for the IIS_WPG group, you must ensure you also update the host instance to run under the new account.

Richard Hallgren

http://www.richardhallgren.com






Re: BizTalk R2 General Calling Orchestration exposed as web service

hemabiz

Before invoking ws.Operation 1 can you set the credentials for ws

like

ws.Credential = System.net.Credentials.Defaultcredentials..





Re: BizTalk R2 General Calling Orchestration exposed as web service

kr.Nitesh

Thanks Hema,

I had already done that but its not workin.






Re: BizTalk R2 General Calling Orchestration exposed as web service

ibrahim durmus - Microsoft Corp

Hi Nite,

As Richard suggested, adding your account under these two groups:

+IIS_WPG group
+BizTalk Isolated Host Users

AND

+ Restarting IIS and Biztalk Host Instance (to be on the safe side)

should work If not, can you give us some more info


- Ibrahim DURMUS
http://www.ibrahimdurmus.com
http://blogs.msdn.com/ibrahim






Re: BizTalk R2 General Calling Orchestration exposed as web service

Richard Hallgren

Hi again,

Have you read this blog post Does it match your setup Is it working once you turn anonymous access on

Richard Hallgren

http://www.richardhallgren.com






Re: BizTalk R2 General Calling Orchestration exposed as web service

kr.Nitesh

Thanks to all of you.

The SOAPException was to due to the reason I had not given the administrative rights to the ApplicationPool of the WebService under whihc the BizTalk Services are running.

Thanks