Expand my Community achievements bar.

Issue in XSD while exchanging the doc in events handling ?

Avatar

Former Community Member

Hi Experts,

I am working  on events where I need to pass some information say data types are  String, List of Strings and document from one process when an event  occured  to another process and use that data in second process.

I am creating  one XSD  while creating the event. But here I know how to create the datatype for string and I have done sample application for String data  and it is working  fine and string value is  coming in second process.

Please  let  me know how to create the XSD for List<String> and document.

Would be great to have some links/guide on exchanging  the data  such as List<String> and Document .

Please  help me ... I need to deliver  by  End of tommorow.

Sample XSD (Am using)

<?

xml version="1.0" encoding="UTF-8"?>

<

xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"

elementFormDefault="unqualified" attributeFormDefault="unqualified">

<xs:element name="users">

<xs:complexType>

<xs:sequence>

<xs:element name="assigner" type="xs:string"/>

<xs:element name="assignee" type="xs:string"/>

<xs:element name="processId" type="xs:integer"/>

</xs:sequence>

</xs:complexType>

</xs:element>

</

xs:schema>

Thanks

Praveen

3 Replies

Avatar

Former Community Member

Hi Nith,

Thanks  for your reply. I  tried with all  data types (binary and  anyType) to send doc to another process, but could not able to get the desired doc at  destination  process. After that I thought that we can exchange the xml ( getting data from PDF) to another process and use RenderPDFFormActivity  to get  that pdf  doc rather than tranfering  pdf doc.At XSD, there is no specific data type to transfere the XML. So I am using String datatype in XSD to transfere.

Here I am assigning  XML to String in our soruce process and  then converting String to XML in destination process.

But while converting String to XML, some attributes are automatiaclly adding to the XML file so that renderPDFform is  not recording.

Please help me to resolve this issue.

String Varibale output :

<?xml version="1.0" encoding="UTF-8"?>
<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2010-04-05T14:47:07Z" uuid="225b752b-6101-421d-bc9c-109933687316">
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
        <xfa:data>
            <form1>
                <FSTARGETURL_/>
                <name>afd</name>
                <password>sdfsd</password>
                <email>fsdfsd</email>
                <AWS_PROCESSTYPE/>
                <AWS_SUBMIT_TYPE>XDP</AWS_SUBMIT_TYPE>
            </form1>
        </xfa:data>
        <dd:dataDescription xmlns:dd="http://ns.adobe.com/data-description/" dd:name="PrepopulateinvokeRequestDD">
            <Prepopulate>
                <soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
                    <impl:invoke xmlns:impl="http://adobe.com/idp/services">
                        <impl:name/>
                    </impl:invoke>
                </soap:Body>
            </Prepopulate>
        </dd:dataDescription>
    </xfa:datasets>
<pdf xmlns="http://ns.adobe.com/xdp/pdf/" href="2309738645731531927-41"/>
<xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
        <annots/>
    </xfdf>
</xdp:xdp>

After assigning  string to XML  ...  the XML is  ::

<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/"
xmlns:dd="http://ns.adobe.com/data-description/"
xmlns:impl="
http://adobe.com/idp/services"
xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xfa="
http://www.xfa.org/schema/xfa-data/1.0/"
timeStamp="2010-04-05T14:47:07Z" uuid="225b752b-6101-421d-bc9c-109933687316">
<xfa:datasets>
        <xfa:data>
            <form1>
                <FSTARGETURL_/>
                <name>afd</name>
                <password>sdfsd</password>
                <email>fsdfsd</email>
                <AWS_PROCESSTYPE/>
                <AWS_SUBMIT_TYPE>XDP</AWS_SUBMIT_TYPE>
            </form1>
        </xfa:data>
        <dd:dataDescription dd:name="PrepopulateinvokeRequestDD">
            <Prepopulate>
                <soap:Body>
                    <impl:invoke>
                        <impl:name/>
                    </impl:invoke>
                </soap:Body>
            </Prepopulate>
        </dd:dataDescription>
    </xfa:datasets>
<pdf xmlns="http://ns.adobe.com/xdp/pdf/" href="2309738645731531927-41"/>
<xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
        <annots/>
    </xfdf>
</xdp:xdp>

FYI  :: Red block text is addinmg automatically.

Thansk

Praveen

Avatar

Level 10

Just wanted to confirm one thing: Are you converting the XML into string using serialize() method?

Nith