Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2004

Tip: Looking for answers? Try searching our database.

WebMethod declarations

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
D.Mitchell - 16 Sep 2004 10:39 GMT
I've been having a lot of problems getting X509 decryption to work but that's
another story. I've commented out all the code so it's now just a call with
no encryption, no signature and no username token.

On the server I get the following error when request is processed by WSE 2.

Server did not recognize the value of HTTP Header SOAPAction:
http://myServer/mySite/myWebService/myWebMethodName

I think the problem could be down to the WebMethod declaration. It seems a
lot different to the example X509Signing sample.

MINE:
<WebMethod(Description:="Retrieve the details of the registered user
identified by their id_user.")> _
Public Function getDetails(ByVal userID As Long) As Data.DataSet

EXAMPLE:
<WebMethod(), SoapDocumentMethod(ResponseElementName:="StockQuotes")> _
Public Function StockQuoteRequest( _
<XmlArray(IsNullable:=True), XmlArrayItem("Symbol", IsNullable:=False)> _
ByVal symbols() As String) As <XmlElement("StockQuote")> StockQuote()

Am I doing anything wrong? Where can I find a guide on WebMethod declarations?

Thanks.
D.Mitchell - 16 Sep 2004 11:23 GMT
FIXED IT !!!

Putting the ResponseElementName in the WebMethod fixed it. Now back to my
X509 signature verification problem. :<(

<WebMethod(Description:="Retrieve the details of the registered user
identified by their id_user."), SoapDocumentMethod
(ResponseElementName:="registeredUserDetails")> _
       Public Function getDetails(ByVal id_user As Long) As Data.DataSet

> I've been having a lot of problems getting X509 decryption to work but that's
> another story. I've commented out all the code so it's now just a call with
[quoted text clipped - 22 lines]
>
> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.