Link to home
Start Free TrialLog in
Avatar of jj819430
jj819430

asked on

Strange problem with a soap request

here is the code:
function ConnectBySoap()
{
     SOAP.wireDump = "true";    
try     {    
var service = SOAP.connect("http://softwaretest/DocumentTrackingService/Service1.asmx?WSDL");
var DocumentID ={soapType: "xsd:string",soapValue:"Doc21"};
service.GetTrackingInfo(DocumentID);
        }    
catch(error)     {               }
}

Here is the debugger:
<?xml version="1.0" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><m:GetTrackingInfo xmlns:m="http://softwaretest/DocumentTrackingService" xmlns="http://softwaretest/DocumentTrackingService">Doc21</m:GetTrackingInfo></SOAP-ENV:Body></SOAP-ENV:Envelope>
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>...

the big thing is  xmlns="http://softwaretest/DocumentTrackingService">Doc21</m:GetTrackingInfo>
Doc21 should be (correct me if I am wrong) in side an <string></string> set.
ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jj819430
jj819430

ASKER

yes it does
[WebMethod]
public void GetTrackingInfo(string ID)
Is it just the debugger output you are concerned with, or do you actually run into a problem?
I run into a serious problem. The value isn't passed to the web service.
It is connecting, and the function actually starts which is the strange part. But I need to get the value that is passed.
I haven't done any serious work with Acrobat's SOAP implementation. So far everything I've tried did work... But I have to admit that this was limited to pretty simple "toy" programs.

Have you tried to pass in the string directly?
service.GetTrackingInfo("Doc21");


Yes I have tried direct passing. Same thing happens.
Ok so turns out I am a moron.
I just ended up adding the <inputString xsi:type="xsd:string">Doc21</inputString>
physically to the function call and it works.
I would think, and by all the sample code it seems that the code should do all of that.
Oh well,
Points are yours.