Shun87 / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

The result is very Strange #120

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Generate code from:StreamServerWebService.wsdl

What is the expected output?

What do you see instead?
- (id)initWithBinding:(StreamServerWebServicePortBinding *)aBinding 
delegate:(id<StreamServerWebServicePortBindingResponseDelegate>)responseDelegate
parameters:(%«part.element.type.classNameWithPtr» *** ERROR: undefined key 
*** )aParameters

There are a lot of quession like this,I don't the reason.

What version of the product are you using? On what operating system?
version 0.7 on Mac 10.6.4

Please provide any additional information below.

Original issue reported on code.google.com by wanglei1...@163.com on 11 Nov 2010 at 9:34

Attachments:

GoogleCodeExporter commented 8 years ago
I had similar issue with my wsdl and after I downloaded wsdl2objc source code, 
compiled and executed it, I noticed the following output on the debugger 
console:

2010-11-17 23:05:21.963 WSDLParser[50339:5c0b] Processing schema import at 
location: http://ip-0aa0b700/ExampleService/Example.svc?xsd=xsd0

2010-11-17 23:05:22.091 WSDLParser[50339:5c0b] Unable to parse XML document 
from http://ip-0aa0b700/ExampleService/Example.svc?xsd=xsd0 (ignored): Error 
Domain=NSURLErrorDomain Code=-1014 UserInfo=0x10e8250 "zero byte resource"

2010-11-17 23:05:21.963 WSDLParser[50339:5c0b] Processing schema import at 
location: http://ip-0aa0b700/ExampleService/Example.svc?xsd=xsd1

2010-11-17 23:05:22.091 WSDLParser[50339:5c0b] Unable to parse XML document 
from http://ip-0aa0b700/ExampleService/Example.svc?xsd=xsd1 (ignored): Error 
Domain=NSURLErrorDomain Code=-1014 UserInfo=0x10e8250 "zero byte resource"

2010-11-17 23:05:21.963 WSDLParser[50339:5c0b] Processing schema import at 
location: http://ip-0aa0b700/ExampleService/Example.svc?xsd=xsd2

2010-11-17 23:05:22.091 WSDLParser[50339:5c0b] Unable to parse XML document 
from http://ip-0aa0b700/ExampleService/Example.svc?xsd=xsd2 (ignored): Error 
Domain=NSURLErrorDomain Code=-1014 UserInfo=0x10e8250 "zero byte resource"

I looked at my wsdl file and found the following:

<xsd:import 
schemaLocation="http://ip-0aa0b700/ExampleService/Example.svc?xsd=xsd0" 
namespace="http://tempuri.org/"/>
<xsd:import 
schemaLocation="http://ip-0aa0b700/ExampleService/Example.svc?xsd=xsd1" 
namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
<xsd:import 
schemaLocation="http://ip-0aa0b700/ExampleService/Example.svc?xsd=xsd2" 
namespace="http://schemas.datacontract.org/2004/07/ExampleService"/>

Noticed the URL starts with "http://ip-0aa0b700/"?

After I realized what wsdl2objc tried to do from the above output (accessing 
unreachable URL), I went and changed my web service bindings (it was originally 
empty) to reflect the actual domain name, for example: subdomain.domain.com. 
Restarted the web service and when I tried wsdl2objc again, this was the output 
on debugger console:

2010-11-17 23:14:17.718 WSDLParser[50428:5907] Processing schema import at 
location: http://subdomain.domain.com/ExampleService/Example.svc?xsd=xsd0

2010-11-17 23:14:18.125 WSDLParser[50428:5907] Processing schema import at 
location: http://subdomain.domain.com/ExampleService/Example.svc?xsd=xsd2

2010-11-17 23:14:18.250 WSDLParser[50428:5907] Processing schema import at 
location: http://subdomain.domain.com/ExampleService/Example.svc?xsd=xsd1

2010-11-17 23:14:18.310 WSDLParser[50428:5907] Processing schema import at 
location: http://subdomain.domain.com/ExampleService/Example.svc?xsd=xsd1

2010-11-17 23:14:18.348 WSDLParser[50428:5907] Processing schema import at 
location: http://subdomain.domain.com/ExampleService/Example.svc?xsd=xsd1

2010-11-17 23:14:18.389 WSDLParser[50428:5907] Processing schema import at 
location: http://subdomain.domain.com/ExampleService/Example.svc?xsd=xsd2

And in my wsdl file, I found the following:

<xsd:import 
schemaLocation="http://subdomain.domain.com/ExampleService/Example.svc?xsd=xsd0"
 namespace="http://tempuri.org/"/>
<xsd:import 
schemaLocation="http://subdomain.domain.com/ExampleService/Example.svc?xsd=xsd1"
 namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
<xsd:import 
schemaLocation="http://subdomain.domain.com/ExampleService/Example.svc?xsd=xsd2"
 namespace="http://schemas.datacontract.org/2004/07/ExampleService"/>

No longer has URL that begins with "http://ip-0aa0b700/". Hope this helps.

Original comment by dharja...@gmail.com on 18 Nov 2010 at 7:28

GoogleCodeExporter commented 8 years ago
Thanx for your help,but when I change it.The error is continue.

Original comment by wanglei1...@163.com on 26 Nov 2010 at 9:02