[
https://issues.apache.org/jira/browse/OFBIZ-3363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793243#action_12793243
]
chris snow commented on OFBIZ-3363:
-----------------------------------
Great work Chatree!
In the webtools for an exported service, there is a link next to the Exportable
lable to show the wsdl.
This link opens the wsdl in a textbox. It would be good if there could be a
link to open the wsdl directly so that the wsdl url can easily be copy and
pasted to other applications. The patch below is not correct, I couldn't
remember how to remove the jsessionid when using <@ofbizUrl> so I have
hardcoded paths.
### Eclipse Workspace Patch 1.0
#P ofbiz.trunk
Index: framework/webtools/webapp/webtools/service/availableservices.ftl
===================================================================
--- framework/webtools/webapp/webtools/service/availableservices.ftl
(revision 892801)
+++ framework/webtools/webapp/webtools/service/availableservices.ftl
(working copy)
@@ -62,7 +62,9 @@
</tr>
<tr>
<td class="label">${uiLabelMap.WebtoolsExportable}</td>
- <td>${selectedServiceMap.export}<#if selectedServiceMap.export =
"True"> (<a
href='<@ofbizUrl>${url}?sel_service_name=${selectedServiceMap.serviceName}&show_wsdl=true</@ofbizUrl>'>${uiLabelMap.WebtoolsShowShowWSDL}</a>)</#if></td>
+ <td>
+ ${selectedServiceMap.export}<#if selectedServiceMap.export =
"True"> (<a
href='<@ofbizUrl>${url}?sel_service_name=${selectedServiceMap.serviceName}&show_wsdl=true</@ofbizUrl>'>${uiLabelMap.WebtoolsShowShowWSDL}</a>)
+ (<a
href='/webtools/control/SOAPService/${selectedServiceMap.serviceName}?wsdl'>${uiLabelMap.WebtoolsOpenWSDL}</a>)</#if></td>
<td class="label">${uiLabelMap.WebtoolsLocation}</td>
<td><a
href='<@ofbizUrl>${url}?constraint=locat...@${selectedservicemap.location}</@ofbizUrl>'>${selectedServiceMap.location}</a></td>
</tr>
> Upgrading Axis V1 to V2 in OFbiz's Web Service and Complex Type Supported
> -------------------------------------------------------------------------
>
> Key: OFBIZ-3363
> URL: https://issues.apache.org/jira/browse/OFBIZ-3363
> Project: OFBiz
> Issue Type: New Feature
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Chatree Srichart
> Assignee: Hans Bakker
> Fix For: SVN trunk
>
> Attachments: axis2.diff, libraries.zip, testSoap.wsdl, types.xsd
>
>
> Upgrading Axis V1 to V2 in OFbiz's Web Service and Complex Type Supported
> I change OFBiz's web service API to Axis2.
> ==Client Engine==
> 1. XMLSerializer to serialize parameters Map object to XML.
> 2. create OMElement from XML stream.
> 3. ServiceClient send SOAP message.
> 4. get result OMElement.
> 5. convert XML content in OMElement to results Map object.
> ==Event Handler==
> 1. create OMElement from InputStream
> 2. get service's name
> 3. XMLSerializer to deserialize parameters XML to Map object
> 4. call specific service
> 5. XMLSerializer to serializer service's results Map object to XML
> 6. create OMElement for service's results
> 7. send OMElement to response
> ==Apply Axis2 in OFBiz==
> 1. apply patch
> 2. unzip libraries.zip and copy all jar files to framework/service/lib
> directory
> ==Test SOAP Service==
> run unit test:
> ./ant run-single-test -Dtest.component=service -Dtest.case=service-soap-tests
> This is a test case that demonstrate service engine can sent both of single
> type and complex type
> ==WSDL==
> The testSoap.wsdl file is web service definition language of testSoap service.
> Every services require map-Map as type of input/output parameter. In map-Map
> consist of key/value pair for service's parameters.
> In wsdl:part of wsdl:message has wsdl:documentation which state service's
> attribute, consist of
> 1. name
> 2. type
> 3. namespace
> 4. java-class
> 5. optional
> ==WSDL Types==
> The types.xsd file is xml schema for complex type
> WSDL Types be generated by code. If any one has a better solution please
> comment this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.