Topic
No replies
averarod
averarod
1 Post
ACCEPTED ANSWER

Pinned topic Update WSDL content WSRR via SOAP API

‏2014-03-13T18:15:59Z |

Hi all,

 

I´m trying to update the WSDL document content published previously into WSRR using SOAP API, but I can´t do it.

 

I´m using next query:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sdo="http://www.ibm.com/xmlns/prod/serviceregistry/6/0/ws/sdo" xmlns:com="commonj.sdo" xmlns:sdo1="http://www.ibm.com/xmlns/prod/serviceregistry/6/0/sdo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header/>
   <soapenv:Body>
      <sdo:update>
            <sdo:datagraph xmlns:sdo="commonj.sdo" xmlns:sdo_1="http://www.ibm.com/xmlns/prod/serviceregistry/6/0/sdo">
              <changeSummary logging="1">
                <objectChanges key="faf96efa-6180-409c.9a56.9109ea91995a">
                    <value xsi:type="sdo1:ChangeSummarySetting"
                           featureName="content"
                           dataValue="old_WSDL_content_base64_codified"/>
                  </objectChanges>
                </changeSummary>
               <sdo_1:WSRR>
                  <sdo_1:root>faf96efa-6180-409c.9a56.9109ea91995a</sdo_1:root>
                  <sdo_1:artefacts xsi:type="sdo_1:WSDLDocument"
                                    bsrURI="faf96efa-6180-409c.9a56.9109ea91995a"
                                    name="webservice.wsdl"
                                    namespace="http://namespace/webserviceService"
                                    version="1.0"
                                    description="Update_Document_Description"
                                    owner="owner"
                                    lastModified="1391699125213"
                                    creationTimestamp="1391698785690"
                                    lastModifiedBy="owner"
                                    content="new_WSDL_content_base64_codified"
                                    location="webservice.wsdl">
                     <sdo_1:classificationURIs>http://www.ibm.com/xmlns/prod/serviceregistry/lifecycle/v6r3/LifecycleDefinition#Offline</sdo_1:classificationURIs>
                     <sdo_1:userDefinedProperties name="xmlns_impl" value="http://namespace/webserviceService"/>
                     <sdo_1:userDefinedProperties name="xmlns_xsd" value="http://www.w3.org/2001/XMLSchema"/>
                     <sdo_1:userDefinedProperties name="xmlns_wsdl" value="http://schemas.xmlsoap.org/wsdl/"/>
                     <sdo_1:userDefinedProperties name="xmlns_wsdlsoap" value="http://schemas.xmlsoap.org/wsdl/soap/"/>
                     <sdo_1:userDefinedProperties name="xmlns_intf" value="http://namespace/webserviceService"/>
                     <sdo_1:userDefinedProperties name="xmlns_tns1" value="http://namespace/webserviceService/types"/>
                     <sdo_1:userDefinedProperties name="xmlns_apachesoap" value="http://xml.apache.org/xml-soap"/>
                     <sdo_1:xsdTargetNamespaces>http://namespace/webserviceService/types</sdo_1:xsdTargetNamespaces>
                  </sdo_1:artefacts>
               </sdo_1:WSRR>
            </sdo:datagraph>
      </sdo:update>
   </soapenv:Body>
</soapenv:Envelope>

 

I get a sucess response:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header/>
   <soapenv:Body>
      <p244:updateResponse xmlns:p244="http://www.ibm.com/xmlns/prod/serviceregistry/6/0/ws/sdo"/>
   </soapenv:Body>
</soapenv:Envelope>

 

But If I check into WSRR there is no change into WSDL content, only in the others fields (in the example only the description). In the activity I can see next:

 

"Propiedad con el nombre "description" actualizada del valor "Update4" al valor "Update_Document_Description"" (Property with name "description" updated with value "Update4" to the value "Update_Document_Description").

 

Do You have any idea what´s is wrong in my request or If is there other option to update the WSDL content into WSRR using the API.

 

Thanks in advance