[JBoss Web Services] - javax.xml.bind.UnmarshalException: unexpected element?
by Joseph Hwang
Joseph Hwang [http://community.jboss.org/people/aupres] created the discussion
"javax.xml.bind.UnmarshalException: unexpected element?"
To view the discussion, visit: http://community.jboss.org/message/607678#607678
--------------------------------------------------------------
I try to connect ajax client to java web service. Request SOAP is like below
<soapenv:Envelope xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws=" http://ws.aaa.com/ http://ws.aaa.com/">
<soapenv:Header/>
<soapenv:Body>
<ws:loginFunc>
<!--Optional:-->
<arg0>hwa5383</arg0>
<!--Optional:-->
<arg1>bbb</arg1>
</ws:loginFunc>
</soapenv:Body>
</soapenv:Envelope>
so, i coded ajax client. codes are
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Connect AJAX to JWS</title>
<script type="text/javascript" src="scripts/prototype.js"></script>
<script type="text/javascript" src="scripts/ws.js"></script>
<script type="text/javascript">
function login(ID,Passwd) {
var nsuri = ' http://ws.aaa.com/'; http://ws.aaa.com/';
var call = new WS.Call(' http://localhost:8080/TotalTest/WSLoginTest'); http://localhost:8080/TotalTest/WSLoginTest');
var qn_op = new WS.QName('loginFunc',nsuri);
var qn_op_resp = new WS.QName('loginFuncResponse',nsuri);
call.invoke_rpc(
qn_op,
new Array (
{name:'arg0', value: ID},
{name:'arg1', value: Passwd}), null,
function(call,envelope) {
document.getElementById('soap').innerHTML = arguments[2].escapeHTML();
}
);
}
</script>
</head>
<body>
I D : <INPUT TYPE="text" name="ID" id="ID">
Passwd : <INPUT TYPE="password" name="passwd" id="passwd">
<INPUT TYPE="button" VALUE="Sign in" onclick="login(document.getElementById('ID').value, document.getElementById('passwd').value)">
</body>
</html>
But Exception occurs. The message is
javax.xml.bind.UnmarshalException: unexpected element (uri:" http://ws.aaa.com/ http://ws.aaa.com/", local:"arg0"). Expected elements are <{}arg1>,<{}arg0>
I think java script array part has some problems.But I have no idea.
I need your advice. Thanks in advance!
Best Reagrds
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/607678#607678]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 8 months
[Beginner's Corner] - Web Application Authentication
by Amir Hadi
Amir Hadi [http://community.jboss.org/people/muty] created the discussion
"Web Application Authentication"
To view the discussion, visit: http://community.jboss.org/message/607653#607653
--------------------------------------------------------------
Hi,
first of all I wanted to mention that I am completly new in this community, so don't slap me if this is the wrong category for this kind of question! If this is the wrong category, I would ask the administrators to move this discussion to the right category.
I need to create a demonstration web application, where Users need to authenticate them self in two steps. The best result would be to achive this authentication with JAAS.
The basic two steps are:
1. Authenticate with username and password with LDAP:1. User visits a website / web application but is not authenticated
2. User is redirected to a login page and enters his username and password
3. User credentials are validated through JAAS with an LDAP LoginModule (this actually works already) --> The user is now "half" authenticated
4. The user receives a kind of a token / transaction number on his mobilephone. He needs to enter this token before is fully authenticated
2. The user can access a special page, where he can enter his token1. The token (which is generated and stored in the first step) is validated. This can be achived through JDNI access on the directory service
2. If the token is valid, the user is fully authenticated
How would you implement that? My first idea is: I'll create a web application with two security constraints in web.xml. One for the complete protected content (url-pattern: /*) with the auth-constraint set to a role like "FullAuthenticated" and second security constraint for the token page (url-pattern: /token.jsp) with auth-constraint set to a role like "HalfAuthenticated". This would allow the user to login with his username and password and (if successfully (half) authenticated) to access the token.jsp page, but not the other protected content of the application. After his token validation, he can access the complete application.
Does that sound naive / stupid / impossible or can this work? Any comments? How can I add a role (in the directory there are no roles defined) to a user in the JAAS LoginModule? How can I tell JBoss to reference the jaas.config file?
Any help is much apprechiated.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/607653#607653]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 8 months
[jBPM] - N number of subprocesses and JBPM 5
by Amin MC
Amin MC [http://community.jboss.org/people/aminmc] created the discussion
"N number of subprocesses and JBPM 5"
To view the discussion, visit: http://community.jboss.org/message/607617#607617
--------------------------------------------------------------
Hi
I was wondering whether it would be possible to model the following using JBPM 5/BPMN with the drools flow eclipse editor.
I have a process definition and there can be n number of events signalled which for each event should instantiate a sub process (sub process has other constructs) and essentially once all of the sub process have completed then the overall business process completes. Each sub process can have signals that complete the sub process. I was wondering what is the best way to represent this in a graph. I was looking at multi instance loop but it seems as though I can't use a signal event node inside the multi instance node. I also need to determine when all sub process are complete and then complete the overall process.
I'm not looking for code examples but more of advice on what approach to take, should i use multi instance node or use sub process or embedded process node in the graph. Also how do i send in a message for a particular sub process. Is it possible to use conditional message event for this case?
Hope this made sense and any help would be appreciated.
Cheers
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/607617#607617]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 8 months
[jBPM] - Completing join's any activity obsoletes other active activities in Nested Fork/Join Workflow
by Puneet Garg
Puneet Garg [http://community.jboss.org/people/puneet2607] created the discussion
"Completing join's any activity obsoletes other active activities in Nested Fork/Join Workflow"
To view the discussion, visit: http://community.jboss.org/message/607609#607609
--------------------------------------------------------------
Completing any join activity obsoletes other active activities in Nested Fork/Join Workflow
Hi,
I am using JBPM4.4. I have attached a workflow, which I am using.
In given workflow I am using multiple forks and joins.
*Workflow Description:*
1. activity3 I am using fork, so by completing activity3 it will create activity6 and activiy9.
2. completing activity6 it will create activity14 and activity15.
3. completing activity9 it will create activity16 and actvity17.
4. and activity15 are connected to a separate ORJOIN (i.e. join with multiplicity with 1). So when either of activity gets complete will create activity20.
5. activity16 and activity17 connected to a separate ORJOIN. So when either of activity gets complete will create activity21.
6. and activity21 connected to a ORJOIN. So when either of activity gets complete will create activity38.
7. activity38 gets complete finishes instance.
*Problem:*
At time when activity14, activty15, activity16 and acivtiy17 are active, completing any one activity marks rest other activities obsolete. In case I am completing activity14 then it should only mark activity15 obsolete not activity16 and activity17.
It is trying to handle join’s dangling nodes. But finds all active nodes as dangling nodes.
*Analysis:* I looked at JoinActivity implementation. To get dangling nodes code is written to get all executions of current parent. Which gives all active nodes.
Do I need to handle in different way to get expected result? Or it’s issue with JBPM4.4?
Let me know in case more info needed. Any help appricated.
Thanks,
Puneet Garg
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/607609#607609]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 8 months