Implementing SIRI using Microsoft .Net

Skip to first unread message

Trevor Jobling

Jul 7, 2011, 7:59:40 AM7/7/11
to SIRI Developers

Has anybody implemented SIRI using .Net? Or do you know of anyone who

I'm having a horrible time trying to get the MS tool scvutil.exe to
generate code from the SIRI wsdl (
schema/1.3/siri_wsProducer.wsdl). I won't go in to details unless I
pique someone's curiosity, but it looks like one of those cases where
the schema is standards-compliant, but not really Microsoft-compliant,
and I'd love to discuss with anyone who has more experience.

Thanks very much,

Trevor Jobling

Rich Fantozzi

Jul 8, 2011, 10:57:31 AM7/8/11
to SIRI Developers
We can take this off line for more detail, but I just tried it using
VS 2010 and at first it did not work. When I tried adding a new
service reference (which uses scvutil.exe) I received an error like it
was not a compliant service. But then when I tried adding it as a web
service reference (which uses wdsl.exe, which is the .net 2.0 way of
doing it) it worked fine. So then I tried added it as a new service
reference again and it worked with no problem. Not sure why it would
not work the first time.

Anyway let me know, I can always send you the generated service


Trevor Jobling - Dovetail Technologies

Jul 8, 2011, 12:45:50 PM7/8/11
Thanks for getting in touch Rich.

Are you referring to creating a client that uses a SIRI service?  I think maybe you are talking about a client.  I wasn't very clear about it, but I'm trying to create code for the server side, to implement a SIRI service.  So I'd like one of these commands to work:


Both fail, and I think it is because the SIRI schema is not compatible with the WS-I Basic Profile.  This is a limitation of the MS tools... but surely somebody somewhere has implemented SIRI on the MS platform, so I'm wondering how they got around it.

Best regards,

Trevor Jobling

Dovetail Technologies Ltd - We build the software you need

p: +353 (01) 4100774

Dovetail Technologies is registered in Ireland, No. 361512.
Registered Office: Guinness Enterprise Centre, Dublin 8.

Rodrigo Sanz

Apr 19, 2013, 4:56:49 AM4/19/13

I have the same problem as Trevor. I'm trying to develop SIRI service, as server side, using .Net, with the tools available in VS 2010. I was able to create the code for the xsd schema objects using svcutil.exe tool, but unable to generate the code for the server interface with siri_wsProducer.wsdl file. I'm trying with version 1.4

Since such a long time from the last post, has someone find a solution to implent SIRI services in this way?

Thanks and best regards

Christophe Duquesne

Apr 19, 2013, 5:32:52 AM4/19/13
Hi Trevor

The 1.3 version is an RPC-Literal style WSDL which is not well accepted by Microsoft tools (but Ok for Java XMLBeans for example).
The new SIRI 2 takes car of Microsoft tools by providing an additional Document-Literal-Wrapped WSDL (fully compatible with the RPC-Literal).

SIRI 2 is currently under CEN validation, but you can get a preview of the WSDL+XSD here:

I hope this can help.


Christophe Duquesne

Leonardo Acquisti

Jul 11, 2014, 3:42:45 AM7/11/14
Hi Rodrigo,

I'm trying to create the xml code from xsd with svcutil, but it does not successful because siri.xsd it contains a circular group reference.

Group 'SiriSubscriptionRequestGroup' from targetNamespace='' has invalid definition: Circular group reference.

how did you fix this?



Tony Laidig

Jul 11, 2014, 7:43:07 AM7/11/14
Which version of the XSD are you using? There are a handful of 2.0 XSDs out there.

I have not compiled it for .NET, but I have successfully compiled what I believe to be the latest 2.0 XSD  for Java.

Maybe you can try using the XSD in that repo and see if you have better results?

Hope this helps,

Johann Nadalutti

Aug 7, 2014, 7:47:33 AM8/7/14
 I'm trying to  implemented SIRI using .Net for server Side.
 Have you succeeded whith scvutil ?

Ofer Porat

Sep 23, 2014, 4:05:51 AM9/23/14



In SIRI SM service there is a quota definition that brings up "AllowedResourceUsageExceededError" (704) when SM request force response size larger than specific amount.


