From: Dan R. <nu...@el...> - 2005-10-30 02:00:57
|
Sorry for the late reply, yeh i added in the place it needed to be. Seems like it got ignored ? If you want the code to it lemme know, as i said ive made a work around for now by creating a php function as a nusoapweb service method to start the class constructor :| On 27/10/2005, at 2:43 PM, Scott Nichol wrote: > ASPX function ASP.Feeds_KeyService.Feeds_KeyService_getkey is sending > the SOAP message as if the SOAP method is named > "Feeds_KeyService_getkey". Do you have the RequestElementName and > ResponseElementName attribute properties assigned for that method? > > Scott Nichol > > Do not send e-mail directly to this e-mail address, > because it is filtered to accept only mail from > specific mail lists. > ----- Original Message ----- > From: "Dan Rossi" <nu...@el...> > To: "Scott Nichol" <sni...@sc...> > Cc: <nus...@li...> > Sent: Wednesday, October 26, 2005 11:56 PM > Subject: Re: [Nusoap-general] anyone interface asp, asp.net with nusoap > > >> Sorry to be a pain, but ive done what you said and i get this >> >> System.Web.Services.Protocols.SoapException: method >> 'Feeds_KeyService_getkey' not defined in service at >> System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(Soap >> Cl >> ientMessage message, WebResponse response, Stream responseStream, >> Boolean asyncCall) at >> System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String >> methodName, Object[] parameters) at >> ASP.Feeds_KeyService.Feeds_KeyService_getkey(FeedData data) in >> c:\inetpub\wwwroot\feedclient.aspx:line 118 at >> ASP.feedclient_aspx.Page_Load(Object sender, EventArgs e) in >> c:\inetpub\wwwroot\feedclient.aspx:line 52 >> >> ?? >> >> On 22/10/2005, at 1:46 AM, Scott Nichol wrote: >> >>> The .NET wsdl tool generates some bogus code for methods with a >>> period >>> in the name. However, it is possible to fix the code. For example, >>> I >>> ran the tool against the WSDL for a sample I have, >>> http://www.scottnichol.com/samples/hellowsdl2.php?wsdl. It generated >>> the following bad code for the method hellowsdl2.hello: >>> >>> '<remarks/> >>> <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn: >>> hellowsdl2#hellowsdl2_hello", _ >>> RequestNamespace:="urn:hellowsdl2", >>> ResponseNamespace:="urn:hellowsdl2")> _ >>> Public Overloads Function hellowsdl2hello(ByVal person As Person) As >>> _ >>> <System.Xml.Serialization.SoapElementAttribute("return")> >>> SweepstakesGreeting >>> Dim results() As Object = Me.Invoke("hellowsdl2hello", New >>> Object() {person}) >>> Return CType(results(0), SweepstakesGreeting) >>> End Function >>> >>> '<remarks/> >>> Public Function Beginhellowsdl2hello(ByVal person As Person, ByVal >>> callback As System.AsyncCallback, _ >>> ByVal asyncState As Object) As System.IAsyncResult >>> Return Me.BeginInvoke("hellowsdl2hello", New Object() {person}, >>> callback, asyncState) >>> End Function >>> >>> '<remarks/> >>> Public Function Endhellowsdl2hello(ByVal asyncResult As >>> System.IAsyncResult) As SweepstakesGreeting >>> Dim results() As Object = Me.EndInvoke(asyncResult) >>> Return CType(results(0), SweepstakesGreeting) >>> End Function >>> >>> I changed it to the following, which works. The changes are changing >>> the method name, changing the method name in the Invoke call, and >>> adding the RequestElementName and ResponseElementName properties for >>> the SoapRpcMethodAttribute. >>> >>> '<remarks/> >>> <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn: >>> hellowsdl2#hellowsdl2_hello", _ >>> >>> RequestElementName:="hellowsdl2.hello",ResponseElementname: >>> ="hellowsdl2.helloResponse", _ >>> RequestNamespace:="urn:hellowsdl2", >>> ResponseNamespace:="urn:hellowsdl2")> _ >>> Public Overloads Function hellowsdl2_hello(ByVal person As Person) >>> As _ >>> <System.Xml.Serialization.SoapElementAttribute("return")> >>> SweepstakesGreeting >>> Dim results() As Object = Me.Invoke("hellowsdl2_hello", New >>> Object() {person}) >>> Return CType(results(0), SweepstakesGreeting) >>> End Function >>> >>> '<remarks/> >>> Public Function Beginhellowsdl2_hello(ByVal person As Person, ByVal >>> callback As System.AsyncCallback, _ >>> ByVal asyncState As Object) As System.IAsyncResult >>> Return Me.BeginInvoke("hellowsdl2_hello", New Object() {person}, >>> callback, asyncState) >>> End Function >>> >>> '<remarks/> >>> Public Function Endhellowsdl2_hello(ByVal asyncResult As >>> System.IAsyncResult) As SweepstakesGreeting >>> Dim results() As Object = Me.EndInvoke(asyncResult) >>> Return CType(results(0), SweepstakesGreeting) >>> End Function >>> >>> Scott Nichol >>> >>> Do not send e-mail directly to this e-mail address, >>> because it is filtered to accept only mail from >>> specific mail lists. >>> ----- Original Message ----- >>> From: "Dan Rossi" <nu...@el...> >>> To: "Scott Nichol" <sni...@sc...> >>> Cc: <nus...@li...> >>> Sent: Thursday, October 20, 2005 10:56 PM >>> Subject: Re: [Nusoap-general] anyone interface asp, asp.net with >>> nusoap >>> >>> >>>> >>>> On 18/10/2005, at 12:20 AM, Scott Nichol wrote: >>>> >>>>> For .NET, you point the wsdl tool at the WSDL URL, and the tool >>>>> generates the client proxy code for you. For old-fashioned ASP, >>>>> you >>>>> get the free MS SOAP Toolkit, which contains some COM objects to >>>>> make >>>>> your life pretty easy. The recent post from Frank Perugini >>>>> includes >>>>> some VB code that uses the toolkit. For VBScript in ASP, instead >>>>> of >>>>> using "New" to create an instance, use "Server.CreateObject(...)". >>>>> >>>>> >>>> >>>> Hi thanks for the tip, ive installed ASP.NET web matrix is >>>> generated a >>>> C# class with the methods and data i need, however i dont know how >>>> to >>>> run it. As in i have a class method on the nusoap service so i run >>>> it >>>> like ClassName.method , the generator combined them together and im >>>> getting all kinds of errors. Ive also have to try and make it >>>> inline, >>>> however nice it would be to code behind the source , its hard to >>>> deploy >>>> to customers we need a single file :| As for the xmltoolkit, i >>>> suppose >>>> the ASP only clients require xml toolkit on the server ? Does it >>>> come >>>> standard with 2K server ? >>>> >>>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Power Architecture Resource Center: Free content, downloads, >>> discussions, >>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>> _______________________________________________ >>> Nusoap-general mailing list >>> Nus...@li... >>> https://lists.sourceforge.net/lists/listinfo/nusoap-general >>> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Nusoap-general mailing list > Nus...@li... > https://lists.sourceforge.net/lists/listinfo/nusoap-general > |