Hello,
I have a web service of my own on a server (vb.net). I must declare it with
SoapRpcMethod to be used with JAVA.
This is a simple exemple method of my vb source : ************************************************* *********************** <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ Public Function HelloWorld() As <System.Xml.Serialization.SoapElementAttribute("re turn")> String HelloWorld = "Hello World" End Function
************************************************* ***********************
The web service seems to be ok, i can access all methods and they work
correctly with the local page generated by iis on the web service url.
The problem is when i want to access the web service methods with a vb form
client.
I create a form, add w.s. reference to the project. This is the code behind
generated by dot net :
************************************************* ***********************
<System.Web.Services.Protocols.SoapRpcMethodAttrib ute("http://tempuri.org/CorusFortisDocumentService/RPCCorusFortisDocumentService/Hello"& _ "World", RequestNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusFortisDocumentService", ResponseNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusFortisDocumentService")> _ Public Function HelloWorld() As <System.Xml.Serialization.SoapElementAttribute("re turn")> String Dim results() As Object = Me.Invoke("HelloWorld", New Object(-1) {}) Return CType(results(0),String) End Function
************************************************* ***********************
All seems to be ok but when i call the method an exception is generated at
the Invoke method :
************************************************* *********************** Une exception non gérée du type 'System.Web.Services.Protocols.SoapException' s'est produite dans system.web.services.dll
Informations supplémentaires : System.Web.Services.Protocols.SoapException: Le serveur n'a pas pu traiter la demande. ---> System.IO.FileNotFoundException: Le fichier ou l'assembly nommé dezaqvlu.dll ou l'une de ses >dépendances, est introuvable. Nom du fichier : "dezaqvlu.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapServerType..ctor (Type type, ProtocolsEnum versionsSupported) at System.Web.Services.Protocols.SoapServerProtocol.I nitialize() at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
=== Pre-bind state information === LOG: Where-ref bind. Location = C:\DOCUME~1\C940DEV4\ASPNET~1.C94\LOCALS~1\Temp\d ezaqvlu.dll LOG: Appbase = file:///C:/Datas/DotNet/dvptroot/FortisDocumentService/src/CorusFortisDocumentService LOG: Initial PrivatePath = bin Calling assembly : (Unknown). ===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/DOCUME~1/C940DEV4/ASPNET~1.C94/LOCALS~1/Temp/dezaqvlu.dll.
--- Fin de la trace de la pile d'exception interne ---
************************************************* ***********************
It is the exception when i try it on my WXP with the w.s. on the same box. I
have the same when i put the w.s. on my W2K3S + IIS and i call the method
from my client :
************************************************* *********************** "System.IO.FileNotFoundException: Le fichier ou l'assembly nommé a8wmmtf-.dll ou l'une de ses dépendances, est introuvable. Nom du fichier : "a8wmmtf-.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapClientType..ctor (Type type) at System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor() at RPCHelloWorld.int.corus.s940web.RPCCorusFortisDocu mentService..ctor() in C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Web References\int.corus.s940web\Reference.vb:line 36 at RPCHelloWorld.Hello.Button1_Click(Object sender, EventArgs e) in C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Hello.vb:line 118>
=== Pre-bind state information === LOG: Where-ref bind. Location = C:\DOCUME~1\cthasin\LOCALS~1\Temp\a8wmmtf-.dll LOG: Appbase = C:\Datas\DotNet\dvptroot\FortisDocumentService\sr c\RPCHelloWorld\bin\ LOG: Initial PrivatePath = NULL Calling assembly : (Unknown). ===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/DOCUME~1/cthasin/LOCALS~1/Temp/a8wmmtf-.dll.
************************************************* ***********************
I'm in very big trouble cause i really dont know why and i'm searching from
2 weeks.
Could you help me please.
Thanks in, advance and excuse me for my english.
Olivier 3 4962
Hi Olivier,
Welcome to webservice newsgroup.
From the description of your problem, the webservice's serverside can not
load a certain assembly and that assembly is a random generated one (for
XML serialization .....)... I suggest try accessing the webservcie from
different cliente machine and also check the server's IIS log to see
whether the request have actually arrived the IIS server. If the request
did arrrive IIS server , then we can focus on the serverside... You can
try creating some other simple webservcie on the same server to see whether
it also suffer the same problem.
If there're anything else I missed, please feel free to post here.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "Olivier BESSON" <o.******@community.nospam>
Subject: Big trouble accessing a web service with SoapRpcMEthod :
System.Web.Services.Protocols.SoapException
Date: Wed, 21 Dec 2005 12:47:13 +0100
Lines: 150
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
Message-ID: <OL**************@TK2MSFTNGP14.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: 213-203-94-66.reverse.9tel.net 213.203.94.66
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
microsoft.public.dotnet.framework.webservices:1314 0
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Hello,
I have a web service of my own on a server (vb.net). I must declare it with
SoapRpcMethod to be used with JAVA.
This is a simple exemple method of my vb source : ************************************************* *********************** <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ Public Function HelloWorld() As <System.Xml.Serialization.SoapElementAttribute("re turn")> String HelloWorld = "Hello World" End Function
************************************************* ***********************
The web service seems to be ok, i can access all methods and they work
correctly with the local page generated by iis on the web service url.
The problem is when i want to access the web service methods with a vb form
client.
I create a form, add w.s. reference to the project. This is the code behind
generated by dot net :
************************************************* ***********************
<System.Web.Services.Protocols.SoapRpcMethodAttrib ute("http://tempuri.org/Co
rusFortisDocumentService/RPCCorusFortisDocumentService/Hello"& _ "World", RequestNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusFo
rtisDocumentService",ResponseNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusF
ortisDocumentService")>_ Public Function HelloWorld() As <System.Xml.Serialization.SoapElementAttribute("re turn")> String Dim results() As Object = Me.Invoke("HelloWorld", New Object(-1) {}) Return CType(results(0),String) End Function
************************************************* ***********************
All seems to be ok but when i call the method an exception is generated at
the Invoke method :
************************************************* *********************** Une exception non gérée du type 'System.Web.Services.Protocols.SoapException' s'est produite dans system.web.services.dll
Informations supplémentaires :
System.Web.Services.Protocols.SoapException:Le serveur n'a pas pu traiter la demande. ---> System.IO.FileNotFoundException: Le fichier ou l'assembly nomm? dezaqvlu.dll ou l'une de ses >dépendances, est introuvable. Nom du fichier : "dezaqvlu.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapServerType..ctor (Type type, ProtocolsEnum versionsSupported) at System.Web.Services.Protocols.SoapServerProtocol.I nitialize() at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type
type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
=== Pre-bind state information === LOG: Where-ref bind. Location = C:\DOCUME~1\C940DEV4\ASPNET~1.C94\LOCALS~1\Temp\d ezaqvlu.dll LOG: Appbase = file:///C:/Datas/DotNet/dvptroot/FortisDocumentService/src/CorusFortisDocum
entServiceLOG: Initial PrivatePath = bin Calling assembly : (Unknown). ===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/DOCUME~1/C940DEV4/ASPNET~1.C94/LOCALS~1/Temp/dezaqvlu.dll.
--- Fin de la trace de la pile d'exception interne ---
************************************************* ***********************
It is the exception when i try it on my WXP with the w.s. on the same box.
I
have the same when i put the w.s. on my W2K3S + IIS and i call the method
from my client :
************************************************* *********************** "System.IO.FileNotFoundException: Le fichier ou l'assembly nomm? a8wmmtf-.dll ou l'une de ses dépendances, est introuvable. Nom du fichier : "a8wmmtf-.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapClientType..ctor (Type type) at System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor() at
RPCHelloWorld.int.corus.s940web.RPCCorusFortisDocu mentService..ctor() in C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Web References\int.corus.s940web\Reference.vb:line 36 at RPCHelloWorld.Hello.Button1_Click(Object sender, EventArgs e) in
C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Hello.vb:li
ne 118>
=== Pre-bind state information === LOG: Where-ref bind. Location = C:\DOCUME~1\cthasin\LOCALS~1\Temp\a8wmmtf-.dll LOG: Appbase = C:\Datas\DotNet\dvptroot\FortisDocumentService\sr c\RPCHelloWorld\bin\ LOG: Initial PrivatePath = NULL Calling assembly : (Unknown). ===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/DOCUME~1/cthasin/LOCALS~1/Temp/a8wmmtf-.dll.
************************************************* ***********************
I'm in very big trouble cause i really dont know why and i'm searching from
2 weeks.
Could you help me please.
Thanks in, advance and excuse me for my english.
Olivier
Hi Steven,
I see the client calls in IIS :
22:49:03 127.0.0.1 POST
/CorusFortisDocumentService/CorusFortisDocumentService.asmx 200
I've included the source code of my asmx page in this post (it's a very
simple source).
If i use the source like this my form client can access the IsAlive method.
If i uncomment line 4 and delete line 5 to put it in SoapRPC my form client
raise an exception like the one i described under with a rando generated
assembly name.
I also found that if i comment the method called GetDocumentListByIdAndDate,
i can call the IsAlive normally with class declared SoapRPC. It seems that
only when this method is present all the call from my form will finished in
exception. This method return an array of a type generated with
xsdobjectgen.
I really don't know why, do you have an idea ?
Thnaks for your help.
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> a écrit dans le message
de news: 8f**************@TK2MSFTNGXA02.phx.gbl... Hi Olivier,
Welcome to webservice newsgroup. From the description of your problem, the webservice's serverside can not load a certain assembly and that assembly is a random generated one (for XML serialization .....)... I suggest try accessing the webservcie from different cliente machine and also check the server's IIS log to see whether the request have actually arrived the IIS server. If the request did arrrive IIS server , then we can focus on the serverside... You can try creating some other simple webservcie on the same server to see whether it also suffer the same problem.
If there're anything else I missed, please feel free to post here.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
-------------------- From: "Olivier BESSON" <o.******@community.nospam> Subject: Big trouble accessing a web service with SoapRpcMEthod : System.Web.Services.Protocols.SoapException Date: Wed, 21 Dec 2005 12:47:13 +0100 Lines: 150 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-ID: <OL**************@TK2MSFTNGP14.phx.gbl> Newsgroups: microsoft.public.dotnet.framework.webservices NNTP-Posting-Host: 213-203-94-66.reverse.9tel.net 213.203.94.66 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.webservices:1314 0 X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Hello,
I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source :
************************************************ ************************ <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ Public Function HelloWorld() As <System.Xml.Serialization.SoapElementAttribute("re turn")> String HelloWorld = "Hello World" End Function
************************************************ ************************
The web service seems to be ok, i can access all methods and they work correctly with the local page generated by iis on the web service url.
The problem is when i want to access the web service methods with a vb form client. I create a form, add w.s. reference to the project. This is the code behind generated by dot net :
************************************************ ************************
<System.Web.Services.Protocols.SoapRpcMethodAttrib ute("http://tempuri.org/Co rusFortisDocumentService/RPCCorusFortisDocumentService/Hello"& _ "World", RequestNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusFo rtisDocumentService",ResponseNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusF ortisDocumentService")>_ Public Function HelloWorld() As <System.Xml.Serialization.SoapElementAttribute("re turn")> String Dim results() As Object = Me.Invoke("HelloWorld", New Object(-1) {}) Return CType(results(0),String) End Function
************************************************ ************************
All seems to be ok but when i call the method an exception is generated at the Invoke method :
************************************************ ************************ Une exception non gérée du type 'System.Web.Services.Protocols.SoapException' s'est produite dans system.web.services.dll
Informations supplémentaires : System.Web.Services.Protocols.SoapException:Le serveur n'a pas pu traiter la demande. ---> System.IO.FileNotFoundException: Le fichier ou l'assembly nomm? dezaqvlu.dll ou l'une de ses >dépendances, est introuvable. Nom du fichier : "dezaqvlu.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapServerType..ctor (Type type, ProtocolsEnum versionsSupported) at System.Web.Services.Protocols.SoapServerProtocol.I nitialize() at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
=== Pre-bind state information === LOG: Where-ref bind. Location = C:\DOCUME~1\C940DEV4\ASPNET~1.C94\LOCALS~1\Temp\ dezaqvlu.dll LOG: Appbase = file:///C:/Datas/DotNet/dvptroot/FortisDocumentService/src/CorusFortisDocum entServiceLOG: Initial PrivatePath = bin Calling assembly : (Unknown). ===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/DOCUME~1/C940DEV4/ASPNET~1.C94/LOCALS~1/Temp/dezaqvlu.dll.
--- Fin de la trace de la pile d'exception interne ---
************************************************ ************************
It is the exception when i try it on my WXP with the w.s. on the same box. I have the same when i put the w.s. on my W2K3S + IIS and i call the method from my client :
************************************************ ************************ "System.IO.FileNotFoundException: Le fichier ou l'assembly nomm? a8wmmtf-.dll ou l'une de ses dépendances, est introuvable. Nom du fichier : "a8wmmtf-.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapClientType..ctor (Type type) at System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor() at RPCHelloWorld.int.corus.s940web.RPCCorusFortisDocu mentService..ctor() in C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Web References\int.corus.s940web\Reference.vb:line 36 at RPCHelloWorld.Hello.Button1_Click(Object sender, EventArgs e) in C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Hello.vb:li ne 118>
=== Pre-bind state information === LOG: Where-ref bind. Location = C:\DOCUME~1\cthasin\LOCALS~1\Temp\a8wmmtf-.dll LOG: Appbase = C:\Datas\DotNet\dvptroot\FortisDocumentService\s rc\RPCHelloWorld\bin\ LOG: Initial PrivatePath = NULL Calling assembly : (Unknown). ===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/DOCUME~1/cthasin/LOCALS~1/Temp/a8wmmtf-.dll.
************************************************ ************************
I'm in very big trouble cause i really dont know why and i'm searching from 2 weeks.
Could you help me please.
Thanks in, advance and excuse me for my english.
Olivier
Hey Olivier,
I've seen your new thread in the newsgroup on this problem. I've posted my
response there. Please have a look and continue to discuss there...
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "Olivier BESSON" <o.******@community.nospam>
References: <OL**************@TK2MSFTNGP14.phx.gbl>
<8f**************@TK2MSFTNGXA02.phx.gbl>
Subject: Re: Big trouble accessing a web service with SoapRpcMEthod :
System.Web.Services.Protocols.SoapException
Date: Fri, 23 Dec 2005 00:15:45 +0100
Lines: 331
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
Message-ID: <#i**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: 213-203-94-66.reverse.9tel.net 213.203.94.66
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
microsoft.public.dotnet.framework.webservices:1316 2
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Hi Steven,
I see the client calls in IIS :
22:49:03 127.0.0.1 POST
/CorusFortisDocumentService/CorusFortisDocumentService.asmx 200
I've included the source code of my asmx page in this post (it's a very
simple source).
If i use the source like this my form client can access the IsAlive method.
If i uncomment line 4 and delete line 5 to put it in SoapRPC my form client
raise an exception like the one i described under with a rando generated
assembly name.
I also found that if i comment the method called
GetDocumentListByIdAndDate,
i can call the IsAlive normally with class declared SoapRPC. It seems that
only when this method is present all the call from my form will finished in
exception. This method return an array of a type generated with
xsdobjectgen.
I really don't know why, do you have an idea ?
Thnaks for your help.
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> a écrit dans le message
de news: 8f**************@TK2MSFTNGXA02.phx.gbl... Hi Olivier,
Welcome to webservice newsgroup. From the description of your problem, the webservice's serverside can not load a certain assembly and that assembly is a random generated one (for XML serialization .....)... I suggest try accessing the webservcie from different cliente machine and also check the server's IIS log to see whether the request have actually arrived the IIS server. If the request did arrrive IIS server , then we can focus on the serverside... You can try creating some other simple webservcie on the same server to see whether it also suffer the same problem.
If there're anything else I missed, please feel free to post here.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
-------------------- From: "Olivier BESSON" <o.******@community.nospam> Subject: Big trouble accessing a web service with SoapRpcMEthod : System.Web.Services.Protocols.SoapException Date: Wed, 21 Dec 2005 12:47:13 +0100 Lines: 150 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-ID: <OL**************@TK2MSFTNGP14.phx.gbl> Newsgroups: microsoft.public.dotnet.framework.webservices NNTP-Posting-Host: 213-203-94-66.reverse.9tel.net 213.203.94.66 Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.webservices:1314 0 X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Hello,
I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source :
************************************************ ************************ <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ Public Function HelloWorld() As <System.Xml.Serialization.SoapElementAttribute("re turn")> String HelloWorld = "Hello World" End Function************************************************ ************************
The web service seems to be ok, i can access all methods and they work correctly with the local page generated by iis on the web service url.
The problem is when i want to access the web service methods with a vb form client. I create a form, add w.s. reference to the project. This is the code behind generated by dot net :
************************************************ ************************
<System.Web.Services.Protocols.SoapRpcMethodAttrib ute("http://tempuri.org/Co rusFortisDocumentService/RPCCorusFortisDocumentService/Hello"& _ "World", RequestNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusF
o rtisDocumentService",ResponseNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorus
F ortisDocumentService")>_ Public Function HelloWorld() As <System.Xml.Serialization.SoapElementAttribute("re turn")> String Dim results() As Object = Me.Invoke("HelloWorld", New Object(-1) {}) Return CType(results(0),String) End Function************************************************ ************************
All seems to be ok but when i call the method an exception is generated at the Invoke method :
************************************************ ************************ Une exception non gérée du type 'System.Web.Services.Protocols.SoapException' s'est produite dans system.web.services.dll
Informations supplémentaires : System.Web.Services.Protocols.SoapException:Le serveur n'a pas pu traiter la demande. ---> System.IO.FileNotFoundException: Le fichier ou l'assembly nomm? dezaqvlu.dll ou l'une de ses >dépendances, est introuvable. Nom du fichier : "dezaqvlu.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapServerType..ctor (Type type, ProtocolsEnum versionsSupported) at System.Web.Services.Protocols.SoapServerProtocol.I nitialize() at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
=== Pre-bind state information === LOG: Where-ref bind. Location = C:\DOCUME~1\C940DEV4\ASPNET~1.C94\LOCALS~1\Temp\ dezaqvlu.dll LOG: Appbase = file:///C:/Datas/DotNet/dvptroot/FortisDocumentService/src/CorusFortisDocu
m entServiceLOG: Initial PrivatePath = bin Calling assembly : (Unknown). ===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/DOCUME~1/C940DEV4/ASPNET~1.C94/LOCALS~1/Temp/dezaqvlu.dll.
--- Fin de la trace de la pile d'exception interne ---************************************************ ************************
It is the exception when i try it on my WXP with the w.s. on the same box. I have the same when i put the w.s. on my W2K3S + IIS and i call the method from my client :
************************************************ ************************ "System.IO.FileNotFoundException: Le fichier ou l'assembly nomm? a8wmmtf-.dll ou l'une de ses dépendances, est introuvable. Nom du fichier : "a8wmmtf-.dll" at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings) at System.Web.Services.Protocols.SoapClientType..ctor (Type type) at System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor() at RPCHelloWorld.int.corus.s940web.RPCCorusFortisDocu mentService..ctor() in C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Web References\int.corus.s940web\Reference.vb:line 36 at RPCHelloWorld.Hello.Button1_Click(Object sender, EventArgs e) in
C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Hello.vb:li ne 118>
=== Pre-bind state information === LOG: Where-ref bind. Location = C:\DOCUME~1\cthasin\LOCALS~1\Temp\a8wmmtf-.dll LOG: Appbase = C:\Datas\DotNet\dvptroot\FortisDocumentService\s rc\RPCHelloWorld\bin\ LOG: Initial PrivatePath = NULL Calling assembly : (Unknown). ===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/DOCUME~1/cthasin/LOCALS~1/Temp/a8wmmtf-.dll.
************************************************ ************************
I'm in very big trouble cause i really dont know why and i'm searching from 2 weeks.
Could you help me please.
Thanks in, advance and excuse me for my english.
Olivier
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim Lewis |
last post by:
I have read several things that state accessing a Web Service through a
Query String should work. However, when I try to execute
http://localhost/webservice1/service1.asmx/HelloWorld I get the...
|
by: Tom |
last post by:
I'm wiritng a dot.net windows forms appliction that needs to connect to a
webservice to download some files.
I need to show a progress bar during the download, bacause some file can be
very big....
|
by: sameem.samad |
last post by:
Hi,
I have a solution which has 3 layers - GUI, Interface Layer and web
service layer.
GUI layer is referencing Interface Layer and Web service layer also
pointing to interface layer.
GUI...
|
by: Richard Collette |
last post by:
Hi,
I have a service, that runs perfectly when executed outside of the web
service environment. When called as a web service I get the exception
listed below sporadically. A call to the web...
|
by: raghuraman_ace |
last post by:
Hi
i have started a webservice wich has a webmethod with parameters using
literal encoding & encoded encoding . The webservice is compiled
successfully . But i don know how to pass the...
| |
by: Anthony Biondo Jr |
last post by:
I was wondering how to handle an error in a web service. If our web service
encounters a connection error or any other error what is the best practice
for returning an error? Do you return a...
|
by: ayaz.usman |
last post by:
Hi,
I've built a web services proxy server, in C# using wsdl.exe, by
importing wsdl. Howeever,
when I go to : http://localhost/sample.asmx?wsdl, they wsdl there does
not match the wsdl I fed...
|
by: Mo |
last post by:
Hi,
I can not find a decent example showing how to consume a asp.net 2.0
web service using classic ASP. Does any body have an example I could
use?
Thanks
|
by: yoozioo |
last post by:
hello,
This year I'm learning C# at school and now we focus on web services.
I created and published a web service which contains a method that calls another web service written by my class...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |