<legend id='KDVU8'><style id='KDVU8'><dir id='KDVU8'><q id='KDVU8'></q></dir></style></legend>

<tfoot id='KDVU8'></tfoot>

  • <i id='KDVU8'><tr id='KDVU8'><dt id='KDVU8'><q id='KDVU8'><span id='KDVU8'><b id='KDVU8'><form id='KDVU8'><ins id='KDVU8'></ins><ul id='KDVU8'></ul><sub id='KDVU8'></sub></form><legend id='KDVU8'></legend><bdo id='KDVU8'><pre id='KDVU8'><center id='KDVU8'></center></pre></bdo></b><th id='KDVU8'></th></span></q></dt></tr></i><div id='KDVU8'><tfoot id='KDVU8'></tfoot><dl id='KDVU8'><fieldset id='KDVU8'></fieldset></dl></div>
    • <bdo id='KDVU8'></bdo><ul id='KDVU8'></ul>

        <small id='KDVU8'></small><noframes id='KDVU8'>

        需要有关 Objective-C 代码的帮助(生成的 WSDL2ObjC)

        Need help on Objective-C code (WSDL2ObjC generated)(需要有关 Objective-C 代码的帮助(生成的 WSDL2ObjC))
        <legend id='sYEBD'><style id='sYEBD'><dir id='sYEBD'><q id='sYEBD'></q></dir></style></legend>
          <tbody id='sYEBD'></tbody>

          <small id='sYEBD'></small><noframes id='sYEBD'>

          • <bdo id='sYEBD'></bdo><ul id='sYEBD'></ul>

            1. <i id='sYEBD'><tr id='sYEBD'><dt id='sYEBD'><q id='sYEBD'><span id='sYEBD'><b id='sYEBD'><form id='sYEBD'><ins id='sYEBD'></ins><ul id='sYEBD'></ul><sub id='sYEBD'></sub></form><legend id='sYEBD'></legend><bdo id='sYEBD'><pre id='sYEBD'><center id='sYEBD'></center></pre></bdo></b><th id='sYEBD'></th></span></q></dt></tr></i><div id='sYEBD'><tfoot id='sYEBD'></tfoot><dl id='sYEBD'><fieldset id='sYEBD'></fieldset></dl></div>

            2. <tfoot id='sYEBD'></tfoot>

                  本文介绍了需要有关 Objective-C 代码的帮助(生成的 WSDL2ObjC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 WSDL2ObjC 文档中有如下示例代码,但在我生成的代码中,我找不到任何与myOperationUsingParameters"等效的类、方法或属性那是什么,我在哪里可以找到它?我也不知道myOperation"和ns1"是什么.

                  In the WSDL2ObjC documentation there is a sample code like below, but in my generated code I couldnt find any class, method or property equavilant to "myOperationUsingParameters" what is that and where can I find it? I don't know also what "myOperation" and what "ns1" is.

                  我是新手,所以在Objective C中,当我以某种方式更改变量的大写并将它们与一些关键字连接时,可能有什么意义?

                  I'm newbie, so in Objective C maybe there is a meaning when I change the capitals of variables in a certain way and concatenate them with some keywords?

                  例如:ns1_MyOperationRequest -- myOperationUsingParameters

                  for instance: ns1_MyOperationRequest -- myOperationUsingParameters

                  tnx

                  #import "MyWebService.h"
                  MyWebServiceBinding *binding = [MyWebService MyWebServiceBinding];
                  binding.logXMLInOut = YES;
                  
                  ns1_MyOperationRequest *request = [[ns1_MyOperationRequest new] autorelease];
                  request.attribute = @"attributeValue";
                  request.element = [[ns1_MyElement new] autorelease];
                  request.element.value = @"elementValue"];
                  
                  MyWebServiceBindingResponse *response = [binding myOperationUsingParameters:request];
                  

                  推荐答案

                  这一切都取决于您的 Web 服务类名称等,因为 wsdl2objc 构成了许多基于此的 NSObject 和方法,但是,这表明您使用的是 soap 1.2 绑定并且您的 Web 服务被称为SimpleService",下面将调用一个名为MobileTestService"的 Web 方法并从生成的 xml 返回整数值.

                  All depends on your web service class name etc as wsdl2objc makes up alot of your NSObjects and methods based upon this, however, suggesting that you are using soap 1.2 bindings and your web service was called 'SimpleService', the following would call a web method named 'MobileTestService and return back the integer value from the xml generated.

                  -(NSString *)returnThatStringFromWebServiceResult 
                  
                  {
                  
                  
                  SimpleServiceSoap12Binding * binding = [SimpleService SimpleServiceSoap12Binding];
                  
                  binding.logXMLInOut = YES; // shows all in the console log.
                  
                  SimpleService_concat * testParams = [[SimpleService_concat new]autorelease];
                  
                  testParams.s1 = someTextField.text; // parameters all become properties of this testParams object
                  
                  testParams.s2 = anotherTextField.text;
                  
                  SimpleServiceSoap12BindingResponse * response= [binding SimpleService_concatUsingParameters:testParams];
                  
                  [response self]; // removes compile error
                  
                  NSArray * responseBodyParts = response.bodyParts;
                  
                  NSError * responseError = response.error;
                  
                  if (responseError!=NULL) 
                  
                  {
                      return @"";     // if error from ws use [responeError code]; for http err code
                  
                  
                  }
                  
                  for (id bodyPart in responseBodyParts)
                  
                  {
                  
                      if ([bodyPart isKindOfClass:[SimpleService_concat_Response class]]) 
                  
                      {
                          SimpleService_concatResponse* body = (SimpleService_concatResponse*) bodyPart;
                  
                          return body.SimpleService_concatResult; // if you are returning a string from your WS then this value will be a string, 
                  
                      }
                  
                  }
                  

                  这篇关于需要有关 Objective-C 代码的帮助(生成的 WSDL2ObjC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                  Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                  Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                  Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                  How to convert 32 bit PNG to RGB565?(如何将 32 位 PNG 转换为 RGB565?)
                  Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)
                  • <bdo id='dR2gX'></bdo><ul id='dR2gX'></ul>
                      <tbody id='dR2gX'></tbody>

                    <i id='dR2gX'><tr id='dR2gX'><dt id='dR2gX'><q id='dR2gX'><span id='dR2gX'><b id='dR2gX'><form id='dR2gX'><ins id='dR2gX'></ins><ul id='dR2gX'></ul><sub id='dR2gX'></sub></form><legend id='dR2gX'></legend><bdo id='dR2gX'><pre id='dR2gX'><center id='dR2gX'></center></pre></bdo></b><th id='dR2gX'></th></span></q></dt></tr></i><div id='dR2gX'><tfoot id='dR2gX'></tfoot><dl id='dR2gX'><fieldset id='dR2gX'></fieldset></dl></div>
                  • <legend id='dR2gX'><style id='dR2gX'><dir id='dR2gX'><q id='dR2gX'></q></dir></style></legend>

                      1. <small id='dR2gX'></small><noframes id='dR2gX'>

                          <tfoot id='dR2gX'></tfoot>