<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Hello,</div>
<div><font face="Calibri, sans-serif" color="#1F497D">(obviously my previous emails on this subject were not on right format, I hope this 3<font size="1"><sup>rd</sup></font> trial will succeed…)</font></div>
<div><font color="#1F497D"> </font></div>
<div>trying to compile a vendor’s subscribe.wsdl with XML::Compile gives following error for which I did not find a reason :</div>
<div> </div>
<div>RESULT :</div>
<div>... < begin of trace deleted because of email size restrictions ></div>
<div>trace: parsing XML from string SCALAR(0x5cb1e30)</div>
<div>IMPORTED PATCH</div>
<div>trace: cache parsed file ws_eventing.wsdl-1282131474-4676</div>
<div>trace: parsing XML from file ws_eventing.wsdl</div>
<div>IMPORTED : ws_eventing.wsdl</div>
<div>trace: cache parsed file ws-eventing.xsd-1282131843-6060</div>
<div>trace: parsing XML from file ws-eventing.xsd</div>
<div>IMPORTED : ws-eventing.xsd</div>
<div>trace: cache parsed file ws-addr.xsd-1282131975-5146</div>
<div>trace: parsing XML from file ws-addr.xsd</div>
<div>IMPORTED : ws-addr.xsd</div>
<div>error: rpc operation {http://notification.sdk.nms.ov.hp.com/nms-sdk-notify}IncidentNotificationMsg requires namespace attribute</div>
<div> at /usr/lib/perl5/site_perl/5.8.8/XML/Compile/SOAP11/Operation.pm line 107</div>
<div>XML::Compile::SOAP11::Operation::_msg_parts("XML::Compile::SOAP11::Operation", XML::Compile::WSDL11=HASH(0x66cbdd0), "IncidentNotificationResponse", "rpc", HASH(0x6873cf0), HASH(0x68918c0)) at /usr/lib/perl5/site_perl/5.8.8/XML/Compile/SOAP11/Operation.pm
line 84</div>
<div>XML::Compile::SOAP11::Operation::_fromWSDL11("XML::Compile::SOAP11::Operation", "name", "IncidentNotification", "kind", "notification-operation", "service", HASH(0x6957220), "serv_port", [13 more]) at /usr/lib/perl5/site_perl/5.8.8/XML/Compile/WSDL11.pm
line 300</div>
<div>XML::Compile::WSDL11::operation(XML::Compile::WSDL11=HASH(0x66cbdd0), "operation", "IncidentNotification", "server", "uc:pw@nnm_server") at /usr/lib/perl5/site_perl/5.8.8/XML/Compile/WSDL11.pm line 322</div>
<div>XML::Compile::WSDL11::compileClient(XML::Compile::WSDL11=HASH(0x66cbdd0), "operation", "IncidentNotification", "server", "uc:pw@nnm_server") at ./test_XML_compile.pl line 37</div>
<div>#</div>
<div> </div>
<div>USED SCRIPT :</div>
<div>#!/usr/bin/perl</div>
<div>use strict; </div>
<div>use warnings;</div>
<div>use XML::Compile::WSDL11; </div>
<div>use XML::Compile::SOAP11;</div>
<div>use XML::Compile::Transport::SOAPHTTP;</div>
<div>use XML::Compile::Schema;</div>
<div>use Log::Report mode => 'DEBUG';</div>
<div>use Data::Dumper;</div>
<div># Tested with XML::Compile 1.16, XML::Compile::SOAP 2.16, XML::Compile::Cache 0.96, Log::Report 0.28</div>
<div>my $server = 'uc:pw@nnm_server'; </div>
<div>my $subscribewsdl = "subscribe.wsdl";</div>
<div>my $notify_ns = '<a href="http://notification.sdk.nms.ov.hp.com/nms-sdk-notify/">http://notification.sdk.nms.ov.hp.com/nms-sdk-notify/</a>';</div>
<div>my %xsi_type = ( 'f:filter' => [ 'f:condition', 'f:constraint', 'f:expression' ] ); </div>
<div>my $subscribeAPI = XML::Compile::WSDL11->new( $subscribewsdl, prefixes => [f => $notify_ns], opts_rw => {xsi_type => \%xsi_type} );</div>
<div># patch below suggested by Mark Overmeer </div>
<div>$subscribeAPI->importDefinitions(<<_PATCH);</div>
<div><schema elementFormDefault="qualified"</div>
<div> targetNamespace="$notify_ns"</div>
<div> xmlns:tns="$notify_ns"</div>
<div> xmlns="http://www.w3.org/2001/XMLSchema"></div>
<div> <element name="incidentNotification" type="tns:incidentNotification"/></div>
<div></schema></div>
<div>_PATCH</div>
<div>print "IMPORTED PATCH\n";</div>
<div>$subscribeAPI->importDefinitions('ws_eventing.wsdl');</div>
<div>print "IMPORTED : ws_eventing.wsdl\n";</div>
<div>$subscribeAPI->importDefinitions('ws-eventing.xsd');</div>
<div>print "IMPORTED : ws-eventing.xsd\n";</div>
<div>$subscribeAPI->importDefinitions('ws-addr.xsd');</div>
<div>print "IMPORTED : ws-addr.xsd\n";</div>
<div>my $receive_incidents = $subscribeAPI->compileClient( operation=>'IncidentNotification', server=>$server );</div>
<div>print "CompileClient succeeded\n";</div>
<div>my ($info, $trace) = $receive_incidents->();</div>
<div> </div>
<div>USED WSDL :</div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><wsdl:definitions targetNamespace="http://notification.sdk.nms.ov.hp.com/nms-sdk-notify" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://notification.sdk.nms.ov.hp.com/nms-sdk-notify"
xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:xs="http://www.w3.org/2001/XMLSchema"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><!— actually imported from file by importDefinitions()</font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <wsdl:import location="http://192.49.164.44/nms-sdk-notify/subscribe?wsdl&resource=ws-eventing.wsdl" namespace="http://schemas.xmlsoap.org/ws/2004/08/eventing" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D">--></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><wsdl:types></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><!-- actually imported from file by importDefinitions()</font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:schema targetNamespace="http://schemas.xmlsoap.org/ws/2004/08/eventing"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:include schemaLocation="http://192.49.164.44/nms-sdk-notify/subscribe?wsdl&resource=ws-eventing.xsd" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:schema></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D">--></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:schema blockDefault="#all" elementFormDefault="unqualified" targetNamespace="http://notification.sdk.nms.ov.hp.com/nms-sdk-notify"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:complexType name="incidentNotification"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:sequence></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="category" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element name="duplicateCount" type="xs:int" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="family" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="firstOccurrenceTime" type="xs:dateTime" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="id" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="lastOccurrenceTime" type="xs:dateTime" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="name" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="nature" type="tns:nature" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="origin" type="tns:origin" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="originOccurrenceTime" type="xs:dateTime" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="priority" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element name="rcaActive" type="xs:boolean" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="formattedMessage" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="lifecycleState" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="severity" type="tns:severity" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="sourceName" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="sourceNodeName" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="sourceNodeLongName" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="sourceNodeUuid" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="sourceUuid" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="uuid" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element name="incidentResent" type="xs:int" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="created" type="xs:dateTime" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="updateTime" type="xs:dateTime" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="previousLifecycleState" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="previousRcaActive" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element maxOccurs="unbounded" minOccurs="0" name="cias" nillable="true" type="tns:cia" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:sequence></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:complexType></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:complexType name="incidentCorrelation"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:sequence></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="name" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="type" type="tns:correlationType" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="parent" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="firstOccurrenceTime" type="xs:dateTime" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element name="correlationResent" type="xs:int" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element maxOccurs="unbounded" minOccurs="0" name="children" nillable="true" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:sequence></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:complexType></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:complexType name="cia"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:sequence></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="name" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="type" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:element minOccurs="0" name="value" type="xs:string" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:sequence></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:complexType></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:simpleType name="severity"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:restriction base="xs:string"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="CRITICAL" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="MAJOR" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="MINOR" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="WARNING" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="NORMAL" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:restriction></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:simpleType></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:simpleType name="nature"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:restriction base="xs:string"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="ROOTCAUSE" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="SECONDARYROOTCAUSE" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="SYMPTOM" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="SERVICEIMPACT" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="STREAMCORRELATION" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="NONE" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="INFO" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:restriction></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:simpleType></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:simpleType name="origin"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:restriction base="xs:string"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="MANAGEMENTSOFTWARE" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="MANUALLYCREATED" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="REMOTELYGENERATED" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="SNMPTRAP" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="SYSLOG" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="OTHER" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:restriction></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:simpleType></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:simpleType name="correlationType"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><xs:restriction base="xs:string"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="APA" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="IMPACT" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="DEDUP" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="RATE" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="PAIRWISE" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <xs:enumeration value="CUSTOM" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:restriction></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </xs:simpleType></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"></xs:schema></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"></wsdl:types></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><wsdl:message name="IncidentNotificationMsg"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <wsdl:part name="arg0" type="tns:incidentNotification" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"></wsdl:message></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><wsdl:portType name="IncidentNotificationSource" wse:EventSource="true"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <wsdl:operation name="IncidentNotification"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <wsdl:output message="tns:IncidentNotificationMsg" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </wsdl:operation></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"></wsdl:portType></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"><wsdl:binding name="IncidentNotificationSourceBinding" type="tns:IncidentNotificationSource"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <wsdl:operation name="IncidentNotification"></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <soap:operation soapAction="" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <wsdl:output></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> <soap:body use="literal" /> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </wsdl:output></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </wsdl:operation></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"></wsdl:binding></font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"> </font></div>
<div><font face="Arial, sans-serif" size="2" color="#1F497D"></wsdl:definitions></font></div>
<div><font color="#1F497D"> </font></div>
<div><font color="#1F497D">An<font color="#000000">y ideas what could be wrong ?</font></font></div>
<div> </div>
<div>BR, </div>
<div> Tapio</div>
<div> </div>
<div> </div>
</font>
</body>
</html>