You need to sign in to do that
Don't have an account?

Dot net and salesforce webservcies
Hi Friends,
I am in the process of testing salesforce .So I want to install dot net web servcices on our company server.Then I will call it from salesforce.
I have created Hello World webservices in DoNet and I took wsdl file from dotnet and now in salesforce I Parsed it.I generated stubs or proxies and now within stubs I call function.
However,This web service is yet to be hosted on the server.So I guess since wsdl has already been generated ,Therefore the endpoint URl in the generated classses is some local URL .Now Do I need to change this url to the url of the server on which web service has been hosted.
Where else I need to change the URL in the salesforce generated classes.
I have copied my stubs clasees .It will be great if somebody can point the places where I have to change URL.
I have highlighted the end point URL in red.
/Generated by wsdl2apex
public class James {
public class HelloWorld_element {
private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
private String[] field_order_type_info = new String[]{};
}
public class HelloWorldResponse_element {
public String HelloWorldResult;
private String[] HelloWorldResult_type_info = new String[]{'HelloWorldResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
private String[] field_order_type_info = new String[]{'HelloWorldResult'};
}
public class Service1Soap {
public String endpoint_x = 'http://localhost:53800/Service1.asmx';
public Map<String,String> inputHttpHeaders_x;
public Map<String,String> outputHttpHeaders_x;
public String clientCertName_x;
public String clientCert_x;
public String clientCertPasswd_x;
public Integer timeout_x;
private String[] ns_map_type_info = new String[]{'http://tempuri.org/', 'James'};
public String HelloWorld() {
James.HelloWorld_element request_x = new James.HelloWorld_element();
James.HelloWorldResponse_element response_x;
Map<String, James.HelloWorldResponse_element> response_map_x = new Map<String, James.HelloWorldResponse_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://tempuri.org/HelloWorld',
'http://tempuri.org/',
'HelloWorld',
'http://tempuri.org/',
'HelloWorldResponse',
'James.HelloWorldResponse_element'}
);
response_x = response_map_x.get('response_x');
return response_x.HelloWorldResult;
}
}
}
Thanks,
Chinglish123
Please share the dotnet WSDL file also.