WebService - Referencia [AJUDA]

Estou tentando criar uma referencia para um ws. O ws foi feito no .net e jah eh usado em alguns programas sem problemas.

Pois bem, fiz um programa de teste, soh mesmo para criar a referencia ao webservice e estou tento problemas:

[code]init:
deps-jar:
wsimport-init:
wsimport-client-check-Guardiao.asmx:
wsimport-client-Guardiao.asmx:
Consider using / so that wsimport won’t do unnecessary compilation
parsing WSDL…

[WARNING] src-resolve.4.2: Error resolving component ‘s:schema’. It was detected that ‘s:schema’ is in namespace ‘http://www.w3.org/2001/XMLSchema’, but components from this namespace are not referenceable from schema document ‘file:/C:/Documents%20and%20Settings/bernardo/Meus%20documentos/NetBeansProjects/cliente/xml-resources/web-service-references/Guardiao.asmx/wsdl/172.26.50.22_8081/GuardiaoWsvc/Guardiao.asmx.wsdl#types?schema1’. If this is the incorrect namespace, perhaps the prefix of ‘s:schema’ needs to be changed. If this is the correct namespace, then an appropriate ‘import’ tag should be added to ‘file:/C:/Documents%20and%20Settings/bernardo/Meus%20documentos/NetBeansProjects/cliente/xml-resources/web-service-references/Guardiao.asmx/wsdl/172.26.50.22_8081/GuardiaoWsvc/Guardiao.asmx.wsdl#types?schema1’.
line 18 of file:/C:/Documents%20and%20Settings/bernardo/Meus%20documentos/NetBeansProjects/cliente/xml-resources/web-service-references/Guardiao.asmx/wsdl/172.26.50.22_8081/GuardiaoWsvc/Guardiao.asmx.wsdl#types?schema1

[ERROR] undefined element declaration ‘s:schema’
line 18 of file:/C:/Documents%20and%20Settings/bernardo/Meus%20documentos/NetBeansProjects/cliente/xml-resources/web-service-references/Guardiao.asmx/wsdl/172.26.50.22_8081/GuardiaoWsvc/Guardiao.asmx.wsdl

[ERROR] undefined element declaration ‘s:schema’
line 39 of file:/C:/Documents%20and%20Settings/bernardo/Meus%20documentos/NetBeansProjects/cliente/xml-resources/web-service-references/Guardiao.asmx/wsdl/172.26.50.22_8081/GuardiaoWsvc/Guardiao.asmx.wsdl

[ERROR] undefined element declaration ‘s:schema’
line 60 of file:/C:/Documents%20and%20Settings/bernardo/Meus%20documentos/NetBeansProjects/cliente/xml-resources/web-service-references/Guardiao.asmx/wsdl/172.26.50.22_8081/GuardiaoWsvc/Guardiao.asmx.wsdl

[ERROR] undefined element declaration ‘s:schema’
line 81 of file:/C:/Documents%20and%20Settings/bernardo/Meus%20documentos/NetBeansProjects/cliente/xml-resources/web-service-references/Guardiao.asmx/wsdl/172.26.50.22_8081/GuardiaoWsvc/Guardiao.asmx.wsdl

Exception in thread “main” java.lang.NullPointerException
at com.sun.tools.xjc.reader.internalizer.SCDBasedBindingSet.apply(SCDBasedBindingSet.java:237)
at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:518)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:232)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:134)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2193)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:187)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:133)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.ws.Invoker.invoke(Invoker.java:116)
at com.sun.tools.ws.WsImport.main(WsImport.java:52)
Command invoked: wsimport “C:\Arquivos de programas\Java\jdk1.6.0_04\jre\bin\java.exe” “-Djava.endorsed.dirs=C:\Arquivos de programas\NetBeans 6.1\java2\modules\ext\jaxws21\api” -classpath “C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\activation.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\FastInfoset.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\http.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\jaxb-api.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\jaxb-impl.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\jaxb-xjc.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\jaxws-api.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\jaxws-rt.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\jsr181-api.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\jsr250-api.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\saaj-api.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\saaj-impl.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\jsr173_api.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\sjsxp.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\stax-ex.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\streambuffer.jar;C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\lib\jaxws21\jaxws-tools.jar” com.sun.tools.ws.WsImport -d “C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\build\generated\wsimport\binaries” -extension -keep -s “C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\build\generated\wsimport\client” -catalog “C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\catalog.xml” “C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente/xml-resources/web-service-references/Guardiao.asmx/wsdl/172.26.50.22_8081/GuardiaoWsvc/Guardiao.asmx.wsdl” -wsdllocation http://172.26.50.22:8081/GuardiaoWsvc/Guardiao.asmx?WSDL
C:\Documents and Settings\bernardo\Meus documentos\NetBeansProjects\cliente\nbproject\jaxws-build.xml:21: wsimport failed
BUILD FAILED (total time: 2 seconds)
[/code]

olhae o wsdl

<?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"> <s:element name="ObterDadosUsuario"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="parametro" type="s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="ObterDadosUsuarioResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="ObterDadosUsuarioResult"> <s:complexType> <s:sequence> <s:element ref="s:schema" /> ...

faz pouco tempo eu fiz um webservice e a unica grande diferenca que eu vi no wsdl que eu fiz, foi porque eu dei um import no esquema dentro do wsdl

wsdl do webservice que eu fiz

[code]<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

... [/code]

e ae … cs sabem dizer se o problema eh no wsdl ou no importador? estou usando JAX-WS

vou cortar um pouco do conteudo das tag code … ficou um pouco pesado o topico … ajeito jah