Skip to Content

With Composition Environment 7.1 you have all you need to build Processes, Views and Application Logic to consume an enterprise service. You just connect with your development environment to the Service Registry of the ES Workplace and select the Service you want. But what you do when you have your own Services, which you want to publish to the ES Registry of your own landscape?

The Composition Environment 7.1 delivers a service registry which you can use to publish your Services.

(For Example with the CE 7.1 Sneak Preview, which you can download from SDN download Catalog)

When you start your service registry (

) you see a start page like that:

image

First of all you need to create two Web Service Destinations:

Navigate to Web Service Configuration page – WS Destination – Create Destination

1)

Name: UDDI_DESTINATION

Destination Type: WSDL

*URL: *http://localhost:50100/uddi/wsdl/uddi_v3_service.wsdl*</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>System: Java</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>System Name: CE1</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>Hostname localhost</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>Security: HTTP Authentication UserID/password (BASIC)</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”> </p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>2)</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>Name: CLASSIFICATION_DESTINATION</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>Destination Type: WSDL</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>URL: http://localhost:50100/ClassificationService/CS?wsdl  (http://localhost:50100/ClassificationService/CS?wsdl)</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>System Java</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>System Name: CE1</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>Hostname: localhost</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>Security: HTTP Authentication UserID/password (BASIC)</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”> </p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>When you now start your registry again it should look like that:</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”> </p><p>!https://weblogs.sdn.sap.com/weblogs/images/35211/SRStart2.gif|height=202|alt=image|width=600|src=https://weblogs.sdn.sap.com/weblogs/images/35211/SRStart2.gif|border=0!</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>Because there is no gui developed right now to publish services, we have to use the ESRegistry API.</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>Go to the Web Service Navigator there you will find the Services:</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”> </p><ul><li><div class=”MsoNormal” style=”margin: 0cm 0cm 0pt”>ESRegistryWSSI (ABAP)</div></li><li><div class=”MsoNormal” style=”margin: 0cm 0cm 0pt”>ESRegWSSI (JAVA)</div></li></ul><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”> </p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>Select the ESRegWSSI Service and you see the operation which is provided by this Service.</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>To publish your service you have to execute 3 operation.</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”> </p><ul><li><div class=”MsoNormal” style=”margin: 0cm 0cm 0pt”>publishPhysicalSystem</div></li><li><div class=”MsoNormal” style=”margin: 0cm 0cm 0pt”>publishServiceDefinition</div></li><li><div class=”MsoNormal” style=”margin: 0cm 0cm 0pt”>publishService</div></li></ul><p>To fill the right fields values here some request message Examples:</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>publishPhysicalSystem<br /><?xml version=”1.0″ encoding=”UTF-8″?></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”><SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:xs=”http://www.w3.org/2001/XMLSchema” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>+  <SOAP-ENV:Body></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>    <pns:publishPhysicalSystem xmlns:pns=”urn:ESRegWSSi”></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>      <yq1:physicalSystem xmlns:yq1=”urn:ESRegWSSi” xmlns:pns=”urn:com.sap.esi.esp.esregistry.types”></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>        <pns:aBAPClient>000</pns:aBAPClient></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>        <pns:host>localhost</pns:host></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>        <pns:sLDSystemID>CE1</pns:sLDSystemID></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>        <pns:systemName>CE1</pns:systemName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>        <pns:type>1</pns:type></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>      </yq1:physicalSystem></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>    </pns:publishPhysicalSystem></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>  </SOAP-ENV:Body></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”></SOAP-ENV:Envelope><br />+

