WebSerice.HTC ----Doesn't support passing a string with "," in par

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Frank Walsh - Keystone Automotive Corp. (Corp._at_discussions.microsoft.com)
Date: 07/09/04


Date: Fri, 9 Jul 2004 14:09:02 -0700

I have attempted to pass a string to my webservice that contains a comma to seperate part numbers the client wishes to search for, however it appears there is no way to do this?

Any idea's anyone, I've tried \, [,] {,} and the &44; code i know that &44 isn't what it is but its something like that, anyway, none of these work.... I also tried another idea the params thing but thats not working either. Here is my code:

function init()
{
  myWebService.useService("XXXXXXXXXXXXXXXXXXXXXXXXX?SDL","CatalogService");
}

function getPartsInfo(Key,FullAccountNo,SearchKey,SearchStyle,MaxRows,MyPrice)
{
 alert(SearchKey);
 myWebService.CatalogService.callService(PartsInfoResult, "GetPartsInfo",Key,FullAccountNo,SearchKey,SearchStyle,MaxRows,MyPrice);
        //var objCall = myWebService.createCallOptions();
        // Define the function for the RPC call.
        //objCall.funcName = "GetPartsInfo";
        // Define the Array
        //objCall.params = new Array();
        //objCall.params.Key = Key;
        //objCall.params.FullAccountNo = "XXXXXXXX"; //FullAccountNo.toString(); //objCall.params.SearchKey = "D371000,D303033"; //SearchKey.toString();
        //objCall.params.SearchStyle = "1";//SearchStyle.toString();
        //objCall.params.MaxRows = "2"; //MaxRows.toString();
        //objCall.params.MyPrice = "N";//MyPrice.toString();
        // Make the RPC call using the call object (objCall).
        //myWebService.CatalogService.callService (PartsInfoResult, objCall);

}

function PartsInfoResult(pResult)
{
       if(pResult.error)
          alert("Unsuccessful call. Error is " + pResult.errorDetail.string);

Frank Walsh - Keystone Automotive Corp.
fwalsh@key-stone.com



Relevant Pages

  • Re: WSE352 Size of the record exceed its limit
    ... The webservice is a WSE service component soap client. ... you're developing an .net webservice which uses WSE ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Error on SOAP Call on only one machine: Could not find default endpoint element that references
    ... "Service Reference" is a proxy class used for consuming WCF service. ... Though WCF client can also consume standard XML webservice, ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Webservice problem (after iisreset)
    ... I was speaking about whatever means you're suing the make the call from the client. ... If it already waits one minute for the failure then it sounds like the timeout is already high enough. ... So use wsdl.exe to generate a .NET proxy to your webservice to see if that style of client has the same problems or not. ... If it does, then it sounds like something on the server, if it does not then it's likley your HTC framework. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: How does the client of a webservice figure out a complex type
    ... attribute with a hint for the client side proxy this is a DataSet. ... >if the wsdl does not contain any reference, ... >> As for how webservice client figure out a complex type, ...
    (microsoft.public.dotnet.framework.webservices)
  • asynchrone Webmethode
    ... Dieser Webservice empfängt vom Client (WinForm-Applikation) ... Diese Anfrage und die zugehörige Datei soll in eine Queue gestellt ... Webservice die Resultat-Binärdatei abholen. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)