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("return")> 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.SoapRpcMethodAttribute("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("return")> 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(AssemblyName assemblyRef,
> Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
> at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
> assemblySecurity)
> at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
> at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
> at System.Xml.Serialization.Compiler.Compile()
> at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
> at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[]
> mappings)
> at System.Web.Services.Protocols.SoapServerType..ctor(Type type,
> ProtocolsEnum versionsSupported)
> at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
> at System.Web.Services.Protocols.ServerProtocolFactory.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/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(AssemblyName assemblyRef,
> Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
> at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
> assemblySecurity)
> at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
> at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
> at System.Xml.Serialization.Compiler.Compile()
> at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
> at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[]
> mappings)
> at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
> at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
> at RPCHelloWorld.int.corus.s940web.RPCCorusFortisDocumentService..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\src\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
Steven Cheng[MSFT] - 22 Dec 2005 02:57 GMT
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

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "Olivier BESSON" <o.besson@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: <OLd8uQiBGHA.3984@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!TK2MSFTNGP14.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices:13140
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("return")> 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.SoapRpcMethodAttribute("http://tempuri.org/Co
rusFortisDocumentService/RPCCorusFortisDocumentService/Hello"&
> _
>"World",
[quoted text clipped - 7 lines]
> 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
[quoted text clipped - 41 lines]
>
> --- 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?
[quoted text clipped - 16 lines]
> at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
> at
RPCHelloWorld.int.corus.s940web.RPCCorusFortisDocumentService..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>
>
[quoted text clipped - 13 lines]
>
>************************************************************************
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
Olivier BESSON - 22 Dec 2005 23:15 GMT
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.
> Hi Olivier,
>
[quoted text clipped - 200 lines]
>
> Olivier
Steven Cheng[MSFT] - 28 Dec 2005 05:48 GMT
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

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "Olivier BESSON" <o.besson@community.nospam>
References: <OLd8uQiBGHA.3984@TK2MSFTNGP14.phx.gbl>
<8ftYAOqBGHA.1240@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: <#itLL20BGHA.1180@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!TK2MSFTNGP09.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices:13162
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]" <stcheng@online.microsoft.com> a écrit dans le message
de news: 8ftYAOqBGHA.1240@TK2MSFTNGXA02.phx.gbl...
> Hi Olivier,
>
[quoted text clipped - 66 lines]
>
>>************************************************************************
<System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/Co
> rusFortisDocumentService/RPCCorusFortisDocumentService/Hello"&
>> _
[quoted text clipped - 98 lines]
>> 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>
[quoted text clipped - 24 lines]
>
> Olivier