Solved

Strange problem with a soap request

Posted on 2004-09-07
7
995 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:jj819430
  • 4
  • 3
7 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 12005444
You are right, there is something strange with your debugger output. I expect to see this:
<inputString xsi:type="xsd:string">Doc21</inputString>

Are you sure the GetTrackingInfo method takes a string as parameter?

0
 
LVL 7

Author Comment

by:jj819430
ID: 12011556
yes it does
[WebMethod]
public void GetTrackingInfo(string ID)
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12012204
Is it just the debugger output you are concerned with, or do you actually run into a problem?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 7

Author Comment

by:jj819430
ID: 12012550
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.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12015008
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");


0
 
LVL 7

Author Comment

by:jj819430
ID: 12099721
Yes I have tried direct passing. Same thing happens.
0
 
LVL 7

Author Comment

by:jj819430
ID: 12100224
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Replace text in pdf file using itextshape in c# 7 492
PDF writer for SBS 2008 11 84
*Best* PDF to Word Convertor 4 112
How to securely submit fillable PDF forms 7 54
Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe A recent question here at Experts Exchange piqued my interest, so I decided to provide a thorough solution and publ…
In a previous article published here at Experts Exchange, Signature Image with Transparent Background (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_12380-Signature-Image-with-Transparent-Background.html), I explained how to cre…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now