PartyWebServiceExample Test Cases

Embed Size (px)

DESCRIPTION

jjj

Citation preview

ReadmeThe wsdl for the PartyWebServiceExample can be accessed athttp://:/PartyWebServiceExample/services/SiperianWebServices?wsdlThe local place for the properties files is in C:\\hub\resourcekit\deploy\resources\SiperianConnection.propertiesPartyWebServiceExample.propertiesThis spreadsheet provides test examples on how to use this web service.Each sheet covers one service in the web service.These test cases are the xml input to the web services and cover each possible use case for the service. These test cases will help a user quickly familiarize themselves with the services.A web service tool like SoapUI or Web Services Explorer in Eclipse can be use to test the services.These examples are from SoapUI.WEB SERVICE OPERATIONS1) getParty - Retrieves a single Party profile using a record key. A record key can either be the Party rowidObject or source and pkeySrcObject.2) findParty - Searches for a Party profile based on attributes entered for Party and/or Address.3) maintainParty - Maintains the composite party comprising of Party, Account, Address, or Phone entities.When doing a put either the object is created (with the rowidObject auto generated) or the matching object is updated.Rules for using maintainParty:a) If a record key for any object is specified, then an attempt to update the correspondent entity will be made. A record key can either be specified using the rowidObject or pkeySrcObject and source. If the object for update does not exist then an error will be thrown back.b) If no record key for an object is specified then an attempt to create and insert the object will be made. There must be at least one field filled in.c) If a Party with children is used for a put then the rowidObject of the Party will be used in the rowidParty of the children. This automatically links the Party with its children. It does not matter if the put for the Party or children is an insert or update. If rowidParty of a child is specified then that will be used instead.d) If creating a child object by itself such as Account, then rowidParty must be specified. This is the rowidObject of its parent Party.e) Multiple objects can used for a put. Children objects can be done by themselves but they must have a rowidObject specified (see rule 4).

GetPartyRequestRequestUsing Rowid ObjectUsing Source System and Source Key62290000045SFAResponseResponse18315 FORT DADE AVEKISMAT PREFERRED, LLCBROOKSVILLEUSKISMAT PREFERRED, LLC (, )KISMAT PREFERRED, LLCYOrganization242346018719715FLFORT DADE18315AVE360 W PLEASANTVIEW AVEHACKENSACKUSY076011045716NJPLEASANTVIEW360AVEMARSHA DOUGLASMARSHADOUGLASY622(352)796-7770BUS289Y622(201)342-5202FAX625Person622

FindPartyRequestRequestRequestfindParty by only party fields (first name or any from the party fields)findParty by only address fields (city name or any from the address fields)findParty by both party and address fieldsALBERTJAMAICAJAMAICAResponseALBERT3885 HALL MEADOW RDGOSHENUSN06756Response-310ResponseCTHALL MEADOW3885RD3108 COLEBROOK LN306 JOHN STJAMAICAUSDUBLINHOLLYUSUSNYY11432-945684844217587691642NY309847CAMICOLEBROOKJOHN3108306LNSTALBERT QASEM14146 PERSHING CRESALBERT ROGERSALBERTALBERTJAMAICAUSQASEMROGERSPersonY170Y114354191920848(860)496-897882-68 164TH STREET QUEENS HOSBUSNYPERSHING9414146CRESJAMAICAUSROSIE WEBERY419ROSIEN(925)556-1448FAX440WEBERPerson62419NY164TH STREET QUEENS HO82-68Y688(718)739-2906FAXALBERT KASEM82-68 164TH STREET QUEENS HOS700ALBERTMJAMAICAUSKASEMY688N(248)328-8082PersonBUS62762APerson62688NY164TH STREET QUEENS HO82-68JAMAICAUSALBERT KASEMALBERTMJAMAICANUSKASEMNPerson6562NYA11432-175NYALBERT QASEMALBERTMJAMAICAUSALBERT QASEMQASEMALBERTNPersonQASEM65APerson65170NY82-68 164TH STREET QUEENS HOSALBERT QASEMALBERTMJAMAICAUSQASEMNPerson65A62NY164TH STREET QUEENS HO80 WOODWARD ST82-68ROSLYN HEIGHTSUSALBERT KASEMALBERTMYKASEM115771931Person20162NYAWOODWARD80ST80 WOODWARD STROSLYN HEIGHTSJAMAICAUSUSYN11577193120165NYNYWOODWARD80STALBERT KASEMALBERT QASEMALBERTALBERTMMKASEMQASEMPersonPerson6965AAJAMAICAUSN11432-175NYALBERT QASEMALBERTQASEMPerson170

MaintainPartyUpdate PartyUpdate PhoneUpdate AccountUpdate AddressRequestRequestRequestRequest5555333311117 ELM STREETSAN MATEOUSALEX2Y62294401622/001Response715(510)579-8736MOBCAELM1721117STREETUpdate15000000622622622SFAResponseResponse622UpdateUpdate XREF18006000160020002622SFASFAUpdateUpdate XREFResponse16003000180050001721622SFASFAUpdate18014000715SFAUpdate XREF18013000622SFA