Difference between revisions of "Top-down development method"

From GreenVulcano Wiki
Jump to: navigation, search
(Top-down development method)
(Top-down development method)
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
== Top-down development method ==
 +
Wizard Top-down development method guides user step by step with the [http://en.wikipedia.org/wiki/Web_service Web Service] creation. Prerequisites to use this wizard is the WSDL file. If you don't know how build a WSDL file visit this  [http://www.w3.org/TR/wsdl link]. Right click on ''GVServices-->Services'' label and select ''Wizard Top-Down Web Service...''. New WebService Wizard window will be shown.
  
== Top-down development method ==
+
In the first Wizard page user selects the WSDL file. The Wizard on the second page proposes the operations that are described in the WSDL file. User selects one or more operations. In the next page user sets the following parameters:
Wizard Top-down development method help user to create a Web Service, prerequisites WSDL file already exist.  Right click on GVServices-->Services label and select "Wizard Top-Down Web Service...".New WebService Wizard window will be open.In the first Wizard window user select the WSDL file.The Wizard on the second page proposed the operations that are described in the WSDL file. User select one or more operations. In the last Page user choose the following parameter:
+
*Create Services, if this radio button will be checked the Service parameters are enabled
*Create Services, if this radio button will be checked the Service parameter are disabled
+
*Use existing services, if this radio button will be checked the Service parameters are disabled
*Use existing services, if this radio button will be checked the Service parameter are enabled
 
 
*[[System]]
 
*[[System]]
*[[Partecipant]]
+
*[[Participant]]
 
*[[Channel]]
 
*[[Channel]]
 
*Operation name, the operation name present in the WSDL file
 
*Operation name, the operation name present in the WSDL file
 
*Service, choose {{GVESB}} service to invoke.
 
*Service, choose {{GVESB}} service to invoke.
 +
In the last page User sets the following parameters:
 +
*[[Data provider]], used to adapt the workflow output to the Web Service output
 +
*Input type, used to choose what must be passes as input to the workflow:
 +
**context        : the [http://axis.apache.org/axis2/java/core/api/org/apache/axis2/context/MessageContext.html MessageContext]
 +
**envelope        : the envelope as XML serialized string
 +
**body            : the body as XML serialized string
 +
**body-element    : the first child of body as XML serialized string
 +
**header          : the header as XML serialized string
 +
**envelope-om    : the envelope as [http://ws.apache.org/axiom/apidocs/org/apache/axiom/soap/SOAPEnvelope.html SOAPEnvelope] object
 +
**body-om        : the body as [http://ws.apache.org/axiom/apidocs/org/apache/axiom/soap/SOAPBody.html SOAPBody] object
 +
**body-element-om : the first child of body as [http://ws.apache.org/axiom/apidocs/org/apache/axiom/om/OMElement.html OMElement] object
 +
**header-om      : the header as [http://ws.apache.org/axiom/apidocs/org/apache/axiom/soap/SOAPHeader.html SOAPHeader] object
 +
*Input xsd name: the name of your XSD file, defined in the xsds folder
 +
*Output xsd name: the name of your XSD file, defined in the xsds folder
 +
*Choose if Web Service should be forced to HTTPS
 +
*Choose if target namespace to be used is the one in the xsd
 +
 +
== Example ==
 +
{| class="gvtable"
 +
|-
 +
! Web Service name
 +
! Operation
 +
! Description
 +
!
 +
|-
 +
| Credit Card
 +
| withdrawal
 +
| This operation.............................................................
 +
| [[Example 1]]
 +
|-
 +
| Credit Card
 +
| Saldo
 +
| This operation.............................................................
 +
| [[Example 2]]
 +
|}

Latest revision as of 08:34, 28 February 2012

Top-down development method

Wizard Top-down development method guides user step by step with the Web Service creation. Prerequisites to use this wizard is the WSDL file. If you don't know how build a WSDL file visit this link. Right click on GVServices-->Services label and select Wizard Top-Down Web Service.... New WebService Wizard window will be shown.

In the first Wizard page user selects the WSDL file. The Wizard on the second page proposes the operations that are described in the WSDL file. User selects one or more operations. In the next page user sets the following parameters:

  • Create Services, if this radio button will be checked the Service parameters are enabled
  • Use existing services, if this radio button will be checked the Service parameters are disabled
  • System
  • Participant
  • Channel
  • Operation name, the operation name present in the WSDL file
  • Service, choose GreenVulcano® ESB service to invoke.

In the last page User sets the following parameters:

  • Data provider, used to adapt the workflow output to the Web Service output
  • Input type, used to choose what must be passes as input to the workflow:
    • context  : the MessageContext
    • envelope  : the envelope as XML serialized string
    • body  : the body as XML serialized string
    • body-element  : the first child of body as XML serialized string
    • header  : the header as XML serialized string
    • envelope-om  : the envelope as SOAPEnvelope object
    • body-om  : the body as SOAPBody object
    • body-element-om : the first child of body as OMElement object
    • header-om  : the header as SOAPHeader object
  • Input xsd name: the name of your XSD file, defined in the xsds folder
  • Output xsd name: the name of your XSD file, defined in the xsds folder
  • Choose if Web Service should be forced to HTTPS
  • Choose if target namespace to be used is the one in the xsd

Example

Web Service name Operation Description
Credit Card withdrawal This operation............................................................. Example 1
Credit Card Saldo This operation............................................................. Example 2