这真的很奇怪。看到这个比较:在这段代码中我得到了错误
AcademicProgramOfStudyByNameQueryResponse_InClient client =
new AcademicProgramOfStudyByNameQueryResponse_InClient();
client.ClientCredentials.UserName.UserName = "XX";
client.ClientCredentials.UserName.Password = "YY";
AcademicProgramOfStudyByNameQueryMessage_sync input =
new AcademicProgramOfStudyByNameQueryMessage_sync();
input.AcademicProgramOfStudySelectionByName = new AcademicProgramOfStudyByNameQueryMessage_syncAcademicProgramOfStudySelectionByName();
input.AcademicProgramOfStudySelectionByName.AcademicProgramOfStudyName.languageCode = "DE";
AcademicProgramOfStudyByNameResponseMessage_sync output =
new AcademicProgramOfStudyByNameResponseMessage_sync();
output = client.AcademicProgramOfStudyByNameQueryResponse_In(input);
在这段代码中我没有!
CustomerSimpleByNameAndAddressQueryResponse_InClient client =
new CustomerSimpleByNameAndAddressQueryResponse_InClient();
client.ClientCredentials.UserName.UserName = "XX";
client.ClientCredentials.UserName.Password = "YY";
CustomerSimpleByNameAndAddressQueryMessage_sync input = new CustomerSimpleByNameAndAddressQueryMessage_sync();
input.CustomerSimpleSelectionByNameAndAddress = new CustomerSimpleByNameAndAddressQueryMessage_syncCustomerSimpleSelectionByNameAndAddress();
input.CustomerSimpleSelectionByNameAndAddress.CustomerAddressCityName = "Berlin";
CustomerSimpleByNameAndAddressResponseMessage_sync output = new CustomerSimpleByNameAndAddressResponseMessage_sync();
output = client.CustomerSimpleByNameAndAddressQueryResponse_In(input);