none
Publish the Rest WCF Service RRS feed

  • Question

  • I created the schema


    <?xml version="1.0" encoding="utf-16" ?> 
    <xs:schema xmlns="http://Services.ELIMS_REST_CGA_Schema" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns:ns0="https://Services.PropertySchema" targetNamespace="http://Services.ELIMS_REST_CGA_Schema" xmlns:xs="http://www.w3.org/2001/XMLSchema">I promoted the specimenid of the schema 

    I promoted the specimenId and created the property schema with all the three elements because the webservices is going to called by the parameters

    <?xml version="1.0" encoding="utf-16" ?> - <xs:schema xmlns="http://Services.PropertySchema" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="https://Services.PropertySchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:annotation> - <xs:appinfo> 

    <b:schemaInfo schema_type="property" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" />   </xs:appinfo> 

    </xs:annotation> - <xs:element name="STARLIMSuser" type="xs:string"> - <xs:annotation>

    - <xs:appinfo> 

    <b:fieldInfo propertyGuid="13d19f58-58aa-4eb1-a48d-26ae4f1681ee" propSchFieldBase="MessageContextPropertyBase" />  

    </xs:appinfo>  </xs:annotation>   </xs:element> - <xs:element name="STARLIMSpass" type="xs:string"> - <xs:annotation> - <xs:appinfo>  <b:fieldInfo propertyGuid="01488e51-74e2-44f2-b465-6f0361b3afed" propSchFieldBase="MessageContextPropertyBase" isSensitive="true" />   </xs:appinfo>  </xs:annotation>

      </xs:element>

    - <xs:element name="specimenid" type="xs:string"> - <xs:annotation>

    - <xs:appinfo> 

    <b:fieldInfo propertyGuid="2cecf7d3-d939-424d-8efe-edca78c6152f" propSchFieldBase="MessageContextPropertyBase" />

      </xs:appinfo>  </xs:annotation>   </xs:element>  </xs:schema>

    After deploying these two in the application, I published the Document schema ELIMS_REST_CGA_Schema as WCF Service.With the Operation Name  ELIMSServices with Request being the ELIMS_REST_CGA_Schema and Response as the Microsoft.XLANGs.BaseTypes.Any

    Now trying to create the Receive Location using WebHttp adapter giving the HTTP Method

    <BtsHttpUrlMapping>

    <Operation Name="ELIMSServices" Method="GET"

    Url="/ELIMSServices?STARLIMSuser={STARLIMSuser}&amp;STARLIMSpass={STARLIMSpass}&amp;specimenid={specimenid}" />

    </BtsHttpUrlMapping>

    I am not sure if I have done till this correctly?? Is the above URL correct way of giving in the HTTP method

    Now my question is in the variable mapping

    Do I give the Property Namespace as the namespace of property schema

    https://Services.PropertySchema

    or theschema which is being exposed

    http://Services.ELIMS_REST_CGA_Schema

    Please do bare me as I am really new to this and not sure how to do. Any help is greatly appreciated


    • Edited by vdha Thursday, October 1, 2015 8:02 PM
    Thursday, October 1, 2015 8:01 PM

Answers

  • property schema

    Regards &lt;br/&gt; When you see answers and helpful posts,&lt;br/&gt; please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    • Marked as answer by vdha Monday, October 5, 2015 2:04 PM
    Thursday, October 1, 2015 8:16 PM
    Answerer
  • Property schema namespace and see the sample screenshot below.


    JB

    • Marked as answer by vdha Monday, October 5, 2015 2:04 PM
    Thursday, October 1, 2015 8:53 PM
  • BtsHttpUrlMapping is all good with the URL.

    Since you are exposing the document schema you need to specify the namespace of document schema in the wizard.


    JB

    • Marked as answer by vdha Monday, October 5, 2015 2:04 PM
    Friday, October 2, 2015 2:07 AM

All replies

  • property schema

    Regards &lt;br/&gt; When you see answers and helpful posts,&lt;br/&gt; please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    • Marked as answer by vdha Monday, October 5, 2015 2:04 PM
    Thursday, October 1, 2015 8:16 PM
    Answerer
  • Property schema namespace and see the sample screenshot below.


    JB

    • Marked as answer by vdha Monday, October 5, 2015 2:04 PM
    Thursday, October 1, 2015 8:53 PM
  • Can anybody tell me if am I giving HTTP method correct,

    <BtsHttpUrlMapping>

    <Operation Name="ELIMSServices" Method="GET" Url="/ELIMSServices?STARLIMSuser={STARLIMSuser}&amp;STARLIMSpass={STARLIMSpass}&amp;specimenid={specimenid}" />

    </BtsHttpUrlMapping>

    Also here please do I need to give the Property schema namespace or the Document Schema namespace??

    • Edited by vdha Friday, October 2, 2015 1:37 AM
    Friday, October 2, 2015 1:27 AM
  • BtsHttpUrlMapping is all good with the URL.

    Since you are exposing the document schema you need to specify the namespace of document schema in the wizard.


    JB

    • Marked as answer by vdha Monday, October 5, 2015 2:04 PM
    Friday, October 2, 2015 2:07 AM
  • JB, So I am trying to create the REST service. am I following the steps right.

    Because here They just just created using the service endpoints without giving the schemas.



    • Edited by vdha Friday, October 2, 2015 4:46 AM
    Friday, October 2, 2015 4:02 AM