Does anyone know about SIRI implementations using that capability ?




Ofer Porat

Ofer Porat

Sep 23, 2014, 4:11:27 AM9/23/14



What kind of quota enforcements options are used by your SIRI servers implementations (e.g - Limit number of stop points per request, limit number of request a day, limit size of response, etc).




Ofer Porat

Karin Nooteboom

Feb 26, 2015, 7:02:56 AM2/26/15
I have successfully implemented SIRI 2.0 (siriProducer service and SiriConsumer service ) as WCF web services on IIS with .Net framework 4.  
The WCF web services have a  custom service host and message inspector and xsd validation for the incoming messages.

I used the siri_wsProducer_Document and siri_wsConsumer-Document wsdl's. the svcutil  as a guideline for the message contracts. 
For the xsd's I used xsd.exe and the following:

<generateClasses language='CS' namespace="mynamesapce"'>
<schema>datex2\DATEXIISchema_2_0RC1_2_0 with definitions.xsd</schema>


Op donderdag 7 augustus 2014 13:47:33 UTC+2 schreef Johann Nadalutti:

Johann Nadalutti

Mar 10, 2015, 10:10:00 AM3/10/15
I have saved your example into schema.xml and I tried the command

xsd.exe /c schema.xml

it generates the following  schema.xsd file :

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="xsd" targetNamespace="" xmlns:mstns="" xmlns="" xmlns:xs="" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:element name="xsd" msdata:IsDataSet="true" msdata:Locale="en-US">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="generateClasses">
              <xs:element name="schema" nillable="true" minOccurs="0" maxOccurs="unbounded">
                  <xs:simpleContent msdata:ColumnName="schema_Text" msdata:Ordinal="0">
                    <xs:extension base="xs:string">
            <xs:attribute name="language" form="unqualified" type="xs:string" />
            <xs:attribute name="namespace" form="unqualified" type="xs:string" />

what is my mistake ?

I want to generate classes for siriProducer as WCF service ....

Message has been deleted

Morix Dev

Oct 16, 2015, 11:06:01 AM10/16/15
to SIRI Developers
If it can help anybody, I succeeded in generating C# classes from SIRI 1.3 XSD enumerating all the imported XSD files on the command line, like this:

xsd /n:SIRI acsb\acsb_accessibility-v0.3.xsd acsb\acsb_all-v0.3.xsd acsb\acsb_limitations-v0.2.xsd acsb\acsb_passengerMobility-v0.3.xsd datex2\DATEXIISchema_1_0_1_0.xsd ifopt\ifopt_administration-v0.3.xsd ifopt\ifopt_allStopPlace-v0.3.xsd ifopt\ifopt_checkpoint-v0.3.xsd ifopt\ifopt_countries-v0.2.xsd ifopt\ifopt_equipment-v0.3.xsd ifopt\ifopt_location-v0.3.xsd ifopt\ifopt_modes-v0.2.xsd ifopt\ifopt_modification-v0.3.xsd ifopt\ifopt_path-v0.2.xsd ifopt\ifopt_stop-v0.3.xsd ifopt\ifopt_time-v0.2.xsd ifopt\ifopt_types-v0.2.xsd xml\xml.xsd siri.xsd /classes


Ananthi V.S

May 17, 2017, 8:39:52 AM5/17/17
to SIRI Developers
SIRI 2.0 xsd to Classe sysntax as follows,


/n:SIRI ifopt\ifopt_location-v0.3.xsd ifopt\ifopt_modes-v0.2.xsd ifopt\ifopt_stop-v0.3.xsd acsb\acsb_accessibility-v0.3.xsd ifopt\ifopt_equipment-v0.3.xsd acsb\acsb_accessibility-v0.3.xsd ifopt\ifopt_path-v0.2.xsd ifopt\ifopt_checkpoint-v0.3.xsd datex2\DATEXIISchema_2_0RC1_2_0.xsd xml\xml.xsd siri.xsd /classes


May 17, 2017, 8:43:01 AM5/17/17
to SIRI Developers

On Wednesday, May 17, 2017 at 6:09:52 PM UTC+5:30, Ananthi V.S wrote:
SIRI 2.0 xsd to Class syntax as follows,
Reply all
Reply to author
0 new messages