publishServiceDefinition</p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”><?xml version=”1.0″ encoding=”UTF-8″?></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”><SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:xs=”http://www.w3.org/2001/XMLSchema” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>+  <SOAP-ENV:Body></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>    <pns:publishServiceDefinitions xmlns:pns=”urn:ESRegWSSi”></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>      <yq1:definitions xmlns:yq1=”urn:ESRegWSSi” xmlns:pns=”urn:com.sap.esi.esp.esregistry.types”></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>        <pns:ServiceDefinition></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          <pns:configState>0</pns:configState></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          <pns:descriptions></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>            <pns:LocalizedString></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:locale>EN</pns:locale></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:message>Test Service 4</pns:message></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>            </pns:LocalizedString></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          </pns:descriptions></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          <pns:documentation>http://test.com</pns:documentation></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          <pns:serviceDefinitionKey></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>            <pns:name></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:localName>TestService4</pns:localName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:namespace>http://local</pns:namespace></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>            </pns:name></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>            <pns:physicalSystemSldID>CE1</pns:physicalSystemSldID></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          </pns:serviceDefinitionKey></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          <pns:technicalName>com.sap.rob.TestService</pns:technicalName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          <pns:wsdlURL>http://testservice.wsdl</pns:wsdlURL></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>        </pns:ServiceDefinition></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>      </yq1:definitions></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>    </pns:publishServiceDefinitions></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>  </SOAP-ENV:Body></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”></SOAP-ENV:Envelope></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”> </p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>publishService<br /><?xml version=”1.0″ encoding=”UTF-8″?></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”><SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:xs=”http://www.w3.org/2001/XMLSchema” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance“></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>  <SOAP-ENV:Body></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>    <pns:publishService xmlns:pns=”urn:ESRegWSSi”></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>      <yq1:service xmlns:yq1=”urn:ESRegWSSi” xmlns:pns=”urn:com.sap.esi.esp.esregistry.types”></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>        <pns:Service></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          <pns:endpoints></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>            <pns:ServiceEndpoint></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:bindingQName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                <pns:localName>TestService4</pns:localName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                <pns:namespace>http://local</pns:namespace></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              </pns:bindingQName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:bindingWSDL>http://local:50100/CalcBeanService/CalcBean?wsdl</pns:bindingWSDL></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:description></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                <pns:locale>EN</pns:locale></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                <pns:message>Endpoint1</pns:message></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              </pns:description></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:endpointName>Endpoint1</pns:endpointName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:endpointTargetAddress>http://myurl/endpoint</pns:endpointTargetAddress></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:protocol>uddi:uddi.org:protocol:serverauthenticatedssl3</pns:protocol></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:serviceDefinitionKey></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                <pns:name></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                  <pns:localName>TestService4</pns:localName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                  <pns:namespace>http://local</pns:namespace></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                </pns:name></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                <pns:physicalSystemSldID>CE1</pns:physicalSystemSldID></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              </pns:serviceDefinitionKey></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:serviceName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                <pns:localName>TestService4</pns:localName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>                <pns:namespace>http://robtest</pns:namespace></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              </pns:serviceName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>              <pns:transport>uddi:uddi.org:transport:ftp</pns:transport></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>            </pns:ServiceEndpoint></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          </pns:endpoints></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          <pns:serviceName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>            <pns:localName>TestService4</pns:localName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>            <pns:namespace>http://local*</pns:namespace></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>          </pns:serviceName></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>        </pns:Service></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>      </yq1:service></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>    </pns:publishService></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>  </SOAP-ENV:Body></p><p style=”margin: 0cm 0cm 0pt” class=”MsoNormal”>+

Now your Service is published and you will find it in your service registry.

!https://weblogs.sdn.sap.com/weblogs/images/35211/SRStart3.gif|height=323|alt=image|width=600|src=https://weblogs.sdn.sap.com/weblogs/images/35211/SRStart3.gif|border=0!</body>

To report this post you need to login first.

7 Comments

You must be Logged on to comment or reply to a post.

  1. Former Member
    The configuration failed with destination type WSIL, I had to set this to WSDL.
    Should it work with WSIL and is this dependent of other settings or is this an error?
    (0) 
  2. Former Member

    I’ve installed the PDK for Visual Studio 2005 and in the Options area I inserted the http:///sr  and then when I select Add SAP Enterprise Service a dispaly comes up and I enter a password for the user.  When I click next a display says “Cannot connect to Service Registry.  Make sure that all the logon parameter are valid”.  If I open a web browser and enter the above url i get to the Service Registry.  Why doesn’t Visual Studio go there?

    (0) 

Leave a Reply