Search: 
Knowledge Base Entry

SOAP Request parameters not received by .Net web service

Date Entered:  04/30/2007

Last Update:  09/27/2007

APPLIES TO

IP*Works!
IP*Works! SSL

SYNOPSIS

I have written a Web Service in VS.Net, but when I use the SOAP component to consume this service the parameters that I added to the SOAP request are not received in the web service.

SOLUTION

This web service that you are trying to call, is it RPC or Document style?

If you're not sure, check the documentation fo the service or if it is a .Net service that you have source code access for, check for the SoapRPCService and SoapRPCMethod attributes of the service and webmethods, or the SoapDocumentService and SoapDocumentMethod attributes of the service and webmethods.

If the service is Document style, make sure that no method namespace prefix is present (a method namespace prefix of "m" is used by default). To do this, use the MethodNamespacePrefix configuration setting in the code. For instance:

SOAP1.Method = "MyTest"
SOAP1.MethodURI = "  http://localhost/webservice/"
SOAP1.ActionURI = "  http://localhost/webservice/MyTest"
SOAP1.URL = "  http://localhost/WebService/test.asmx"
SOAP1.AddParam "x", "something"
SOAP1.Config "MethodNameSpaceprefix="
SOAP1.SendRequest

| About | Privacy Policy | Terms of Use |
© Copyright 2010 /n software inc.