[JBossWS] - Re: Dynamic no. of attachments using MTOM
by richard.opalka@jboss.com
"oskar.carlstedt" wrote : Ok!
|
| What I mean is when I have a DataHandler I can get an input stream to the reach the attachment data. But what if I have the following xml. How do I get my xml document:
|
|
| | <my-xml>
| | <list-of-something>
| | <something>
| | <normal-xml>
| | <textual-info-1> SOME TEXTUAL INFO 1 </textual-info-1>
| | <textual-info-2> SOME TEXTUAL INFO 2 </textual-info-2>
| | </normal-xml>
| | <binary>this part will go as MTOM attachment</binary>
| | <something>
| | <something>
| | <normal-xml>
| | <textual-info-1> SOME TEXTUAL INFO 1 </textual-info-1>
| | <textual-info-2> SOME TEXTUAL INFO 2 </textual-info-2>
| | </normal-xml>
| | <binary>this part will go as MTOM attachment</binary>
| | <something>
| | </list-of-something>
| | </my-xml>
| |
|
| Are there two methods that are invoked in the implementing code. As I understand the DataHandler will give me the InputStream to the attachment (binary in above xml). But there is no way to get the rest of the xml, or is it?
|
| Regards
| /Oskar
|
This shouldn't be the problem for you. The jbossws tools should generate something like this from WSDL document for you:
public void method(List<Something> data)
| {
| ...
| }
|
| public class Something
| {
| NormalXml normalXml
| DataHandler binary
| }
Richard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107255#4107255
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107255
18 years, 4 months
[JBossWS] - IWAB0398E Error in generating WSDL from Java
by kikk
Hi,
I use Jboss 4.0, jdk 1.5 and eclipse 3.3.1.
when I click on "create web service", appears to me a windows with an error.
Can someone tell me what's the problem?
________________________________________________________________
IWAB0398E Error in generating WSDL from Java: java.lang.ClassNotFoundException: owlJena.ExportConverter
java.lang.ClassNotFoundException: owlJena.ExportConverter
at java.lang.ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1414)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1085)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:2079)
at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:188)
at org.eclipse.jst.ws.internal.axis.consumption.core.command.Java2WSDLCommand.executeAntTask(Java2WSDLCommand.java:181)
at org.eclipse.jst.ws.internal.axis.consumption.core.command.Java2WSDLCommand.execute(Java2WSDLCommand.java:96)
at org.eclipse.jst.ws.internal.axis.creation.ui.command.BUCodeGenOperation$BottomUpWSModifyOperation.execute(BUCodeGenOperation.java:116)
at org.eclipse.jst.ws.internal.axis.creation.ui.command.BUCodeGenOperation.execute(BUCodeGenOperation.java:80)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154)
at org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(DynamicPopupWizard.java:130)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107135#4107135
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107135
18 years, 4 months
[JBossWS] - Re: Dynamic no. of attachments using MTOM
by oskar.carlstedt
Ok!
What I mean is when I have a DataHandler I can get an input stream to the reach the attachment data. But what if I have the following xml. How do I get my xml document:
| <my-xml>
| <list-of-something>
| <something>
| <normal-xml>
| <textual-info-1> SOME TEXTUAL INFO 1 </textual-info-1>
| <textual-info-2> SOME TEXTUAL INFO 2 </textual-info-2>
| </normal-xml>
| <binary>this part will go as MTOM attachment</binary>
| <something>
| <something>
| <normal-xml>
| <textual-info-1> SOME TEXTUAL INFO 1 </textual-info-1>
| <textual-info-2> SOME TEXTUAL INFO 2 </textual-info-2>
| </normal-xml>
| <binary>this part will go as MTOM attachment</binary>
| <something>
| </list-of-something>
| </my-xml>
|
Are there two methods that are invoked in the implementing code. As I understand the DataHandler will give me the InputStream to the attachment (binary in above xml). But there is no way to get the rest of the xml, or is it?
Regards
/Oskar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107125#4107125
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107125
18 years, 4 months