[JBossWS] - Attachments with SOAP
by sidgod
Hi,
I am kind of new to Web Services and this is what i am using right now :
JBOSS AS 4.0.4.GA, JBoss WS 1.2 and jdk 1.5.12. I am trying to get SOAP with attachments working. I saw one MTOP example that comes with JBOSS WS 1.2 and was trying to do the same.
I am taking DataHandler as one of the inputs to my method, i am not providing anything in configuration file to WSTools while building the application JAR.
so API looks like:
public void transferFile(String msg, WrappedBean handle) { }
Can somebody please tell me why is this not working and whether anything else needs to be done or some other alternative to get Attachments working with SOAP ?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123951#4123951
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123951
18 years, 4 months
[JBoss Seam] - Re: Beginner: Bind SelectOneMenu to @onetoone entity object
by lazar.mihai
To be honest I'm glad you opened up the discussion regarding <h:selectOneMenu ...
I'm trying to do something like this
<h:selectOneMenu id="idCurs" value="#{cursHome.instance.idcurs}">
| <s:selectItems value="#{cursList.resultList}" label="#{curs.nume}"
| var="curs"
| noSelectionLabel="Alege un curs"
| />
| <s:convertEntity />
| <a:support event="onblur" reRender="idcursDecoration" bypassUpdates="true"/>
| </h:selectOneMenu>
I have StudentHome the student ( generated with seam generate entities), and I want it to return the id of a selected item in the option list.
I already did the override on equals and hashCode and read the wiki and other posts on the matter but I don't fully understand how the hole thing is supposed to work.
It gets the list from the cursList.resultList. Then when I select an item .. he does what exactly ? he sets the value of var to whatever I say in the <h:selectOneMenu ? or where
I would like for it to set the value of the current edited studentHome.instance.idcurs to the value of idcurs from the selected item in the list.. something like binding the label value to curs.nume and the value to curs.idcurs
Any suggestions or other ways of accomplishing this ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123949#4123949
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123949
18 years, 4 months
[JBoss Seam] - Re: Beginner: Bind SelectOneMenu to @onetoone entity object
by nickarls
What version of Seam are you running? Are there any errors in the log from not being able to create the persitence units? In 2.0 the link should be something like
a deployed Foo-ds.xml with a
| <jndi-name>FooDatasource</jndi-name>
|
a persistence.xml with
| <jta-data-source>java:/FooDatasource</jta-data-source>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/FooEntityManagerFactory" />
|
and in components.xml
| <persistence:managed-persistence-context name="entityManager" auto-create="true" persistence-unit-jndi-name="java:/FooEntityManagerFactory" />
|
Which should give you auto-created SMPC available with just
| @In private EntityManager entityManager;
|
(and injection into all controllers etc. that use the "entityManager" name)
you seem to have some sort of managed-persistence-context in components.xml, although under another namespace?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123946#4123946
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123946
18 years, 4 months