Implementing SIRI using Microsoft .Net

924 views
Skip to first unread message

Trevor Jobling

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

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

I'm having a horrible time trying to get the MS tool scvutil.exe to
generate code from the SIRI wsdl (http://www.kizoom.com/standards/siri/
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
www.dovetail.ie

Rich Fantozzi

unread,
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
reference.

-rich

Trevor Jobling - Dovetail Technologies

unread,
Jul 8, 2011, 12:45:50 PM7/8/11
to siri-de...@googlegroups.com
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:


or 


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
e: trevor....@dovetail.ie
w: www.dovetail.ie

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

Rodrigo Sanz

unread,
Apr 19, 2013, 4:56:49 AM4/19/13
to siri-de...@googlegroups.com
Hello,

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

unread,
Apr 19, 2013, 5:32:52 AM4/19/13
to siri-de...@googlegroups.com
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: www.dropbox.com/s/8w3dyypowhej8vy/Siri_XML-2.0g.zip


I hope this can help.

Cordialement

Christophe Duquesne

Leonardo Acquisti

unread,
Jul 11, 2014, 3:42:45 AM7/11/14
to siri-de...@googlegroups.com
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='http://www.siri.org.uk/siri' has invalid definition: Circular group reference.

how did you fix this?

Thanks
Leonardo

 

Tony Laidig

unread,
Jul 11, 2014, 7:43:07 AM7/11/14
to siri-de...@googlegroups.com
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.
https://github.com/laidig/siri-20-java

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

Hope this helps,
Tony

Johann Nadalutti

unread,
Aug 7, 2014, 7:47:33 AM8/7/14
to siri-de...@googlegroups.com
Hi,
 I'm trying to  implemented SIRI using .Net for server Side.
 Have you succeeded whith scvutil ?
Thanks
Johann. 

Ofer Porat

unread,
Sep 23, 2014, 4:05:51 AM9/23/14
to siri-de...@googlegroups.com

Hello

 

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 ?

 

Regards

 

Ofer Porat

Ofer Porat

unread,
Sep 23, 2014, 4:11:27 AM9/23/14
to siri-de...@googlegroups.com

Hello

 

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).

 

Regards

 

Ofer Porat

Karin Nooteboom

unread,
Feb 26, 2015, 7:02:56 AM2/26/15
to siri-de...@googlegroups.com
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>acsb\acsb_accessibility-v0.3.xsd</schema>
<schema>acsb\acsb_all-v0.3.xsd</schema>
<schema>acsb\acsb_limitations-v0.2.xsd</schema>
<schema>acsb\acsb_passengerMobility-v0.3.xsd</schema>
<schema>datex2\DATEXIISchema_2_0RC1_2_0 with definitions.xsd</schema>
<schema>ifopt\ifopt_administration-v0.3.xsd</schema>
<schema>ifopt\ifopt_allStopPlace-v0.3.xsd</schema>
<schema>ifopt\ifopt_checkpoint-v0.3.xsd</schema>
<schema>ifopt\ifopt_countries-v0.2.xsd</schema>
<schema>ifopt\ifopt_equipment-v0.3.xsd</schema>
<schema>ifopt\ifopt_location-v0.3.xsd</schema>
<schema>ifopt\ifopt_modes-v0.2.xsd</schema>
<schema>ifopt\ifopt_modification-v0.3.xsd</schema>
<schema>ifopt\ifopt_path-v0.2.xsd</schema>
<schema>ifopt\ifopt_stop-v0.3.xsd</schema>
<schema>ifopt\ifopt_time-v0.2.xsd</schema>
<schema>ifopt\ifopt_types-v0.2.xsd</schema>
<schema>xml\xml.xsd</schema>
<schema>.\siri.xsd</schema>
</generateClasses>
</xsd>

Cheers
Karin

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

Johann Nadalutti

unread,
Mar 10, 2015, 10:10:00 AM3/10/15
to siri-de...@googlegroups.com
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="http://microsoft.com/dotnet/tools/xsd/" xmlns:mstns="http://microsoft.com/dotnet/tools/xsd/" xmlns="http://microsoft.com/dotnet/tools/xsd/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:element name="xsd" msdata:IsDataSet="true" msdata:Locale="en-US">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="generateClasses">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="schema" nillable="true" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:simpleContent msdata:ColumnName="schema_Text" msdata:Ordinal="0">
                    <xs:extension base="xs:string">
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="language" form="unqualified" type="xs:string" />
            <xs:attribute name="namespace" form="unqualified" type="xs:string" />
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>


what is my mistake ?

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


Thanks.
Message has been deleted

Morix Dev

unread,
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


/Morix

Ananthi V.S

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

xsd

/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

Ananth

unread,
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
Forward
0 new messages