Getting XML by Webservices

kuehn
kuehn New Altair Community Member
edited November 5 in Community Q&A
Hello World !

I am going familar with this wonderful tool, but I tried to retrieve data by a webservice using the "Web:Enrich Data by Webservice".

I can't understand why there is an manadantory input, because all parameters are needed are defined in the operator.
The operators description  was not useful to find a solution.
I want only read the webservice and work with the retrieved XML Data. In a second step i will use this Webservice with different paramters,
but I don't know why the manantory example set may help.

Have  a nice day and thx for reply
Uwe

Answers

  • JEdward
    JEdward New Altair Community Member
    Hi Uwe,

    You can use the Generate Examples operator to generate a single example to get around this. 

    Best,
    JEdward.
  • kuehn
    kuehn New Altair Community Member
    thank you JEdward.

    But why this is mandantory ??

    I did generate a Random Set, but the repsonse in RapidMiner that is an xml file, i will store as a file and work with this in another process.
    Instead my opinion the xml result is the response , the saved xml contains the generated example set.

    Uwe
  • kuehn
    kuehn New Altair Community Member
    Hi there

    Is there is nobody who can answer my question? There is not more response ....

    btw : the Generate Example Set means Generate Attributes ? I don't have a Generate Example Set Operator !

    the webservice won't work, but the parameters are right, I think.

    Then I did another way and got the xml via OpenFile. But the Operator WriteFile and ReadXML don't produce results, with and without setted meta data information. Additionally the file what was saved, may have another coding, because the brackets are html-entities. Where I can change the coding?

    How I get the Xml - represented Tree into an or many ExampleSet or whatever? I dont get any result.

    the structure looks like this :
    <string>
     <RESULTS>114</RESULTS>
     <Records>
       <Record ordinal="1">
         <Family number="20038393">
           <Title><![CDATA[<TI_EN>Improvements in or relating to clutches for motor cycles  </TI_EN>;]]></Title>
           <Priorities></Priorities>
           <FamilyInformation>
             <FamilyMember>
               <PN>GB525347 A</PN>
               <PD>19400827</PD>
               <AP>GB19390005426</AP>
               <APD>19390217</APD>
             </FamilyMember>
           </FamilyInformation>
           <PatentApplicants>
             <PatentApplicant>AUDI NSU AUTO UNION AG</PatentApplicant>
           </PatentApplicants>
           <PatentApplicantsNS>
             <PatentApplicantNS>AUTO UNION AKTIENGESELLSCHAFT</PatentApplicantNS>
           </PatentApplicantsNS>
           <Inventors>
           </Inventors>
           <InventorsNS>
           </InventorsNS>
           <DesignatedStates>
           </DesignatedStates>
    ... etc.

    Greetz
    Uwe