Web Service Internal Server Error

Hi I am calling web services from .Net. I am able to successfully get back a list of regions, but when I try call a service that returns suburbs by region, and pass in one of those regions, there is a paramater mismatch. The regions returned are of type: GetRegionsResponseRegions. The GetSuburbByRegion service asks for a GetSuburbsByRegionRegion object. I would have expected to pass in a region, but I cannot do a cast, and if I create a new GetSuburbsByRegionRegion and set its region name to a Region objects name I get the server error. How I do I pass in a region, and why is the wsdl generated so strange? The micro flow is here: link The code is here: link The web service operation is here: link The wsdl is below: Published operation Operation: GetSuburbsByRegion Description Not specified in the model SOAP The following is a sample SOAP request and response. The example values shown need to be replaced with actual values. Example SOAP request: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://localhost:8080/ws/"> <soap:Header> <tns:authentication> <username>exampleUser</username> <password>examplePassword</password> </tns:authentication> </soap:Header> <soap:Body> <tns:GetSuburbsByRegion> <Region> <Name>exampleString</Name> </Region> </tns:GetSuburbsByRegion> </soap:Body> </soap:Envelope> Example SOAP response: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://localhost:8080/ws/"> <soap:Body> <tns:GetSuburbsByRegionResponse> <Suburbs> <Name>exampleString</Name> </Suburbs> <Suburbs> <Name>exampleString</Name> </Suburbs> <Suburbs> <Name>exampleString</Name> </Suburbs> </tns:GetSuburbsByRegionResponse> </soap:Body> </soap:Envelope>
0 answers