[JBossWS] - How could see the endpoint the SOAP headers built by a objec
by camateusno
Hi all, Im have a problem with SOAP headers, because i dont know how see it in endpoint. Explain:
first im consume de webservice, and i see this and more:
a class SEI: QMWISeSoap
a class that provide constructors: ObjectFactory
The server requires two soap headers, these are build by ObjectFactory, and return a object JAXBElement:
/**
* Create an instance of {@link JAXBElement }{@code <}{@link TrustHeader }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://questionmark.com/QMWISe/", name = "Trust")
public JAXBElement createTrust(TrustHeader value) {
return new JAXBElement(_Trust_QNAME, TrustHeader.class, null, value);
}
Now, in a class QMWISeWebService is the call to SEI:
protected QMWISeWebService() {
try {
if (endPoint == null){
endPoint = new QMWISe().getQMWISeSoap();
}
} catch (Exception ex) {
ex.printStackTrace();
}
And by example i have a class that inherit from QMWISeWebService :
public class ParticipantData extends QMWISeWebService {
/**
* This method processes a Participant Name and a Password and checks
* whether there is a participant with the Participant Name, and if so
* whether the Password is theirs.
*
* @param participantID
* @param password
* @param status
* @param participantName
*/
public void checkParticipant(String participantName, String password,
Holder status, Holder participantID) {
endPoint.checkParticipant(participantName, password, status,
participantID);
}
The problem is that i dont know how connect the JAXBElement returned by ObjectFactory with the SEI class.
Part of SEI class is:
@WebService(name = "QMWISeSoap", targetNamespace = "http://questionmark.com/QMWISe/")
public interface QMWISeSoap {
/**
* This method provides information about the QMWISe software that is installed, including the version of the software that is installed, which build of the software is installed and a statement of Question Mark's rights under the license agreement.
*
* @return
* returns com.questionmark.qmwise.Version
*/
@WebMethod(operationName = "GetAbout", action = "http://questionmark.com/QMWISe/GetAbout")
@WebResult(name = "GetAboutResult", targetNamespace = "http://questionmark.com/QMWISe/")
@RequestWrapper(localName = "GetAbout", targetNamespace = "http://questionmark.com/QMWISe/", className = "com.questionmark.qmwise.GetAbout")
@ResponseWrapper(localName = "GetAboutResponse", targetNamespace = "http://questionmark.com/QMWISe/", className = "com.questionmark.qmwise.GetAboutResponse")
public Version getAbout();
And none method of SEI have a parameter that contain data for the SOAP header.
perhaps this is a trivial problem, but im need help. thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108591#4108591
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108591
18 years, 5 months
[JBoss Getting Started Documentation] - Re: Duke's Bank Application Problem
by PeterJ
Two options.
1) Recreate the 'default' configuration. Personally, I never use the 'default' config - the first thing I do when I download JBossAS is to rename 'default' to 'default-orig', then I make a copy of it. For example, when working with Duke's Bank, I copy it as 'bank'. (Yes, working with Seam is a pain in the @$$ in this regards because they hard-coded the 'default' config into their scripts instead of letting you specify the configuration you want to use.) Then my startup statement becomes 'run -c bank'. If you have already messed up the 'default' config, you could restore it by reinstalling JBossAS (I also always keep the zip file I downlaoded, takes just a few seconds to unzip.) Once you do this, don't forget to remodify the hsqldb-ds.xml file.
2) Undeploy the Seam booking application. If the build script does not have an undeploy option. then do this:
a) Stop the app server
a) Delete the booking ear file or directory
b) Delete the data, tmp and work directories
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108587#4108587
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108587
18 years, 5 months
[JBoss Seam] - AJAX Calls give
by birwin
I have two selectOneMenu controls on my Seam page. One uses an AJAX call to re-render the employees associated with the division. All works well the first time I change a division (Note... No matter what division I select the first time, the other control appears to re-render correctly).
The second time I change the division I get this error... No matter what division I select.
sourceId=j_id10:j_id25[severity=(ERROR 2), summary=(value is not valid), detail=(value is not valid)]
The control is re-rendered, but with incorrect information.
I was assuming that the selected item was not in the re-rendered list, so I created an Employee object with a "0" employeeID. I then made sure the employee was included in each rendered list and I made sure that employee was the one that was selected each time I changed division. That did not make a difference.
| Division :
| <h:selectOneMenu value="#{payrollExport.selectedClient}">
| <s:selectItems value="#{payrollExport.clients}" var="c" label="#{c.pluses}#{c.description}" />
| <f:converter converterId="clientConverter" />
| <a:support event="onchange" actionListener="#{payrollExport.refreshEmployees}" reRender="employees" />
| </h:selectOneMenu>
|
| Employee :
| <h:selectOneMenu id="employees" value="#{payrollExport.employee}">
| <s:selectItems value="#{payrollExport.employees}" var="e" label="#{e.lastName}, #{e.firstName}" noSelectionLabel="All Employees" />
| <f:converter converterId="employeeConverter" />
| </h:selectOneMenu>
|
I have overriden the Employee "equals" and "hashCode" methods. The equals method compares the employeeID (A unique int from a database table) and the hashCode method simply returns the employeeID. Two objects with the same employeeID should be equal.
JBoss 4.2.0.GA
Seam 1.2
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108586#4108586
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108586
18 years, 5 months