Calling Orchestration exposed as web service

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:

staticvoid Main(string[] args)

{

Request req =newRequest();//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

[1963 byte] By [NIte] at [2008-1-10]
# 1

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


RichardHallgren at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 2

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

NIte at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 3

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

RichardHallgren at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 4

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

like

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

hemabiz at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 5

Thanks Hema,

I had already done that but its not workin.

kr.Nitesh at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 6

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

# 7

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

RichardHallgren at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 8

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

kr.Nitesh at 2007-10-3 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...