calling web service methods by proxy

Hai experts .Am facing a problem here..

Am having websevice with proxy class..My client doesnt give me the webservice WSDL...

I need to call the webservice methods in my Biztalk orchestration...


So my requirement here is to call the methods inside the proxy class without having 'WSDL URL".

How can I?Please explain me in detail..am  newbie..Needed urgently..Please provide me c# code also...


sandydv85Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vel EousResearch & Development ManagerCommented:
Assuming you're using Visual Studio 2008/2010, you can use the svcutil.exe program to automatically generate your proxy class.  To do so requires that you have your service running with an exposed endpoint.

To build your proxy class open the Visual Studio command prompt (Start > All Programs > Microsoft Visual Studio 2008/2010 > Visual Studio Tools > Visual Studio Command Prompt) and navigate to your client application solution directory (i.e. C:\visual studio\my projects\my service client).  From the client directoy run the svcutil.exe file (assuring that your service is running), using the following as an example:

scvutil /language:cs /out:generatedProxy.cs /config:app.config http://service/adderss

Assuming the service was running and the svcutil.exe progam could locate it, two files will be automatically generated 1) proxy class named generatedProxy.cs 2) an application configuration file named app.config.  Both of these files need to be added to your solution (Right click soultion name > Add > Existing Item > add both files).

To connect to your service you would use the following example:

MyServiceClient client = new MyServiceClient(); // You should really pass the binding contract here as a parameter although it is not essential

You should then be able to connect to your exposed methods by using the client property:

client.getCurrentDay(); // Or what ever method you might have exposed.


I hope that is what you're looking for, wasn't to sure from your question.  Any issues just get back to us.  <:
0
sandydv85Author Commented:
hai Tchuki.I need to send the request as the web service,not like calling the instance of the class.
Using proxy how can i generate request to the service methods?
0
Vel EousResearch & Development ManagerCommented:
The method I explained in my previous post explains how to send a request to a service method, see the following link for clarification:

http://msdn.microsoft.com/en-us/library/ms734691.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sandydv85Author Commented:
ok
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WCF

From novice to tech pro — start learning today.