soapUI:how to fill <ns:extension> element
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2010 05:32 AM
hi everybody
using soapUI to test the webservices exposed by alfresco on http://localhost:8080/alfresco/cmis I met some difficulties to fill some field of the soap envelope; as example, in the method getProperties exposed by ObjectServicePort I don't know to fill the <ns:extension> element
<xs:element name="getProperties">
<xs:complexType>
<xs:sequence>
<xs:element name="repositoryId" type="xs:string"/>
<xs:element name="objectId" type="xs:string"/>
<xs:element name="filter" type="xs:string"/>
<xs:element name="extension" type="tns:cmisExtensionType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
but I'm not able to understand what kind of type is tns:cmisExtensionType and how to fill the <ns:extension> element
thanks in advance
using soapUI to test the webservices exposed by alfresco on http://localhost:8080/alfresco/cmis I met some difficulties to fill some field of the soap envelope; as example, in the method getProperties exposed by ObjectServicePort I don't know to fill the <ns:extension> element
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://docs.oasis-open.org/ns/cmis/messaging/200908/"> <soapenv:Header/> <soapenv:Body> <ns:getProperties> <ns:repositoryId>I know how to fill this field</ns:repositoryId> <ns:objectId>I know how to fill this field</ns:objectId> <ns:filter>?</ns:filter> <ns:extension> <!–You may enter ANY elements at this point–> </ns:extension> </ns:getProperties> </soapenv:Body></soapenv:Envelope>
having a look at the wisdl definition of <ns:extension> I found this:<xs:element name="getProperties">
<xs:complexType>
<xs:sequence>
<xs:element name="repositoryId" type="xs:string"/>
<xs:element name="objectId" type="xs:string"/>
<xs:element name="filter" type="xs:string"/>
<xs:element name="extension" type="tns:cmisExtensionType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
but I'm not able to understand what kind of type is tns:cmisExtensionType and how to fill the <ns:extension> element
thanks in advance
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2010 10:59 PM
Hi Valerio,
//Axis2 stubs created with XmlBeans binding
I was able to set an XML document in the <extension> this way.
Hope this helps,
Ramesh
//Axis2 stubs created with XmlBeans binding
CreateDocumentDocument1 createDocumentDoc = CreateDocumentDocument1.Factory.newInstance();CreateDocumentDocument1.CreateDocument createDoc = createDocumentDoc.addNewCreateDocument();createDoc.setFolderId(yourFolderId);createDoc.setRepositoryId(yourrepositoryId);CmisExtensionType extType = createDoc.addNewExtension();XmlObject xmlObj = XmlObject.Factory.parse(doc.getDocumentElement()); //doc is org.w3c.dom.DocumentextType.set(xmlObj);
I was able to set an XML document in the <extension> this way.
Hope this helps,
Ramesh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2010 10:43 AM
Thanks RameshBelli for your reply,I really appreciate that, but it is not what I'm looking for.
I'd like to test CMIS Web Services API of Alfresco through soapUI and I'd like to know how to fill the <ns:extension> element in the soap envelope; this is because I'd like to invoke the CMIS Web Services of Alfresco server from an external webservice client.
I'd like to test CMIS Web Services API of Alfresco through soapUI and I'd like to know how to fill the <ns:extension> element in the soap envelope; this is because I'd like to invoke the CMIS Web Services of Alfresco server from an external webservice client.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2010 12:57 PM
I found the answer on http://docs.oasis-open.org/cmis/CMIS/v1.0/cd06/cmis-spec-v1.0.html#_Toc243905616
Hope this will help other people with the same issue
Best regards
Valerio
4.3.3 Extensions
On all input messages and some output messages exists an element called extension. This element is used to provide vendor or repository-specific information between client and server.
All of the types referenced by the schema also support xs:any for vendor or repository-specific information.
Hope this will help other people with the same issue
Best regards
Valerio

