You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Steve Luisser (Jira)" <ju...@ws.apache.org> on 2020/06/26 14:33:00 UTC

[jira] [Created] (JUDDI-1010) save_business does not properly save the accessPoint URLType when using the v2 Publish API

Steve Luisser created JUDDI-1010:
------------------------------------

             Summary: save_business does not properly save the accessPoint URLType when using the v2 Publish API
                 Key: JUDDI-1010
                 URL: https://issues.apache.org/jira/browse/JUDDI-1010
             Project: jUDDI
          Issue Type: Bug
          Components: core
    Affects Versions: 3.3.7
            Reporter: Steve Luisser


The v2 Publish API – save_business does not save the values passed in for the accessPoint URLType in the database, endpoint is always put in the DB.  The response from the v2 call includes the proper values for the accessPoint URLType.  The v3 call saves the accessPoint URLType properly.  Note the value for the authtoken was changed in the example XML.

 

V2 Request

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <soap:Body>

    <save_business generic="2.0" xmlns="urn:uddi-org:api_v2">

      <authInfo>authtoken:ZZZZZZZZZZZ</authInfo>

      <businessEntity businessKey="3ff3c64e-ff80-431f-9e53-39fa69f86a33">

        <name xml:lang="en">Test Provider</name>

        <businessServices>

          <businessService serviceKey="">

            <name>Test Service</name>

            <bindingTemplates>

              <bindingTemplate bindingKey="">

                <accessPoint URLType="http">http://somedomain.com/testservice.svc</accessPoint>

                <tModelInstanceDetails>

                  <tModelInstanceInfo tModelKey="uuid:ee846ebf-ef30-4e73-8558-0eba166d002a" />

                </tModelInstanceDetails>

              </bindingTemplate>

              <bindingTemplate bindingKey="">

                <accessPoint URLType="mailto">mailto:test@domain.com</accessPoint>

                <tModelInstanceDetails>

                  <tModelInstanceInfo tModelKey="uuid:f05b5947-8831-4c6a-9aa3-009ce5e6a707" />

                </tModelInstanceDetails>

              </bindingTemplate>

            </bindingTemplates>

          </businessService>

        </businessServices>

        <identifierBag>

          <keyedReference tModelKey="uuid:578a72bd-8f35-4099-b559-8b4997389bc5" keyName="DUNS" keyValue="12-345-6781" />

        </identifierBag>

      </businessEntity>

    </save_business>

  </soap:Body>

</soap:Envelope>

 

V2 Response

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

  <soap:Body>

    <ns2:businessDetail xmlns:ns2="urn:uddi-org:api_v2" generic="2.0" operator="uddi:juddi.apache.org:node1" truncated="false">

      <ns2:businessEntity businessKey="3ff3c64e-ff80-431f-9e53-39fa69f86a33" operator="uddi:juddi.apache.org:node1">

        <ns2:name xml:lang="en">Test Provider</ns2:name>

        <ns2:businessServices>

          <ns2:businessService serviceKey="uddi:juddi.apache.org:99a4c6f6-c7f9-4536-a810-73c60f605a97">

            <ns2:name>Test Service</ns2:name>

            <ns2:bindingTemplates>

              <ns2:bindingTemplate bindingKey="uddi:juddi.apache.org:2c3da830-751a-4304-8da4-006dd0d0007e">

                <ns2:accessPoint URLType="http">http://somedomain.com/testservice.svc</ns2:accessPoint>

                <ns2:tModelInstanceDetails>

                  <ns2:tModelInstanceInfo tModelKey="uuid:ee846ebf-ef30-4e73-8558-0eba166d002a"/>

                </ns2:tModelInstanceDetails>

              </ns2:bindingTemplate>

              <ns2:bindingTemplate bindingKey="uddi:juddi.apache.org:c859a269-fefb-4f32-9047-e3de41b36900">

                <ns2:accessPoint URLType="mailto">mailto:test@domain.com</ns2:accessPoint>

                <ns2:tModelInstanceDetails>

                  <ns2:tModelInstanceInfo tModelKey="uuid:f05b5947-8831-4c6a-9aa3-009ce5e6a707"/>

                </ns2:tModelInstanceDetails>

              </ns2:bindingTemplate>

            </ns2:bindingTemplates>

          </ns2:businessService>

        </ns2:businessServices>

        <ns2:identifierBag>

          <ns2:keyedReference tModelKey="uuid:578a72bd-8f35-4099-b559-8b4997389bc5" keyName="DUNS" keyValue="12-345-6781"/>

        </ns2:identifierBag>

      </ns2:businessEntity>

    </ns2:businessDetail>

  </soap:Body>

</soap:Envelope>



--
This message was sent by Atlassian Jira
(v8.3.4#803005)