WSDL Changes for Web Service Enabled Software

Discussion in 'XML' started by cyoull@comcast.net, Mar 23, 2007.

  1. Guest

    I am working with COTS software that is Web service enabled. The
    software allows for jobs to be created as real-time or batch and
    updated to a server which then can be consumed as a Web service. The
    vendor supplies a WSDL to define the different ways programs can be
    accessed with a SOAP request.

    Here is a snippet of the WSDL for a real-time request.

    <!-- Run service given its name and data -->
    <complexType name="SendArchitectServiceRequestType">
    <sequence>
    <!-- Name of the service for architect to load -->
    <element name="serviceName" type="xsd:string" minOccurs="1"
    maxOccurs="1"/>
    <!-- Field definitions describing individual fields in a data row
    -->
    <element name="fieldDefinitions" type="tns:FieldDefinition"
    minOccurs="0" maxOccurs="unbounded"/>
    <!-- Data rows for architect service to process -->
    <element name="dataRows" type="tns:DataRow" minOccurs="0"
    maxOccurs="unbounded"/>
    <!-- Reserved field 1 -->
    <element name="reserved1" type="xsd:string" minOccurs="0"
    maxOccurs="1"/>
    </sequence>
    </complexType>
    <element name="SendArchitectServiceRequest"
    type="tns:SendArchitectServiceRequestType"/>

    Each real-time request requires the field definitions to be included
    in the SOAP request along with the data values. This is a copy of a
    request to a real-time address validation job.


    <soap:Body>
    <SendArchitectServiceRequest xmlns="archserver.xsd.dataread.com">
    <serviceName>ADDRESS_VALIDATION2</serviceName>
    <fieldDefinitions>
    <fieldName>addr1</fieldName>
    <fieldType>STRING</fieldType>
    <fieldLength>50</fieldLength>
    </fieldDefinitions>
    <fieldDefinitions>
    <fieldName>addr2</fieldName>
    <fieldType>STRING</fieldType>
    <fieldLength>50</fieldLength>
    </fieldDefinitions>
    <fieldDefinitions>
    <fieldName>city</fieldName>
    <fieldType>STRING</fieldType>
    <fieldLength>35</fieldLength>
    </fieldDefinitions>
    <fieldDefinitions>
    <fieldName>state</fieldName>
    <fieldType>STRING</fieldType>
    <fieldLength>28</fieldLength>
    </fieldDefinitions>
    <fieldDefinitions>
    <fieldName>zip</fieldName>
    <fieldType>STRING</fieldType>
    <fieldLength>10</fieldLength>
    </fieldDefinitions>
    <dataRows>
    <value>240 union blvd</value>
    <value/>
    <value>denver</value>
    <value>co</value>
    <value>80228</value>
    </dataRows>
    </SendArchitectServiceRequest>
    </soap:Body>
    </soap:Envelope>

    I would like to simplify the request so any developer that consumes
    the Web service only has to point to the WSDL and supply the data
    values. Adding more logic to the WSDL would then add the field
    definitions to the request.

    I am trying to find out if it is possible to define the field
    definitions within a WSDL with values for the field name, field type
    and field length.

    Any assistance would be appreciated.

    Chris
     
    , Mar 23, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gabor
    Replies:
    3
    Views:
    662
    Jacob Yang [MSFT]
    Aug 26, 2003
  2. John
    Replies:
    0
    Views:
    1,150
  3. Bert Leu
    Replies:
    1
    Views:
    484
    Cowboy \(Gregory A. Beamer\)
    Nov 23, 2007
  4. Simon
    Replies:
    0
    Views:
    1,069
    Simon
    Oct 13, 2009
  5. Bert Leu

    Creating a Web Service (Service, not Client) from WSDL

    Bert Leu, Nov 23, 2007, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    296
    Cowboy \(Gregory A. Beamer\)
    Nov 23, 2007
Loading...

Share This Page