Solved

invoking webservice with only xml

Posted on 2010-09-18
1
817 Views
Last Modified: 2013-11-19
I want to invoke an Axis2 Web service from .Net With only sending XML and getting result but this web service has a different end point rather then WSDL url

Thank you
0
Comment
Question by:3XLcom
1 Comment
 
LVL 14

Accepted Solution

by:
existenz2 earned 500 total points
ID: 33714195
In code you can overwrite the url generated from the WSDL so that it points to the correct url. Something like sample below:
No WCF:



MyWebServiceProxy proxy =new MyWebServiceProxy();

proxy.Url = ConfigurationSettings.AppSettings["webServiceUrl"];



proxy.MyMethodCall(param. etc);





WCF:

HelloWorld.HelloWorldClient client = new

WCFHelloWorldClient.HelloWorld.HelloWorldClient();



//change the endpointAddress here

client.Endpoint.Address = new

EndpointAddress("http://localhost:8899/BasicHost/HelloWorld");



Console.WriteLine(client.SayHello("steven"));

Open in new window

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to dynamically set the form action using jQuery.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now