Web Services

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Oct 6, 2016
Company:

Hi,
I'm trying to call a web service but i've one problem. I would like to get on countries in the "http://www.webservicex.net/".

Desciption:
{DataProcessor.DataProcessor1.Form.Form.Form(11)}: Yapılandırıcı çağrısı sürecinde hata oluştu (WSProxy)
proxy= new WSProxy(aa,"http://www.webservicex.net","GetCountries","http://www.webservicex.net/country.asmx");
kaynağı:
Hizmet bulunmadı. {http://www.webservicex.net}:GetCountries

Code
&AtClient
Procedure GetirKod(Command)
   
   Countries=GetCountry();   
EndProcedure

Function GetCountry() Export
   
   Definition=WSReferences.WSReference1.GetWSDefinitions();
   proxy= new WSProxy(Definition,"http://www.webservicex.net","GetCountries","http://www.webservicex.net/country.asmx");
   Return proxy.Get();
EndFunction

How can i do  getting data in the web service?

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Jr Developer.
Did you import WSDL description of that service? What is in that?
Would you please attach a sample configuration where we could reproduce this issue?

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Oct 6, 2016
Company:

Hi, Timofey.
Yes , i m import wsdl into the WSreferance.Ws Reference

And i attached my configuration.

 
#4
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Apr 18, 2012
Company:

Hi, Jr Developer.

I hope this code will help you.

Code
proxy = WSReferences.WSReference1.CreateWSProxy("http://www.webserviceX.NET", "country", "countrySoap");
parameterType = proxy.XDTOFactory.Packages.Get("http://www.webserviceX.NET").Get("GetCountries");
parameter = proxy.XDTOFactory.Create(parameterType);
ListOfCountries = proxy.GetCountries(parameter);
return ListOfCountries.GetCountriesResult;

 
#5
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Oct 6, 2016
Company:

Alexei Khatin,
Tenk u so much

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.