Objective-C SOAP Client --Request Problem?

前端 未结 2 1254
南笙
南笙 2021-01-01 07:34

I have generated code with WSDL2OBJC. I have big problem with request in my Objective C client:

CatalogoPortBinding *binding = [[CatalogoSvc CatalogoPortBind         


        
2条回答
  •  温柔的废话
    2021-01-01 08:12

    Based on comparing this request to what you have in your question posted about a manual solution, it looks like you've got namespace issues happening here. The SOAP request generated here applies the http://org/ namespace (via the identifier CatalogoSvc) to the "name" element:

    
      David
    
    

    In the manual scenario where you have gotten this to work, the http://org/ namespace is applied to the surrounding "hello" element but not the "name" element:

    
    
    
    

    Since the client side code is presumably generated from the service's WSDL, I suspect that the Objective-C code is doing it right and your service code has it wrong, but that's just a suspicion. Either way, you need to find a way to make client and server side "agree"

提交回复
热议问题