I'm
created a simple webservice... on my GlassFish v2 b30 with JDK 1.6
(with endorsed libs patch )
on access
http://localhost:8080//testeWebServices/MyWebServiceService?tester
the error is:
[#|2007-01-11T17:34:48.593-0200|INFO|sun-appserver-ee9.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-1;|
parsing WSDL...
|#]
[#|2007-01-11T17:34:50.140-0200|INFO|sun-appserver-ee9.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-1;|
generating code...|#]
[#|2007-01-11T17:34:51.296-0200|INFO|sun-appserver-ee9.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-1;|
C:\temp\tmp\jax-ws56849tester\br\com\escriba\webservice\MyWebServiceService.java:63:
cannot find symbol
symbol : method
getPort(javax.xml.namespace.QName,java.lang.Class<br.com.escriba.webservice.MyWebService>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service
return (MyWebService)super.getPort(new QName(
"http://webservice.escriba.com.br/",
"MyWebServicePort"), MyWebService.class, features);
^
|#]
[#|2007-01-11T17:34:51.296-0200|INFO|sun-appserver-ee9.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-1;|1
error
|#]
[#|2007-01-11T17:34:51.296-0200|INFO|sun-appserver-ee9.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-1;|compilation
failed, errors should have been reported|#]
[#|2007-01-11T17:34:51.296-0200|INFO|sun-appserver-ee9.1|javax.enterprise.system.container.ejb|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-1;|Invoking
wsimport with
http://localhost:8080//testeWebServices/MyWebServiceService?WSDL|#]
[#|2007-01-11T17:34:51.296-0200|SEVERE|sun-appserver-ee9.1|javax.enterprise.system.container.ejb|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=7f9d90f8-8f82-432b-8328-54a0191d04ba;|wsimport
failed|#]
Class:
/*
* MyWebService.java
*
* Created on 11 de Janeiro de 2007, 11:35
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package br.com.escriba.webservice;
import javax.jws.WebMethod;
import javax.jws.WebService;
/**
*
* @author Dyego Souza Dantas Leal
*/
@WebService()
public class MyWebService {
/**
* Web service operation
*/
@WebMethod
public String ping() {
return "pong !";
}
@WebMethod
public void cadastrar(String nome) {
System.out.println("Cadastrado "+nome);
}
@WebMethod
public void cadastrar2(Pessoa pes) {
System.out.println("Cadastrado 2 "+ pes.getNome());
}
}
/*
* Pessoa.java
*
* Created on 11 de Janeiro de 2007, 11:37
*
* Identification:
* $Id$
*
* Changelog:
* $Log$
*/
package br.com.escriba.webservice;
/**
*
* @author Dyego Souza Dantas Leal
* @since
*/
public class Pessoa {
private static final long serialVersionUID = 1L;
private String nome;
/**
* Contrutor padrão
*
* @author Dyego Souza Dantas Leal
* @version 1.0,
*/
public Pessoa() {
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
}
Exists a issue ?
--
-------------------------------------------------------------------------
++ Dyego Souza Dantas Leal ++ Dep. Desenvolvimento
-------------------------------------------------------------------------
E S C R I B A I N F O R M A T I C A
***
http://www.go-java.com/blog
***
-------------------------------------------------------------------------
The only stupid question is the unasked one (somewhere in Linux's
HowTo)
Linux registred user : #230601
-- ICQ : 1647350
$ look into "my eyes" Phone : +55 041 2106-1212
look: cannot open my eyes Fax : +55 041
3296-6640
-------------------------------------------------------------------------
Reply:
dyego@escriba.com.br