0
我有一個簡單的rfc需要一個字符串(輸入)並返回該字符串(輸出)。wsdl2obj Sap SimpleTransformationFault
在xcode部分,我使用了wsdl2obj。
下面是代碼
//create web service binding
zstringSoapBinding *binding = [[zstringSoapBinding alloc] initWithAddress:@"http://../sap/bc/srt/rfc/sap/ZSTRING?sap-client=020&wsdl=1.1"];
binding.logXMLInOut = YES;
binding.authUsername = @"";
binding.authPassword = @"";
// create web service request object
zstringService_ZSTRING *request = [[zstringService_ZSTRING alloc]
init];
NSString * str = [NSString stringWithFormat:@"asd"];
request.INPUT = str;
// call the request
zstringSoapBindingResponse *response = [binding ZSTRINGUsingParameters:request];
NSArray *responseBodyParts = response.bodyParts;
在日誌ResponseBody是;
ResponseBody: SOAP-ENV:ClientDeserialisation失敗/ 1BCDWB/WSS0121107152246421000/1BCDWB/WSS012110715224642100010 XSystem預期元素' INPUT ' EZSTRINGurn:SAP-COM:文檔:SAP:RFC:functionsCL_SRG_RFC_PROXY_CONTEXTIF_SXML_PART〜DECODE1
你能幫助我請問這個問題?
問候,