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:"Do c21"};
service.GetTrackingInfo(Do cumentID);
}
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-EN V:Body><m: GetTrackin gInfo xmlns:m="http://softwaretest/DocumentTrackingService" xmlns="http://softwaretest/DocumentTrackingService">Doc21</m:GetTrack ingInfo></ SOAP-ENV:B ody></SOAP -ENV:Envel ope>
<?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:GetTrack ingInfo>
Doc21 should be (correct me if I am wrong) in side an <string></string> set.
function ConnectBySoap()
{
SOAP.wireDump = "true";
try {
var service = SOAP.connect("http://softwaretest/DocumentTrackingService/Service1.asmx?WSDL");
var DocumentID ={soapType: "xsd:string",soapValue:"Do
service.GetTrackingInfo(Do
}
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-EN
<?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:GetTrack
Doc21 should be (correct me if I am wrong) in side an <string></string> set.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is it just the debugger output you are concerned with, or do you actually run into a problem?
ASKER
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.
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("D oc21");
Have you tried to pass in the string directly?
service.GetTrackingInfo("D
ASKER
Yes I have tried direct passing. Same thing happens.
ASKER
Ok so turns out I am a moron.
I just ended up adding the <inputString xsi:type="xsd:string">Doc2 1</inputSt ring>
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.
I just ended up adding the <inputString xsi:type="xsd:string">Doc2
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.
ASKER
[WebMethod]
public void GetTrackingInfo(string ID)