[JBossWS] - SOAP Address in wsdl file
by MmarcoM
hi all,
is there any way to specify the proper URL for an EJB3 deployed as a webservice?
in my wsdl, URL is *ALWAYS* at port 8080, while my jboss is runnign at port 9080.....
here's wsdl of EJB3 deployed as webservice
| <definitions name="WSFacade" targetNamespace="http://org.jboss.ws/ejb3ws">
| ?
| <types>
| ?
| <schema elementFormDefault="qualified" targetNamespace="http://core.j2me.mm.com/jaws">
| <import namespace="http://org.jboss.ws/ejb3ws"/>
| ?
| <complexType name="Agency">
| ?
| <sequence>
| <element name="emailAddress" nillable="true" type="string"/>
| <element name="id" type="int"/>
| <element name="jobHunter" nillable="true" type="string"/>
| <element name="name" nillable="true" type="string"/>
| <element name="phoneNumber" nillable="true" type="string"/>
| <element name="site" nillable="true" type="string"/>
| </sequence>
| </complexType>
| </schema>
| ?
| <schema elementFormDefault="qualified" targetNamespace="http://org.jboss.ws/ejb3ws">
| <import namespace="http://core.j2me.mm.com/jaws"/>
| ?
| <complexType name="testWebServiceMethod">
| ?
| <sequence>
| <element maxOccurs="unbounded" minOccurs="0" name="Agency_1" nillable="true" type="ns2:Agency"/>
| </sequence>
| </complexType>
| ?
| <complexType name="testWebServiceMethodResponse">
| ?
| <sequence>
| <element maxOccurs="unbounded" minOccurs="0" name="result" nillable="true" type="ns2:Agency"/>
| </sequence>
| </complexType>
| <element name="testWebServiceMethod" type="tns:testWebServiceMethod"/>
| <element name="testWebServiceMethodResponse" type="tns:testWebServiceMethodResponse"/>
| </schema>
| </types>
| ?
| <message name="WSRemoteSEI_testWebServiceMethodResponse">
| <part element="tns:testWebServiceMethodResponse" name="result"/>
| </message>
| ?
| <message name="WSRemoteSEI_testWebServiceMethod">
| <part element="tns:testWebServiceMethod" name="parameters"/>
| </message>
| ?
| <portType name="WSRemoteSEI">
| ?
| <operation name="testWebServiceMethod">
| <input message="tns:WSRemoteSEI_testWebServiceMethod"/>
| <output message="tns:WSRemoteSEI_testWebServiceMethodResponse"/>
| </operation>
| </portType>
| ?
| <binding name="WSRemoteSEIBinding" type="tns:WSRemoteSEI">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
| ?
| <operation name="testWebServiceMethod">
| <soap:operation soapAction=""/>
| ?
| <input>
| <soap:body use="literal"/>
| </input>
| ?
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
| </binding>
| ?
| <service name="WSFacade">
| ?
| <port binding="tns:WSRemoteSEIBinding" name="WSRemoteSEIPort">
| <soap:address location="http://WorldCorp:8080/ejbJ2me-app-1/TestFacade"/>
| </port>
| </service>
| </definitions>
|
is there any way to customize the soap address?
thanks in advance and regarsd
Marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979901#3979901
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979901
19 years, 8 months
[JBoss Seam] - Re: Adding/Persisting A Record Problem...
by johnurban
Getting closer. I removed the room dropdown lookup logic from the jsp and it complianed about calling personEdtor.poo. I changed it back to personEditor.create and it added the record. So it appears there is something that occurs when the dropdown room lookup logic is inserted in the jsf:
JSF:
| <h:selectOneMenu value="#{roomFinder.example}" converter="org.jboss.seam.EntityConverter">
| <f:selectItems value="#{roomListByOrganization}" />
| </h:selectOneMenu>
|
|
RoomFinderBean
| package testSeam;
|
| // Generated Oct 6, 2006 12:55:26 AM by Hibernate Tools 3.2.0.beta7
|
| import java.util.HashMap;
| import java.util.List;
| import java.util.ArrayList;
| import java.util.Iterator;
| import java.util.Map;
| import java.util.Map.Entry;
| import java.util.TreeMap;
| import javax.ejb.Remove;
| import javax.ejb.Stateful;
| import javax.interceptor.Interceptors;
| import javax.persistence.EntityManager;
| import javax.persistence.Query;
| import javax.faces.component.UISelectItems;
| import javax.faces.model.SelectItem;
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.annotations.Destroy;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Out;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.RequestParameter;
| import org.jboss.seam.annotations.Scope;
| import org.jboss.seam.annotations.Factory;
|
| import org.jboss.seam.selectitems.annotations.*;
|
| import org.jboss.seam.annotations.datamodel.DataModel;
| import org.jboss.seam.annotations.datamodel.DataModelSelection;
| import org.jboss.seam.ejb.SeamInterceptor;
|
| @Name("roomFinder")
| @Stateful
| @Scope(ScopeType.SESSION)
| @Interceptors(SeamInterceptor.class)
| public class RoomFinderBean implements RoomFinder {
|
| @Out
| private Room example = new Room();
|
| public Room getExample() {
| return example;
| }
|
| @In(required=false)
| private Login login;
|
| private int pageNumber = 0;
| private int pageSize = 25;
|
| public void setPageSize(int size) {
| pageSize = size;
| }
|
| public int getPageSize() {
| return pageSize;
| }
|
| public boolean isPreviousPage() {
| return roomList != null && pageNumber > 0;
| }
|
| public boolean isNextPage() {
| return roomList != null && roomList.size() == pageSize;
| }
|
| @DataModel
| private List<Room> roomList;
|
| // @Out
| // @SelectItems(valueStrategy=SelectItems.Strategy.OBJECT, labelMethod="getname")
| // private List<Room> roomListByOrganization;
| @Out
| @SelectItems(label="name")
| private List<Room> roomListByOrganization;
|
| @DataModelSelection
| private Room selectedRoom;
|
| @In(create = true)
| private EntityManager entityManager;
|
| private void executeQuery() {
| Map<String, Object> parameters = new HashMap<String, Object>();
| StringBuffer queryString = new StringBuffer();
| if (example.getId() != 0) {
| queryString.append(" and room.id = :id");
| parameters.put("id", example.getId());
| }
| if (example.getName() != null && example.getName().length() > 0) {
| queryString.append(" and room.name like :name");
| parameters.put("name", '%' + example.getName() + '%');
| }
| if (example.getOrganizationId() != 0) {
| queryString.append(" and room.organizationId = :organizationId");
| parameters.put("organizationId", example.getOrganizationId());
| }
| if (example.getCapacity() != 0) {
| queryString.append(" and room.capacity = :capacity");
| parameters.put("capacity", example.getCapacity());
| }
| if (queryString.length() == 0) {
| queryString.append("select room from Room room");
| } else {
| queryString.delete(0, 4).insert(0,
| "select room from Room room where");
| }
|
| if (order != null) {
| queryString.append(" order by room.").append(order);
| if (descending)
| queryString.append(" desc");
| }
|
| Query query = entityManager.createQuery(queryString.toString());
| for (Entry<String, Object> param : parameters.entrySet()) {
| query.setParameter(param.getKey(), param.getValue());
| }
|
| roomList = (List<Room>) query.setMaxResults(pageSize).setFirstResult(
| pageSize * pageNumber).getResultList();
| }
|
| @SuppressWarnings("unchecked")
| @Factory("roomListByOrganization")
| public void getRoomListByOrganization() { // f:selectItems value
| Map<String, Object> parameters = new HashMap<String, Object>();
| StringBuffer queryString = new StringBuffer();
| Users loggedInUser = login.getInstance();
|
| queryString.append(" and room.organizationId = :organizationId");
| parameters.put("organizationId", loggedInUser.getOrganizationId());
|
| if (queryString.length() == 0) {
| queryString.append("select room from Room room");
| } else {
| queryString.delete(0, 4).insert(0,
| "select room from Room room where");
| }
|
| if (order != null) {
| queryString.append(" order by room.").append(order);
| if (descending)
| queryString.append(" desc");
| }
|
| Query query = entityManager.createQuery(queryString.toString());
| for (Entry<String, Object> param : parameters.entrySet()) {
| query.setParameter(param.getKey(), param.getValue());
| }
| roomListByOrganization = query.getResultList();
|
| List selectItems=new ArrayList();
| for (Iterator iterator = roomListByOrganization.iterator(); iterator.hasNext();)
| {
| Room value = (Room)iterator.next();
| SelectItem item = new SelectItem(value, value.getName());
| selectItems.add(item);
| }
|
| roomListByOrganization = selectItems;
|
| // return roomListByOrganization;
| }
|
| public String findFirstPage() {
| pageNumber = 0;
| executeQuery();
| return null;
| }
|
| public String findNextPage() {
| pageNumber++;
| executeQuery();
| return null;
| }
|
| public String findPreviousPage() {
| pageNumber--;
| executeQuery();
| return null;
| }
|
| public void refresh() {
| if (roomList != null)
| executeQuery();
| }
|
| public String clear() {
| roomList = null;
| example = new Room();
| return null;
| }
|
| public Room getSelection() {
| return entityManager.merge(selectedRoom);
| }
|
| @Destroy
| @Remove
| public void destroy() {
| }
|
| private String order;
|
| private boolean descending = false;
|
| @RequestParameter
| private String orderBy;
|
| public String reorder() {
| if (orderBy.equals(order)) {
| descending = !descending;
| } else {
| descending = false;
| }
| order = orderBy;
| executeQuery();
| return null;
| }
|
| }
|
What am I missing here?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979898#3979898
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979898
19 years, 8 months
[JBoss jBPM] - StartersProcess - task assigned to null, null
by jstachera
I deployed the StartersProcess from jBPM Getting Started and after the state 'Receive Return' I got a message:
anonymous wrote : New tasks have been assigned to: null, null.
(the next step in the process is fork node).
My question is why I don't have information about next users which were assigned to the task (bert, ernie) ?
I have looked into the code and I found that next assigned user is retrieved by: taskAssignLog.getActorId()
if (assignmentLogs.size() > 1) {
| String msg = "New tasks have been assigned to: ";
| Iterator iter = assignmentLogs.iterator();
| while (iter.hasNext()) {
| TaskAssignLog taskAssignLog = (TaskAssignLog) iter.next();
| msg += taskAssignLog.getActorId();
| if (iter.hasNext())
| msg += ", ";
| }
unfortunatelly that method returns null, but if I use getTaskNewActorId() instead, it would be ok:
so another question is what is the difference between following methods:
taskAssignLog.getActorId()
| taskAssignLog.getTaskNewActorId()
| taskAssignLog.getTaskOldActorId()
??
BR,
Jurek
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979893#3979893
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979893
19 years, 8 months
[JBoss Portal] - Login / Logout & Password Reset Strategies
by 733nb
In reviewing the Portal 2.6 mockup screens it looks like you intent to move the login page to a portlet. - This is a good thing ;-) I have a few questions about your Login / Logout & Password Reset Strategies:
1. What is your strategy for logging out? Do you plan on returning the user to the default portal page or will the user be returned to a ?login? screen that is currently being used in portal 2.4.0 version?
2. Will the developer be able to specify where the logout action will take the user? Example, if the user log?s out, I would want them to go to the default portal page. If the session time?s out, I want the user to go to an error page or have a popup window indicating the session timed out.
3. In creating a user, I noticed fields for asking security questions. Do you plan on implementing password-reset strategy with security questions in the 2.6 release?
Any insight would be greatly appreciated...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979887#3979887
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979887
19 years, 8 months
[JBoss Seam] - Re: problem in a simple seam application
by mnrz
RESOLVED
Hi All
after many toiling I could resolve the problem. it is something bizarre!!!
in the persistence.xml I put following property because I am using MySql:
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
|
but after googling and surfing many pages (maybe all the web ;) ) I found a document in german language and I could understands only its codes and I see they used following property with MySql Database connection:
| <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
|
and now it is working, I dont understand why we should use HSQLDialect rather than MySQLDialect whereas we are going to connect to mysql ???
if anyone knows I am looking forward to know as well.
any way, Thank you all people participating in this thread and I appreciate every comment you leave.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979886#3979886
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979886
19 years, 8 months