Web Images Maps News Orkut Groups Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Dynamic arrays and attributes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Thomas Almqvist  
View profile  
 More options Nov 11 2004, 6:04 pm
Newsgroups: borland.public.delphi.webservices.soap
From: "Thomas Almqvist" <thomas.almqv...@mogul.com>
Date: 11 Nov 2004 05:34:09 -0700
Local: Thurs, Nov 11 2004 6:04 pm
Subject: Dynamic arrays and attributes

Hi all!

This is what I want to achieve in the SOAP request:

  <ns1:Update>
   <ns1:documents>
     <ns1:document ns1:database="mydb">111</ns1:document>  
     <ns1:document ns1:database="mydb">222</ns1:document>  
   </ns1:documents>
  </ns1:Update>

The Delphi(6)(same for D7) wsdl importer generates this:

 document = class(TRemotable)
  private
    Fdatabase: String;
  published
    property database: String read Fdatabase write Fdatabase stored AS_ATTRIBUTE;
  end;

  UpdateDocuments = array of document;

function Update(const documents: UpdateDocuments): UpdResponse; stdcall;

But where to I put the actual text within the <document> tags? Is there another way to implement the class to achieve the SOAP request?

Thanks for all help

Thomas


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Deepak Shenoy (TeamB)  
View profile  
 More options Nov 15 2004, 12:09 pm
Newsgroups: borland.public.delphi.webservices.soap
From: "Deepak Shenoy (TeamB)" <she...@agnisoft.com>
Date: 14 Nov 2004 23:39:05 -0700
Local: Mon, Nov 15 2004 12:09 pm
Subject: Re: Dynamic arrays and attributes

What you need to do is to modify the structure using the DOM - you will
get the request in the BeforeExecute Method, and change it. Now there's
a bug in the D7 implementation that doesnt take the changes, so in
Rio.pas, in the DoBeforeExecute procedure, AFTER the following line:

    { NOTE: We ignore the var WideString passed in... ???? }

add:

    // DEEPAK
    Req := ReqW;

    StrStrm := TStringStream.Create(Req);
    try
      StrStrm.Position := 0;
      Request.CopyFrom( StrStrm, 0 );
    finally
      StrStrm.Free;
    end;

{note: Declare Req:string and StrStrm: TStringStream; as local
variables}

--
Deepak Shenoy (TeamB)
Agni Software
http://www.agnisoft.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google