Web service with complex object
I need to create a webservice to insert new records in
HPD:IncidentInterfase_Create form and also details about alarms in a custom
form GC_ASTRO_Alarma. I’ve reviewed the information about this and found a
way to get this. However, third party is expecting a WDSL structure that I
can’t reach. Basically, the details about the alarm must be in a complex
object and this object included in another complex object and this must be
the final element type that will be invoked by the Third Party, but Remedy
only generated the a complex element for the detail form. 

Here some details about my request. Thank you in advance

Principal Form in HPD:IncidentInterfase_Create
Detail Form: GC_ASTRO_Alarma


Expected structure

<xsd:element type="s0:detailedAlarmListType" name="detailedAlarmList"
minOccurs="0" maxOccurs="1"> </xsd:element>
….
<xsd:complexType name="detailedAlarmType">
<xsd:sequence>
<xsd:element type="xsd:string" name="alarmID" minOccurs="0" maxOccurs="1"/>
<xsd:element type=&quot;xsd:string&quot; name=&quot;alertName&quot;
minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/
&lt;xsd:element type=&quot;xsd:string&quot; name=&quot;amo&quot;
minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/>
<xsd:element type="xsd:string" name="alarmedEquipment" minOccurs="0"
maxOccurs="1"/>
<xsd:element type="xsd:string" name="severity" minOccurs="0" maxOccurs="1"/>
<xsd:element type="xsd:string" name="specificProblem" minOccurs="0"
maxOccurs="1"/>
<xsd:element type="xsd:string" name="probableCause" minOccurs="0"
maxOccurs="1"/>
<xsd:element type="xsd:dateTime" name="asociationDate" minOccurs="0"
maxOccurs="1"/>
<xsd:element type="xsd:dateTime" name="alertDate" minOccurs="0"
maxOccurs="1"/>
<xsd:element type="xsd:dateTime" name="clearDate" minOccurs="0"
maxOccurs="1"/></xsd:sequence>
</xsd:complexType>

…
<xsd:complexType name="detailedAlarmListType">
<xsd:sequence>
<xsd:element type="s0:detailedAlarmType" name="detailedAlarm" minOccurs="0"
maxOccurs="unbounded"> </xsd:element>
</xsd:sequence>
</xsd:complexType>



Structure Remedy generates.


<xsd:element name="detaiLedALarmType" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element type="xsd:string" name="alarmID" minOccurs="0"/>
 <xsd:element type="xsd:string" name="aLertName" minOccurs="0"/>
<xsd:element type="xsd:string" name="amo" minOccurs="0"/>
<xsd:element type="xsd:string" name="severitry" minOccurs="0"/>
<xsd:element type="xsd:string" name="specificProblem" minOccurs="0"/>
<xsd:element type="xsd:string" name="probableCause" minOccurs="0"/>
<xsd:element type="xsd:dateTime" name="asociationDate" minOccurs="0"/>
<xsd:element type="xsd:dateTime" name="aLertDate" minOccurs="0"/>
<xsd:element type="xsd:dateTime" name="cLearDate" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<http://ars-action-request-system.1.n7.nabble.com/file/n118707/Developer.jpg> 



--
View this message in context: 
http://ars-action-request-system.1.n7.nabble.com/Web-Service-complex-structure-tp118707.html
Sent from the ARS (Action Request System) mailing list archive at Nabble.com.

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to