You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by yduchesne <ya...@yahoo.com> on 2009/11/27 19:07:26 UTC
ejb 3.0 web services in Geronimo
I am trying to generate a web service from a stateless EJB. Deployment works
but I can't access de WSDL, and I have no trace in the log files that the
EJB was exported as a web service. I do not provide a WSDL since I am
following the code first model and expecting Geronimo to generate the WSDL
internally when the myServiceUrl?wsdl is invoked - just as in the gold old
XFire days.
My problem is that I can't access the WSDL file, at the following URL (which
corresponds to what I have read in the web services tutorial):
http://localhost:8080/CalculatorService/CalculatorServicePortType?wsdl.
I get this strange 400 HTTP error when trying to access the WSDL:
XSSXSRFFilter blocked HttpServletRequest due to invalid FORM content.
I have defined a service interface, and implemented a stateless EJB. Here
they are:
- Interface
@Remote
@WebService(name = "CalculatorServicePortType")
public interface CalculatorService {
public int add(int num1, int num2);
}
- EJB
@Stateless(description="Provides calculation methods",
name="CalculatorService")
//@Singleton(description="Provides calculation methods",
name="CalculatorService")
@WebService(
portName = "CalculatorServicePort",
serviceName = "CalculatorService",
endpointInterface="org.geronimotest.CalculatorService")
@SOAPBinding(style=SOAPBinding.Style.RPC)
public class CalculatorServiceImpl implements CalculatorService{
public int add(int num1, int num2) {
return num1+num2;
}
}
I'm sure my problem relates to some subtle details, but cannot figure these
out... Any help welcome
--
View this message in context: http://old.nabble.com/ejb-3.0-web-services-in-Geronimo-tp26545355s134p26545355.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: ejb 3.0 web services in Geronimo
Posted by Donald Woods <dw...@apache.org>.
The XSSXSRFFilter is a servlet filter that we use to block XSS and XSRF
security attacks on the webapps we provide in the server. The code has
to be included in a web.xml as a servlet filter, so it should not be in
the servlet chain for user apps.... Can you give more details on your app?
-Donald
yduchesne wrote:
> 2.1.4 (latest stable release)
>
>
> kevan wrote:
>>
>> On Nov 27, 2009, at 1:07 PM, yduchesne wrote:
>>
>>> I am trying to generate a web service from a stateless EJB. Deployment
>>> works
>>> but I can't access de WSDL, and I have no trace in the log files that the
>>> EJB was exported as a web service. I do not provide a WSDL since I am
>>> following the code first model and expecting Geronimo to generate the
>>> WSDL
>>> internally when the myServiceUrl?wsdl is invoked - just as in the gold
>>> old
>>> XFire days.
>>>
>>> My problem is that I can't access the WSDL file, at the following URL
>>> (which
>>> corresponds to what I have read in the web services tutorial):
>>> http://localhost:8080/CalculatorService/CalculatorServicePortType?wsdl.
>>>
>>> I get this strange 400 HTTP error when trying to access the WSDL:
>>> XSSXSRFFilter blocked HttpServletRequest due to invalid FORM content.
>> Hmm. What version of Geronimo?
>>
>> --kevan
>>
>>
>>
>
Re: ejb 3.0 web services in Geronimo
Posted by yduchesne <ya...@yahoo.com>.
2.1.4 (latest stable release)
kevan wrote:
>
>
> On Nov 27, 2009, at 1:07 PM, yduchesne wrote:
>
>>
>> I am trying to generate a web service from a stateless EJB. Deployment
>> works
>> but I can't access de WSDL, and I have no trace in the log files that the
>> EJB was exported as a web service. I do not provide a WSDL since I am
>> following the code first model and expecting Geronimo to generate the
>> WSDL
>> internally when the myServiceUrl?wsdl is invoked - just as in the gold
>> old
>> XFire days.
>>
>> My problem is that I can't access the WSDL file, at the following URL
>> (which
>> corresponds to what I have read in the web services tutorial):
>> http://localhost:8080/CalculatorService/CalculatorServicePortType?wsdl.
>>
>> I get this strange 400 HTTP error when trying to access the WSDL:
>> XSSXSRFFilter blocked HttpServletRequest due to invalid FORM content.
>
> Hmm. What version of Geronimo?
>
> --kevan
>
>
>
--
View this message in context: http://old.nabble.com/ejb-3.0-web-services-in-Geronimo-tp26545355s134p26610426.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: ejb 3.0 web services in Geronimo
Posted by Kevan Miller <ke...@gmail.com>.
On Nov 27, 2009, at 1:07 PM, yduchesne wrote:
>
> I am trying to generate a web service from a stateless EJB. Deployment works
> but I can't access de WSDL, and I have no trace in the log files that the
> EJB was exported as a web service. I do not provide a WSDL since I am
> following the code first model and expecting Geronimo to generate the WSDL
> internally when the myServiceUrl?wsdl is invoked - just as in the gold old
> XFire days.
>
> My problem is that I can't access the WSDL file, at the following URL (which
> corresponds to what I have read in the web services tutorial):
> http://localhost:8080/CalculatorService/CalculatorServicePortType?wsdl.
>
> I get this strange 400 HTTP error when trying to access the WSDL:
> XSSXSRFFilter blocked HttpServletRequest due to invalid FORM content.
Hmm. What version of Geronimo?
--kevan