login about faq

Need to send a 'complex type' in an XML. I'm writing in VB6 and using the Chilkat active-x I have no problems creating XML code, just don't know how to create and upload a 'complex type' SearchOption Target Value Option end

asked Dec 18 '14 at 12:53

JimGuy's gravatar image

JimGuy
1

edited Dec 18 '14 at 12:53


The only reference I can find to complexTypes regarding XML is in schema definitions, for example: http://www.w3schools.com/schema/el_complextype.asp

Given your example XML code, the <searchnode> element is a "complexType" as it contains other elements. To make the three elements within the <searchnode> into complex types, you would just need to define elements within them. You will need to ask your client for a specification of what they expect to see, something like a DTD or a XSD.

EDIT: the XSD is referenced in the example code, unfortunately I can't view it to determine what the allowed types are. However I see that you have already fixed this, so it's no longer relevant anyway.

Dan

link

answered Dec 22 '14 at 08:21

AgeofStrife's gravatar image

AgeofStrife
9614

edited Dec 22 '14 at 08:36

Jim, I can't answer your question only because I don't know what you're asking. You need to be much more specific, perhaps by providing some sample XML that shows what you want to "send". (And what do you mean by "send"? Is that part of the problem. Is the issue only in forming some XML according to spec, or is the issue also on "sending", whatever that may mean (FTP, HTTP, etc...)?

link

answered Dec 18 '14 at 17:01

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Here is a portion of the xml code I am forming -

    <SearchProductsRequest xmlns="http://apps.tire-hq.com/thq/ws/searchProducts.xsd">
        <searchNode>
            <searchOption>contains</searchOption>
            <searchTarget>productCode</searchTarget>
            <searchValue>748303572</searchValue>
        </searchNode>
    </SearchProductsRequest>

This is the body of xml statement only - i can create (form) the xml code with no problems. However, the layout of my client requires that three fields within the ,searchNode> be a 'complex type' I don't know how to create a 'conplex type', and i don't know how to make it part of this xml statement.

link

answered Dec 19 '14 at 08:33

JimGuy's gravatar image

JimGuy
1

Jim, unfortunately I have no idea what is meant by "complex type"...

link

answered Dec 19 '14 at 08:56

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

I think I may have made this more difficult than necessary. There was a typo within the code, causing the error. I just thought I was forming the XML incorrectly, when in fact I was not. The code is running correctly now. Not certain how to mark this thread as closed.

link

answered Dec 22 '14 at 08:34

JimGuy's gravatar image

JimGuy
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×59

Asked: Dec 18 '14 at 12:53

Seen: 920 times

Last updated: Dec 22 '14 at 08:36

powered by OSQA