Solved

Strange problem with a soap request

Posted on 2004-09-07
7
994 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
In this second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

746 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

8 Experts available now in Live!

Get 1:1 Help Now