[JBossWS] - Re: webParameter is null
by florian79
the generated WSDL:
<definitions name='TheService' targetNamespace='http://www.tai.it/TheService' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://www.tai.it/TheService' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
| <types>
| <xs:schema targetNamespace='http://www.tai.it/TheService' version='1.0' xmlns:tns='http://www.tai.it/TheService' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
| <xs:element name='getHalloWorld' type='tns:getHalloWorld'/>
| <xs:element name='getHalloWorldResponse' type='tns:getHalloWorldResponse'/>
| <xs:element name='sayHallo' type='tns:sayHallo'/>
| <xs:element name='sayHalloResponse' type='tns:sayHalloResponse'/>
| <xs:complexType name='getHalloWorld'/>
| <xs:complexType name='getHalloWorldResponse'>
|
| <xs:sequence>
| <xs:element minOccurs='0' name='return' type='xs:string'/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name='sayHallo'>
| <xs:sequence>
| <xs:element name='arg0' type='xs:int'/>
| </xs:sequence>
| </xs:complexType>
|
| <xs:complexType name='sayHalloResponse'>
| <xs:sequence>
| <xs:element minOccurs='0' name='return' type='xs:string'/>
| </xs:sequence>
| </xs:complexType>
| </xs:schema>
| </types>
| <message name='TheServicePortType_getHalloWorldResponse'>
| <part element='tns:getHalloWorldResponse' name='getHalloWorldResponse'></part>
|
| </message>
| <message name='TheServicePortType_sayHalloResponse'>
| <part element='tns:sayHalloResponse' name='sayHalloResponse'></part>
| </message>
| <message name='TheServicePortType_sayHallo'>
| <part element='tns:sayHallo' name='sayHallo'></part>
| </message>
| <message name='TheServicePortType_getHalloWorld'>
| <part element='tns:getHalloWorld' name='getHalloWorld'></part>
|
| </message>
| <portType name='TheServicePortType'>
| <operation name='getHalloWorld' parameterOrder='getHalloWorld'>
| <input message='tns:TheServicePortType_getHalloWorld'></input>
| <output message='tns:TheServicePortType_getHalloWorldResponse'></output>
| </operation>
| <operation name='sayHallo' parameterOrder='sayHallo'>
| <input message='tns:TheServicePortType_sayHallo'></input>
| <output message='tns:TheServicePortType_sayHalloResponse'></output>
|
| </operation>
| </portType>
| <binding name='TheServicePortTypeBinding' type='tns:TheServicePortType'>
| <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
| <operation name='getHalloWorld'>
| <soap:operation soapAction=''/>
| <input>
| <soap:body use='literal'/>
| </input>
|
| <output>
| <soap:body use='literal'/>
| </output>
| </operation>
| <operation name='sayHallo'>
| <soap:operation soapAction=''/>
| <input>
| <soap:body use='literal'/>
| </input>
|
| <output>
| <soap:body use='literal'/>
| </output>
| </operation>
| </binding>
| <service name='TheService'>
| <port binding='tns:TheServicePortTypeBinding' name='TheServiceSOAP'>
| <soap:address location='http://192.168.1.22:8080/TheServiceImplService/TheServiceImpl'/>
| </port>
|
| </service>
| </definitions>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064531#4064531
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064531
19Â years
[JBoss jBPM] - Re: Error introduced in 3.2.1
by rgullett
Sorry about that. I think this one looks better. Note that the ActionHandler class goes in a separate file.
package com.jbpm.test;
| import java.util.HashMap;
| import java.util.Map;
|
| import junit.framework.TestCase;
|
| import org.dom4j.Element;
| import org.jbpm.graph.def.ProcessDefinition;
| import org.jbpm.graph.exe.ProcessInstance;
| import org.jbpm.graph.node.ProcessState;
| import org.jbpm.graph.node.SubProcessResolver;
|
| public class JBPMDemoTestCase extends TestCase {
|
| public void testJbpm() {
| String className = DoNothingActionHandler.class.getName();
| ProcessInstance processInstance = initProcessInstance();
| assertEquals("Instance is in wrong state", "start", processInstance.getRootToken()
| .getNode().getName());
| processInstance.signal();
|
| }
|
| private ProcessInstance initProcessInstance() {
| MapBasedProcessRepository mapBasedProcessRepository = new MapBasedProcessRepository();
| ProcessState.setDefaultSubProcessResolver(mapBasedProcessRepository);
| ProcessDefinition subProcessDefinition =
| ProcessDefinition.parseXmlString(
| "<process-definition"
| + " xmlns='urn:jbpm.org:jpdl-3.2' name='subProcessName'>"
| + "<start-state name='start'>"
| + "<transition name='' to='subProcess Node 1'></transition>"
| + "</start-state>"
| + "<end-state name='subProcessEndState'></end-state>"
| + "<node name='subProcess Node 1'>"
| + "<action class='com.jbpm.test.DoNothingActionHandler'></action>"
| + "<transition name='' to='subProcessEndState'></transition>"
| + "</node>"
| + "</process-definition>");
|
| mapBasedProcessRepository.add(subProcessDefinition);
|
| ProcessDefinition processDefinition =
| ProcessDefinition.parseXmlString(
| "<process-definition xmlns='' name='processName'>"
| + "<start-state name='start'>"
| + "<transition name='' to='node 1'></transition>"
| + "</start-state>"
| + "<end-state name='superProcessEnd'></end-state>"
| + "<process-state name='processState'>"
| + "<sub-process name='subProcessName' />"
| + "<transition name='' to='node 2'></transition>" + "</process-state>"
| + "<node name='node 2'>"
| + "<transition name='' to='superProcessEnd'></transition>"
| + "<action class='com.jbpm.test.DoNothingActionHandler'></action>"
| + "</node>"
| + "<node name='node 1'>"
| + "<action class='com.jbpm.test.DoNothingActionHandler'></action>"
| + "<transition name='' to='processState'></transition>"
| + "</node>"
| + "</process-definition>");
|
| mapBasedProcessRepository.add(processDefinition);
|
|
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
| return processInstance;
| }
|
| private static class MapBasedProcessRepository implements SubProcessResolver {
|
| protected MapBasedProcessRepository() {}
|
| private Map<String, ProcessDefinition> processes = new HashMap<String, ProcessDefinition>();
|
| public void add(ProcessDefinition processDefinition) {
| processes.put(processDefinition.getName(), processDefinition);
| }
|
| public ProcessDefinition findSubProcess(Element subProcessElement) {
| String processName = subProcessElement.attributeValue("name");
| return processes.get(processName);
| }
|
| }
|
|
| }
|
| package com.jbpm.test;
|
| import org.jbpm.graph.def.ActionHandler;
| import org.jbpm.graph.exe.ExecutionContext;
|
| public class DoNothingActionHandler implements ActionHandler {
| public DoNothingActionHandler() {
|
| }
|
| /**
| * @inheritDoc
| */
| public void execute(ExecutionContext executionContext) throws Exception {
| executionContext.leaveNode();
| }
| }
|
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064530#4064530
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064530
19Â years
[JBoss Seam] - Seam-gen "seam setup" problem
by Stateless Bean
Hi,
I tryed to create new seam project, but still have some problem.
I'm in cmd command line in seam folder:
D:\jboss-seam-1.2.1.GA>
and like in docs write:
seam setup
and I get:
anonymous wrote :
| Microsoft Windows XP [Wersja 5.1.2600]
| (C) Copyright 1985-2001 Microsoft Corp.
|
| D:\jboss-seam-1.2.1.GA>seam setup
| Unknown argument: -
| ant [options] [target [target2 [target3] ...]]
| Options:
| -help, -h print this message
| -projecthelp, -p print project help information
| -version print the version information and exit
| -diagnostics print information that might be helpful to
| diagnose or report problems.
| -quiet, -q be extra quiet
| -verbose, -v be extra verbose
| -debug, -d print debugging information
| -emacs, -e produce logging information without adornments
| -lib specifies a path to search for jars and classes
| -logfile use given file for log
| -l ''
| -logger the class which is to perform logging
| -listener add an instance of class as a project listener
| -noinput do not allow interactive input
| -buildfile use given buildfile
| -file ''
| -f ''
| -D= use value for given property
| -keep-going, -k execute all targets that do not depend
| on failed target(s)
| -propertyfile load all properties from file with -D
| properties taking precedence
| -inputhandler the class which will handle input requests
| -find (s)earch for buildfile towards the root of
| -s the filesystem and use it
| -nice number A niceness value for the main thread:
| 1 (lowest) to 10 (highest); 5 is the default
| -nouserlib Run ant without using the jar files from
| ${user.home}/.ant/lib
| -noclasspath Run ant without using CLASSPATH
|
|
| D:\jboss-seam-1.2.1.GA>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064527#4064527
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064527
19Â years