Доброго времени суток.
необходимо протестировать веб-сервис. сделать автоматизацию.
привожу wsdl данного сервиса.
не знаю как написать клиента. в принципе сталкиваюсь первый раз с веб-сервисами. в этом и проблема.
реально ли сгенерировать клиента автоматически в eclipse?
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:scrummaster="urn:scrum:master:messages:v2" xmlns:soap12="http://www.w3.org/20...soap-envelope/"
xmlns:tns="urn:scrum:master:messages:v2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:scrum:master:messages:v2">
<wsdl:types>
<xsd:schema>
<xsd:import namespace="urn:scrum:master:messages:v2"
schemaLocation="scrum.master.messages.xsd" />
</xsd:schema>
</wsdl:types>
<wsdl:message name="PlanProductRoadMapRequest">
<wsdl:part element="scrummaster:PlanProductRoadMapRequest"
name="PlanProductRoadMapRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="UpdateSprintResponse">
<wsdl:part element="scrummaster:UpdateSprintResponse" name="UpdateSprintResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="ProcessBatchOfWorkItemsRequest">
<wsdl:part element="scrummaster:ProcessBatchOfWorkItemsRequest"
name="ProcessBatchOfWorkItemsRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="UpdateSprintRequest">
<wsdl:part element="scrummaster:UpdateSprintRequest" name="UpdateSprintRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="GetBacklogRequest">
<wsdl:part element="scrummaster:GetBacklogRequest" name="GetBacklogRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="OrganizeScrumTeamResponse">
<wsdl:part element="scrummaster:OrganizeScrumTeamResponse"
name="OrganizeScrumTeamResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="GetTeamMembersResponse">
<wsdl:part element="scrummaster:GetTeamMembersResponse"
name="GetTeamMembersResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="OrganizeScrumTeamRequest">
<wsdl:part element="scrummaster:OrganizeScrumTeamRequest"
name="OrganizeScrumTeamRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="GetProductRoadMapRequest">
<wsdl:part element="scrummaster:GetProductRoadMapRequest"
name="GetProductRoadMapRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="GetProductRoadMapResponse">
<wsdl:part element="scrummaster:GetProductRoadMapResponse"
name="GetProductRoadMapResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="GetTeamMembersRequest">
<wsdl:part element="scrummaster:GetTeamMembersRequest" name="GetTeamMembersRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="GetTeamsRequest">
<wsdl:part element="scrummaster:GetTeamsRequest" name="GetTeamsRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="PlanProductRoadMapResponse">
<wsdl:part element="scrummaster:PlanProductRoadMapResponse"
name="PlanProductRoadMapResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="ScrumMasterFault">
<wsdl:part element="scrummaster:ScrumMasterFault" name="ScrumMasterFault">
</wsdl:part>
</wsdl:message>
<wsdl:message name="ProcessBatchOfWorkItemsResponse">
<wsdl:part element="scrummaster:ProcessBatchOfWorkItemsResponse"
name="ProcessBatchOfWorkItemsResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="GetTeamsResponse">
<wsdl:part element="scrummaster:GetTeamsResponse" name="GetTeamsResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="GetBacklogResponse">
<wsdl:part element="scrummaster:GetBacklogResponse" name="GetBacklogResponse">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="ScrumMaster">
<wsdl:operation name="PlanProductRoadMap">
<wsdl:input message="tns:PlanProductRoadMapRequest" name="PlanProductRoadMapRequest">
</wsdl:input>
<wsdl:output message="tns:PlanProductRoadMapResponse"
name="PlanProductRoadMapResponse">
</wsdl:output>
<wsdl:fault message="tns:ScrumMasterFault" name="ScrumMasterFault" />
</wsdl:operation>
<wsdl:operation name="UpdateSprint">
<wsdl:input message="tns:UpdateSprintRequest" name="UpdateSprintRequest">
</wsdl:input>
<wsdl:output message="tns:UpdateSprintResponse" name="UpdateSprintResponse">
</wsdl:output>
<wsdl:fault message="tns:ScrumMasterFault" name="ScrumMasterFault" />
</wsdl:operation>
<wsdl:operation name="ProcessBatchOfWorkItems">
<wsdl:input message="tns:ProcessBatchOfWorkItemsRequest"
name="ProcessBatchOfWorkItemsRequest">
</wsdl:input>
<wsdl:output message="tns:ProcessBatchOfWorkItemsResponse"
name="ProcessBatchOfWorkItemsResponse">
</wsdl:output>
<wsdl:fault message="tns:ScrumMasterFault" name="ScrumMasterFault" />
</wsdl:operation>
<wsdl:operation name="GetBacklog">
<wsdl:input message="tns:GetBacklogRequest" name="GetBacklogRequest">
</wsdl:input>
<wsdl:output message="tns:GetBacklogResponse" name="GetBacklogResponse">
</wsdl:output>
<wsdl:fault message="tns:ScrumMasterFault" name="ScrumMasterFault" />
</wsdl:operation>
<wsdl:operation name="OrganizeScrumTeam">
<wsdl:input message="tns:OrganizeScrumTeamRequest" name="OrganizeScrumTeamRequest">
</wsdl:input>
<wsdl:output message="tns:OrganizeScrumTeamResponse"
name="OrganizeScrumTeamResponse">
</wsdl:output>
<wsdl:fault message="tns:ScrumMasterFault" name="ScrumMasterFault" />
</wsdl:operation>
<wsdl:operation name="GetTeamMembers">
<wsdl:input message="tns:GetTeamMembersRequest" name="GetTeamMembersRequest">
</wsdl:input>
<wsdl:output message="tns:GetTeamMembersResponse" name="GetTeamMembersResponse">
</wsdl:output>
<wsdl:fault message="tns:ScrumMasterFault" name="ScrumMasterFault" />
</wsdl:operation>
<wsdl:operation name="GetProductRoadMap">
<wsdl:input message="tns:GetProductRoadMapRequest" name="GetProductRoadMapRequest">
</wsdl:input>
<wsdl:output message="tns:GetProductRoadMapResponse"
name="GetProductRoadMapResponse">
</wsdl:output>
<wsdl:fault message="tns:ScrumMasterFault" name="ScrumMasterFault" />
</wsdl:operation>
<wsdl:operation name="GetTeams">
<wsdl:input message="tns:GetTeamsRequest" name="GetTeamsRequest">
</wsdl:input>
<wsdl:output message="tns:GetTeamsResponse" name="GetTeamsResponse">
</wsdl:output>
<wsdl:fault message="tns:ScrumMasterFault" name="ScrumMasterFault" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ScrumMasterSoap12" type="tns:ScrumMaster">
<soap12:binding style="document"
transport="http://schemas.xmlso....org/soap/http" />
<wsdl:operation name="PlanProductRoadMap">
<wsdl:documentation>
Creates product and delivery items for specific it between planning
date and product milestone date.
Delivery item is the relation
between product and iteration. The duration of
the sprint is 2 weeks.
Starting from planning date this method adds 2 weeks to planning
date, until
it reach milestone date.
<errors>
<error>
<code>503</code>
<message>Team member cannot be found by alias {?}</message>
<when>Team member with the role PRODUCTOWNER cannot be found.</when>
</error>
<error>
<code>506</code>
<message>Team member with alias {?} belongs to {?}
role, but
{PRODUCTOWNER} expected.</message>
<when>Team member has been found, but his role not a PRODUCTOWNER</when>
</error>
<error>
<code>504</code>
<message>Road map has been already generated for this
{?} product.</message>
<when>The specific product has already been created.</when>
</error>
<error>
<code>499</code>
<message>Planning date cannot be before current date.</message>
<when>Planning date is before current date.</when>
</error>
<error>
<code>499</code>
<message>Planning date cannot be after milestone date.</message>
<when>Planning date after milestone date.</when>
</error>
<error>
<code>499</code>
<message>Difference between milestone date and planning date
cannot be less than 2 weeks.</message>
<when>Cannot create 2 weeks sprint.</when>
</error>
<error>
<code>499</code>
<message>Planning period cannot be more than 1 year.</message>
<when>Too long planning period.</when>
</error>
</errors>
</wsdl:documentation>
<soap12:operation soapAction="" />
<wsdl:input name="PlanProductRoadMapRequest">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output name="PlanProductRoadMapResponse">
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="UpdateSprint">
<wsdl:documentation>
Updates data of the specific sprint. This sprint will be found by
delivery item data.
<errors>
<error>
<code>507</code>
<message>Product {?} cannot be found.</message>
<when>Cannot find product by alias given in the delivery item
data.</when>
</error>
<error>
<code>508</code>
<message>Sprint with id {?} cannot be found.</message>
<when>Cannot find iteration by given sprint id from delivery item.</when>
</error>
</errors>
</wsdl:documentation>
<soap12:operation soapAction="" />
<wsdl:input name="UpdateSprintRequest">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output name="UpdateSprintResponse">
<soap12:body use="literal" />
</wsdl:output>
<wsdl:fault name="ScrumMasterFault">
<soap12:body use="literal" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="ProcessBatchOfWorkItems">
<wsdl:documentation>
Creates or updates work items related to specific delivery item.
<errors>
<error>
<code>499</code>
<message>Invalid work item state {?}. Expected values are {?}.</message>
<when>Cannot find product by alias given in the delivery item
data.</when>
</error>
<error>
<code>512</code>
<message>Duplicated work item ids are not allowed. Id {?} occurs
at
least {?} times among {?} items.</message>
<when>There are duplicated work items in the batch to process.</when>
</error>
<error>
<code>503</code>
<message>Team member cannot be found by alias {?}</message>
<when>Assignee cannot be found</when>
</error>
<error>
<code>509</code>
<message>Delivery item cannot be found for combination
{ProductAlias, SprintID} = {?, ?}.</message>
<when>There are no any relation between product and sprint.</when>
</error>
<error>
<code>510</code>
<message>There is no work item could be found by defined token
{?}.</message>
<when>Work item id specified. This work item would be updated, but
if it is found by sprint id.</when>
</error>
<error>
<code>511</code>
<message>Illegal state value.</message>
<when>When the new state cannot be assigned.</when>
</error>
</errors>
</wsdl:documentation>
<soap12:operation soapAction="" />
<wsdl:input name="ProcessBatchOfWorkItemsRequest">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output name="ProcessBatchOfWorkItemsResponse">
<soap12:body use="literal" />
</wsdl:output>
<wsdl:fault name="ScrumMasterFault">
<soap12:body use="literal" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="GetBacklog">
<wsdl:documentation>
Retrieves filtered by state and sorted by points work items with all
its data related to
specific delivery item.
<errors>
<error>
<code>509</code>
<message>Delivery item cannot be found for combination
{ProductAlias, SprintID} = {?, ?}.</message>
<when>There are no any relation between product and sprint.</when>
</error>
</errors>
</wsdl:documentation>
<soap12:operation soapAction="" />
<wsdl:input name="GetBacklogRequest">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output name="GetBacklogResponse">
<soap12:body use="literal" />
</wsdl:output>
<wsdl:fault name="ScrumMasterFault">
<soap12:body use="literal" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="OrganizeScrumTeam">
<wsdl:documentation>
Creates team and all associated with it team members.
<errors>
<error>
<code>505</code>
<message>Scrum team has been already organized according to this
{?} alias.</message>
<when>The team with such alias, has been already created.</when>
</error>
</errors>
</wsdl:documentation>
<soap12:operation soapAction="" />
<wsdl:input name="OrganizeScrumTeamRequest">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output name="OrganizeScrumTeamResponse">
<soap12:body use="literal" />
</wsdl:output>
<wsdl:fault name="ScrumMasterFault">
<soap12:body use="literal" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="GetTeamMembers">
<wsdl:documentation>
Retrieves team members of the specific team.
<errors>
<error>
<code>502</code>
<message>There are no teams could be found with alias {?}.</message>
<when>The team with such alias, has been already created.</when>
</error>
</errors>
</wsdl:documentation>
<soap12:operation soapAction="" />
<wsdl:input name="GetTeamMembersRequest">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output name="GetTeamMembersResponse">
<soap12:body use="literal" />
</wsdl:output>
<wsdl:fault name="ScrumMasterFault">
<soap12:body use="literal" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="GetProductRoadMap">
<wsdl:documentation>
Retrieves all sprints for the specific product.
<errors>
<error>
<code>502</code>
<message>Product {?} cannot be found.</message>
<when>Unregistered product passes to request.</when>
</error>
<error>
<code>507</code>
<message>Road map for product {?} was not generated.</message>
<when>Unregistered product passes to request.</when>
</error>
</errors>
</wsdl:documentation>
<soap12:operation soapAction="" />
<wsdl:input name="GetProductRoadMapRequest">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output name="GetProductRoadMapResponse">
<soap12:body use="literal" />
</wsdl:output>
<wsdl:fault name="ScrumMasterFault">
<soap12:body use="literal" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="GetTeams">
<wsdl:documentation>
Retrieves the list of team aliases found by area
path.
</wsdl:documentation>
<soap12:operation soapAction="" />
<wsdl:input name="GetTeamsRequest">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output name="GetTeamsResponse">
<soap12:body use="literal" />
</wsdl:output>
<wsdl:fault name="ScrumMasterFault">
<soap12:body use="literal" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ScrumMasterService">
<wsdl:port binding="tns:ScrumMasterSoap12" name="ScrumMasterSoap12">
<soap12:address
location="http://10.6.9.18:432...0/ScrumMaster/" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
тестирование веб-сервиса
Автор BillyAnn, 14 фев 2012 09:17
В этой теме нет ответов
Количество пользователей, читающих эту тему: 1
0 пользователей, 1 гостей, 0 анонимных