Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Strange problem with a soap request

Posted on 2004-09-07
7
Medium Priority
?
1,004 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 2000 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
Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

 
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

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…
Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses

618 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