[jboss-user] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)?
rocken7
do-not-reply at jboss.com
Wed Oct 3 15:24:11 EDT 2007
Ok still confused, the docs just don't help.
Again from the top with some changes.
The ejb3 stateless bean as a webservice:
@WebService(name = "PayPalAPIAAInterface", portName = "PayPalAPIAA", serviceName = "PayPalAPIInterfaceService", targetNamespace = "urn:ebay:api:PayPalAPI", wsdlLocation="META-INF/wsdl/PayPalSvc.wsdl")
| @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
| @WebContext(contextRoot = "/report")
| @Remote
| @Stateless
| public class PaypalSoapSimulator implements PayPalAPIAAInterface { .. }
|
Here is the PayPalAPIAAInterface:
@WebService(name = "PayPalAPIAAInterface", targetNamespace = "urn:ebay:api:PayPalAPI")
| @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
| public interface PayPalAPIAAInterface { ... }
|
And here is a snippet from the wsdl:
<wsdl:service name="PayPalAPIInterfaceService">
| <wsdl:port name="PayPalAPI" binding="ns:PayPalAPISoapBinding">
| <wsdlsoap:address location="https://api-3t.sandbox.paypal.com/2.0/"/>
| </wsdl:port>
| <wsdl:port name="PayPalAPIAA" binding="ns:PayPalAPIAASoapBinding">
| <wsdlsoap:address location="https://api-aa-3t.sandbox.paypal.com/2.0/"/>
| </wsdl:port>
| </wsdl:service>
|
Now the PayPalSvc.wsdl imports valid official *.xsd files which are in the same folder and are straight from paypal (validated).
Jboss-4.0.5.GA no longer hangs, it just blows with a java.lang.OutOfMemoryError.
I have the heap space turned way up ( -Xmx1024m ) and it still blows?
Here is the server log, and there are tons of the xmlschema import lines before the crash.
2007-10-03 19:06:18,335 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/CoreComponentTypes.xsd
| 2007-10-03 19:06:18,350 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/eBLBaseComponents.xsd
| 2007-10-03 19:06:21,444 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/CoreComponentTypes.xsd
| 2007-10-03 19:06:21,460 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/eBLBaseComponents.xsd
| 2007-10-03 19:06:21,506 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/CoreComponentTypes.xsd
| 2007-10-03 19:06:21,538 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/eBLBaseComponents.xsd
| 2007-10-03 19:06:21,585 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/CoreComponentTypes.xsd
| 20 07-10-03 19:06:21,600 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/eBLBaseComponents.xsd
| 2007-10-03 19:07:17,102 ERROR [STDERR] Exception in thread "main-FastReceiver"
| 2007-10-03 19:07:17,102 ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space
|
Any ideas what is going on?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091213#4091213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091213
More information about the jboss-user
mailing list