Hi Sameer,
I still have problem for adding services (adding
registry).
My service can be correctly run and deployed. That
means that it can correctly display the page:
http://localhost:8080/SmartTransducerServices/SmartTransducerServices?WSDL
But I can not add service to registry or add service:
The error messages are described as follows:
Start
http://localhost:8080/SmartTransducerServices/SmartTransducerServices?WSDL
07/25/2006 11:03:33: Parsing WSDL. Please wait ..WSDL
-
http://localhost:8080/SmartTransducerServices/SmartTransducerServices?WSDL
07/25/2006 11:03:33: Error Parsing WSDL. Please see
the log file for details. Exception = modeler error:
invalid entity name: "ReadServiceRequest" (in
namespace: "
http://localhost/SmartTransducerServices")
When I watch server, the log information is descripbed
as:
Failure serving WSDL for web service
SmartTransducerServices
java.io.FileNotFoundException:
C:\Documents%20and%20Settings\Eugene%20Song\SmartTransducerServices\build\web\WEB-INF\wsdl\TimDiscoveryServiceResponse.xsd
(The system cannot find the path specified)
The error massge indicates that there are some
problems for import schemas:
ReadServiceRequest.xsd,
TimDiscoveryServiceResponse.xsd
.
So I think that the problem still is schema import.
Could you test more my wsdl and schema file I sent
before and find what problem? I really need your help.
Thank you so much,
Yuyin
--- Sameer Tyagi <Sameer.Tyagi_at_Sun.COM> wrote:
---------------------------------
I did a quick test, looks like you are missing a
schema file
SmartTransducerML.xsd (The system cannot find the file
specified)
However it seems this schema is not used anywhere in
the WSDL. When Icomment
out the line referencing it in the WSDL it works fine.
wsimport-init:
Created
dir:F:\workspace\JavaApplication3\build\generated\wsimport\client
Created dir:
F:\workspace\JavaApplication3\build\classes
wsimport-client-check-SmartTransducerServices:
wsimport-client-SmartTransducerServices:
Note:F:\workspace\JavaApplication3\build\generated\wsimport\client\test\ObjectFactory.javauses
unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
BUILD SUCCESSFUL (total time: 8 seconds)
/s
yuyin Song wrote:
Hi Sameer,Please find my wsdl and schema files in
theattachment(wsdl.piz). You should rename wsdl.piz
intowsdl.zip and then extend them. Please try it and
seewhat the problem is. Thank you so
much.Regards,Yuyin--- Sameer Tyagi
<Sameer.Tyagi_at_Sun.COM> wrote:
I m not sure I understand but if you
additionallyinclude the schemas in the WAR andhave the
WSDL point to the schemas relatively thisshould work.
For example the WSDL shouldhave something
like<xsd:importnamespace="
http://localhost/SmartTransducerServices"schemaLocation="ReadServiceRequest.xsd"/>
Look at the examples (though a bit dated ) here
http://java.sun.com/developer/technicalArticles/xml/jaxrpcpatterns3/
Hope this helps/syuyin Song wrote:
Hi Sameer,Thanks. I think that problem is about
location ofschema file in the xs:import. for example,
<xs:importnamespace="
http://localhost/SmartTransducerServices"
schemaLocation="ReadServiceRequest.xsd"/>.This is
relatve location, not a absolutely
location.
Actually I use wsdl file in the directory
C:\Documents
and
Settings\EugeneSong\WSDL\SmartTransducerServices.wsdl,
thisdirectiory also includes all XML schema file
related
to wsdl file.I use the same as
targetNamespace="
http://localhost/SmartTransducerServices
for all XML schema files and wsdl file.When I use this
wsdl file to generate web service,
the
new wsdl file and all XML schema files are
generated
respectively in the directory:C:\Documents and
Settings\EugeneSong\SmartTransducerServices\web\WEB-INF\wsdl
andC:\Documents and
Settings\EugeneSong\SmartTransducerServices\build\web\WEB-INF\wsdlWhen
I successfully depoly web service, It
correctly
display wsdl file in the web
site:
http://localhost:8080/SmartTransducerServices/SmartTransducerServices?WSDL.
But the location of XML schema file in this wsdl
file
is changed into the following. <xsd:import
namespace="
http://localhost/SmartTransducerServices"schemaLocation="
http://sdage8.sensor.intranet:8080/SmartTransducerServices/SmartTransducerServices/__container$publishing$subctx/WEB-INF/wsdl/ReadServiceRequest.xsd"
xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/"xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
/> When I add web service from wsdl in this web
address,
Web Server can not find the schema file. That is
main
problem. I hope that my description is clear.
Myquestion is how to set the location of XML schema
file
in the wsdl for my special case? Thanks a
lot.Regards,Yuyin--- Sameer Tyagi
<Sameer.Tyagi_at_Sun.COM> wrote:
There is a problem with the WSDL you are using. Itmay
be because it has schemas thatit references that are
not packaged with it.Can you attach your wsdl here
?/syuyin Song wrote:
Hi Jitu,Thanks. I tried to use NetBean 5.5. It looks
like
not
support web service generated from WSDL. When wecreate
web service, the options do not include
web
services generated from WSDL. I am not sure why,
and
feel strange. Actually, NetBean has supported
webservice generated from WSDL. That is why I used
NetBet
5.0 not 5.5. What is your idea for that?My problem is
error for add service. I
successfully
deploy web service and display web page:
http://localhost/SmartTransducerServices/build/web/WEB-INF/wsdl/SmartTransducerServices?wsdl
When I add web service in rumtime, the
errorinformation was generated as follows:Approach 1:
Add service using local wsdl fileC:/Documents and
Settings/Eugene
Song/SmartTransducerServices/web/WEB-INF/wsdl/SmartTransducerServices.wsdl
The error information is as foloows:
http://localhost:8080/SmartTransducerServices/SmartTransducerServices?WSDL
Start file:///C:\Documents and Settings\Eugene
Song\SmartTransducerServices\web\WEB-INF\wsdl\SmartTransducerServices.wsdl
07/21/2006 09:17:09: Parsing WSDL. Please wait
..WSDL
- file:/C:/Documents and Settings/Eugene
Song/SmartTransducerServices/web/WEB-INF/wsdl/SmartTransducerServices.wsdl
07/21/2006 09:17:09: Finished parsing WSDL.
07/21/2006
09:17:20: Starting web service client
creation...07/21/2006 09:17:27: Error occured while
creating
the
proxy!Approach 2: Add service using
http://localhost/SmartTransducerServices/build/web/WEB-INF/wsdl/SmartTransducerServices?wsdl
The error information is as follows:Start
http://localhost:8080/SmartTransducerServices/SmartTransducerServices?WSDL
07/21/2006 09:16:27: Parsing WSDL. Please wait
=== message truncated ===
---------------------------------------------------------------------To
unsubscribe, e-mail:
users-unsubscribe_at_jax-ws.dev.java.netFor additional
commands, e-mail: users-help_at_jax-ws.dev.java.net
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com