Hi

I've continued to check my WSDL process and more or less managed to get
something from the XMLOut Splitter

First thing, type="xsd:any' or  xsd:anyType  doesnt work for me

BUT making a special Type got me an output


Now I've  something like this:

<schema xmlns="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://www.opengis.net/wps/1.0.0";>
                
<element name="ExecuteProcess_returnerResponse">
<complexType>
<sequence>
<element name="textResult" minOccurs="1" maxOccurs="1" type="xsd:integer" />
<element name="outputResult" maxOccurs="1" minOccurs="1"
type="wps:dummyType">
</element>
</sequence>
</complexType>
</element>      

<complexType name="dummyType">
<sequence>
<any namespace="##any" processContents="skip" minOccurs="1"
maxOccurs="1"></any>
</sequence>
 </complexType>



So the outputResult (that contains XML) points to a dummyType that
should contain either text or XML

I've made a workflow as shown in the PNG, with a XMLSpliter to get
textResult and outputResult.

The outputResult output from the splitter outputs something like:

<outputResult><a><b/></a><outputResult>

I would except for the splitter to return just "<a></b></a>", since its
the content to the outputResult

Is this normal ?!

Thanks

Jorge






When I call the process I've the following output,

On 10/01/2010 04:16 PM, Jorge de Jesus wrote:
> Hi thanks for the reply
> 
> Unfortunally I haven't been able to put it work :(
> 
> I've found some information concerning XML and SOAP in an IBM
> transaction server
> [http://publib.boulder.ibm.com/infocenter/cicsts/v3r2/index.jsp?topic=/com.ibm.cics.ts.webservices.doc/reference/SchemaToHLL/dfhws_anytypesupport.html]
> 
>  that says, that when no type is present then the default value should
> be anyType, so:
> 
>  <xsd:element maxOccurs="1" minOccurs="1" name="outputResult1" />
> 
> should be equal to:
> 
> <xsd:element maxOccurs="1" minOccurs="1" name="outputResult1"
> type="xsd:anyType"/>
> 
> But this could be something implemented in their system
> 
> I've tried to use type="xsd:anyType" and there was no output in the
> XMLOutputspliter :(
> 
> Then I've try something like this:
> 
> <xsd:element maxOccurs="1" minOccurs="1" name="outputResult2">
> 
> <xsd:complexType>
>  <xsd:sequence>
>   <xsd:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
>  </xsd:sequence>
> </xsd:complexType>
> 
> 
> <xsd:element><!-- end of outputResult2 -->
> 
> 
> I am trying to say: "outputResult2" has a complexType child that can be
> anything text or XML.
> 
> But it didn't worked.....
> 
> So I am a bit lost, maybe I doing something wrong in WSDL's schema
> definition !?
> 
> 
> Thanks for the support
> 
> Jorge
> 
> 
> 
> On 10/01/2010 11:25 AM, Stian Soiland-Reyes wrote:
>> On Mon, Sep 27, 2010 at 17:32, Jorge de Jesus <[email protected]> wrote:
>>
>>> <ExecuteProcess_dummy>
>>> <outputResult1><a></a></outputResult1>
>>> <outputResult2><b></b></outputResult2>
>>> </ExecuteProcess_dummy>
>>
>>> <xsd:schema targetNamespace="http://www.opengis.net/wps/1.0.0";>
>>>                        <xsd:element 
>>> name="ExecuteProcess_ExecuteProcess_dummy">
>>>                        <xsd:complexType>
>>>                        <xsd:sequence>
>>>                                <xsd:element maxOccurs="1" minOccurs="1" 
>>> name="outputResult1" />
>>>                                <xsd:element maxOccurs="1" minOccurs="1" 
>>> name="outputResult2" " />
>>
>> You will need to specify the element with type="xsd:any' to allow any
>> XML inside to pass through. A specific type would be even better as it
>> would allow you to connect further XML splitters to delve deeper.
>>
>> As above the schema is saying that there will be an element
>> 'outputResult1' with plain text inside, which does not allow deeper
>> XML elements.
>>
>> If you want to have the option of returning text OR elements, you'll
>> have to use xsd:choice - but Taverna don't have proper support for
>> that at the moment. You could instead wrap the text value in <text>,
>> <value> or equivalent.
>>
>>
> 
> 
> --------------------------------------------------------------------------------
> Plymouth Marine Laboratory
>  
> Registered Office:
> Prospect Place 
> The Hoe
> Plymouth  PL1 3DH
>  
> Website: www.pml.ac.uk
> Registered Charity No. 1091222
> PML is a company limited by guarantee
> registered in England & Wales
> company number 4178503
> 
> --------------------------------------------------------------------------------
> This e-mail, its content and any file attachments are confidential.
> 
> If you have received this e-mail in error please do not copy, disclose it to 
> any third party or use the contents or attachments in any way. Please notify 
> the sender by replying to this e-mail or e-mail [email protected] and then 
> delete the email without making any copies or using it in any other way.
> 
> The content of this message may contain personal views which are not the 
> views of Plymouth Marine Laboratory unless specifically stated.
> 
> You are reminded that e-mail communications are not secure and may contain 
> viruses. Plymouth Marine Laboratory accepts no liability for any loss or 
> damage which may be caused by viruses.
> --------------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> taverna-users mailing list
> [email protected]
> [email protected]
> Web site: http://www.taverna.org.uk
> Mailing lists: http://www.taverna.org.uk/about/contact-us/


--------------------------------------------------------------------------------
Plymouth Marine Laboratory
 
Registered Office:
Prospect Place 
The Hoe
Plymouth  PL1 3DH
 
Website: www.pml.ac.uk
Registered Charity No. 1091222
PML is a company limited by guarantee
registered in England & Wales
company number 4178503

--------------------------------------------------------------------------------
This e-mail, its content and any file attachments are confidential.

If you have received this e-mail in error please do not copy, disclose it to 
any third party or use the contents or attachments in any way. Please notify 
the sender by replying to this e-mail or e-mail [email protected] and then 
delete the email without making any copies or using it in any other way.

The content of this message may contain personal views which are not the views 
of Plymouth Marine Laboratory unless specifically stated.

You are reminded that e-mail communications are not secure and may contain 
viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage 
which may be caused by viruses.
--------------------------------------------------------------------------------

<<attachment: workflow.png>>

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to