الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مشكلة في في عمل Reference ل Webservice

بدأه shama1984 في 13 نوفمبر 2008 · 13 رد · 855 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

يا اخواني الاعزاء ..انا عندي مشكلة في استدعاء ويب سيرفس خاصة باوراكل من الموقع

ويطلع لي ُError:

اقتباس
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.55:8888

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)

at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

--- End of inner exception stack trace ---

at System.Net.HttpWebRequest.GetRequestStream()

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

at wscomplaintv1.fnGetCompStatus(Decimal vCompId) in c:\Inetpub\wwwroot\IntegrationService\App_Code\myProxyClass.cs:line 49

at Service.Complaint_Tracing(Decimal comp_id) in c:\Inetpub\wwwroot\IntegrationService\App_Code\Service.cs:line 111

أرجو الإفادة يا اخوان

تم تعديل هذه المشاركة بواسطة Night Coder في 19 نوفمبر 2008 في 14:56

#2

ارجو يا اخوان المساعدة ...

وجزاكم الله خيراً

#4

شكرا اخي الكريم ...

ولكن انا اطبقها من بشكل مباشر على نفس العنوان ...وتكون النتيجة صحيحة ...

ولكن عندما اعملها كـــ Web Refernce .. يظهر الخطأ

اقتباس
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.55:8888

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)

at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

--- End of inner exception stack trace ---

at System.Net.HttpWebRequest.GetRequestStream()

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

at wscomplaintv1.fnGetCompStatus(Decimal vCompId) in c:\Inetpub\wwwroot\IntegrationService\App_Code\myProxyClass.cs:line 49

at Service.Complaint_Tracing(Decimal comp_id) in c:\Inetpub\wwwroot\IntegrationService\App_Code\Service.cs:line 111

#5

هل تقصد بـ"انا اطبقها من بشكل مباشر على نفس العنوان ...وتكون النتيجة صحيحة ..." بأنك تستخدمها من المتصفح؟

إذا كان هذا هو ما يحدث قد يكون هناك إعدادات إضافية للمتصفح مثل البروكسي لم يتم استخدامها في فيجوال ستوديو

#6

انا يا اخواني سأعطيكم المشكلة بالتفصيل ...

في انا عندي ويب سيرفس معمولة باوراكل 10جي موجودة في سيرفر على شبكة محلية ...

وانا عندي asp.net web application

وعندي ويب سيرفس موجودة في جهاز الكلاينت اللي موجود فيه asp.net application

Okah..

انا اريد اعمل Refernce الى asp.net web service

واللي بدورها سأستدعي الويب سرفس الموجودة على السيرفر

----------------------------------------------------------------------

انا عملت refernce الى الويب سيرفس المحلية (Asp.net web service ) من الموقع

واستدعيت الويب سيرفس الموجودة في السيرفر من الويب سيرفس المحلية

...............................

بس بيظهر لي الخطأ ::

System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.55:8888

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)

at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

--- End of inner exception stack trace ---

at System.Net.HttpWebRequest.GetRequestStream()

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

at wscomplaintv1.fnGetCompStatus(Decimal vCompId) in c:\Inetpub\wwwroot\IntegrationService\App_Code\myProxyClass.cs:line 49

at Service.Complaint_Tracing(Decimal comp_id) in c:\Inetpub\wwwroot\IntegrationService\App_Code\Service.cs:line 111

فأرجوا المساعدة

وجزاكم الله خير

#7

جرب التالي:

افتح صفحة متصفح و ضع عنوان الويب سيرفس و انظر ما يحصل. إذا حصل خطأ أيضاً قفد تكون المشكلة في الشبكة أو الفايروول Firewall لأنني ألاحظ أنك تستخدم بورت غير 8080

#8

شكرا اخي الكريم على الرد ..

ولكن انا استخدم localhost بتاع ال visualstudio وكما تعلم ان البورت يتغير دائما

وجزاك الله خير ..

وارجو الافادة

#9

لا أقصد عنوان التطبيق. بل عنوان الويب سيرفس. حسب رسالة الخطأ لديك يبدو كأنها

192.168.0.55:8888

#10

شكرا لك اخي الكريم ..

عنوان الويب سيرفس كالتالي :

http://192.168.0.1:7780/WSFORWSITE_comp/Wscomplaintv1?WSDL

والرسالة التي تظهر هي التي

--------------------------------

System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.55:8888

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)

at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

--- End of inner exception stack trace ---

at System.Net.HttpWebRequest.GetRequestStream()

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

at wscomplaintv1.fnGetCompStatus(Decimal vCompId) in c:\Inetpub\wwwroot\IntegrationService\App_Code\myProxyClass.cs:line 49

at Service.Complaint_Tracing(Decimal comp_id) in c:\Inetpub\wwwroot\IntegrationService\App_Code\Service.cs:line 111

------------------------------------------------------------------------------------------------------

وجزاك الله خير

#12

يعني ما فيش مشكلة تماما في حكاية استدعاء ويب سيرفس معمولة باوراكل ابداً....

شكراً جزيلا يا اخي الكريم على الرد

#13

http://192.168.0.1:7780/

استخدم نفس البورت 7780

The World Must Be Crazy

#14

بس انا مستخدم نفس البورت اخي الكريم والمشكلة لا زالت قائمة

مواضيع مشابهة