Doing XML-RPC on J2ME devices
I'm interested in doing some very simple XML-RPC (http://www.xmlrpc.com/) on a MIDP1.0 type of device.
I discovered the useful but now apparently defunct kxmlrpc (http://kxmlrpc.objectweb.org/project/aboutProject/index.html). After spending two days chasing, and finally "fixing", an obscure, missing invocation of parser.skip() in XmlRPCParser.parseValue(), I concluded there has to be a better way to do XML-RPC on J2ME.
I discovered JSR 172, but it looks like the API encourages SOAP programming, which doesn't meet my XML-RPC requirement. I could find no examples illustrating how to to XML-RPC with JSR 172 interfaces, although this doesn't prove one can't.
How are people doing XML-RPC on J2ME these days? I'm baffled.
Thanks.
For those who may be interested, here are the mods I made to the kxmlrpc XML-RPC parser:
1. In XmlRpcParser.java, add a parser.skip() before the parser.read() in parseValue()
parser.skip();
parser.read( Xml.START_TAG, "", "value" );
2. In XmlRpcWriter.java, add a writeLegacy() before the methodCall start tag is written in writeCall()
writer.writeLegacy(Xml.PROCESSING_INSTRUCTION,"xml version=\"1.0\"");
writer.startTag( "methodCall" );
Both of these changes probably a result of the difference in the XML-RPC server I used vs. what the author of kxmlrpc used. My XML-RPC server refused to accept the call without the XML processor instruction <?xml version="1.0"?>. And the parser was thowing 'unexpected' exceptions before the whtespace was stripped off the front end of <value> tags coming back in the response.
In all, kxmlrpc seems to work fine for the basic data structures I'm dealing with (Strings, simple structs). I just wish there was a standard J2ME way of doing this sort of web service.
http://kxmlrpc.objectweb.org/project/aboutProject/index.html
Similar Messages
-
"package javax.xml .rpc does not exist" error when compiling client jar
When I try to compile the web services client jar with either the clientgen or the <client> element of servicegen I get the following error "package weblogic.webservice.core.rpc does not exist"
Here is the error output
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:10: package weblogic.webservice.core.rpc does not exist
[servicegen] extends weblogic.webservice.core.rpc.ServiceImpl
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:9: package javax.xml.rpc does not exist
[servicegen] public interface OSHService extends javax.xml.rpc.Service{
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:11: package weblogic.webservice.context does not exist
[servicegen] weblogic.webservice.context.WebServiceContext context();
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:13: package weblogic.webservice.context does not exist
[servicegen] weblogic.webservice.context.WebServiceContext joinContext()
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:14: package weblogic.webservice.context does not exist
[servicegen] throws weblogic.webservice.context.ContextNotFoundException;
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:16: package javax.xml.rpc does not exist
[servicegen] com.onexchange.tools.osh.client.OSHServicePort getOSHServicePort() throws javax.xml.rpc.ServiceException;
[servicegen]
^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_clie
nt.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:18: package javax.xml.rpc does not exist
[servicegen] com.onexchange.tools.osh.client.OSHServicePort getOSHServicePort(String username, String password) throws javax.xml.rpc.ServiceException;
[servicegen]
^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:9: package weblogic.webservice.core.rpc does not exist
[servicegen] extends weblogic.webservice.core.rpc.StubImpl
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_clie
nt.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:12: package weblogic.webservice does not exist
[servicegen] public OSHServicePort_Stub( weblogic.webservice.Port _port ){
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:9: com.onexchange.tools.osh.client.OSHService_Impl should be declared abstract; it does not define context() in com.onexchange.tools.osh.client.OSHService_Impl
[servicegen] public class OSHService_Impl
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_clie
nt.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:40: cannot
resolve symbol
[servicegen] symbol : method _getPort (java.lang.String)
[servicegen] location: class com.onexchange.tools.osh.client.OSHService_Impl
[servicegen] new com.onexchange.tools.osh.client.OSHServicePort_Stub( _g
etPort( "OSHServicePort" ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:49: cannot
resolve symbol
[servicegen] symbol : method _setUser (java.lang.String,java.lang.String,com.on
exchange.tools.osh.client.OSHServicePort)
[servicegen] location: class com.onexchange.tools.osh.client.OSHService_Impl
[servicegen] _setUser( username, password, getOSHServicePort() );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:24: ca
nnot resolve symbol
[servicegen] symbol : method _wrap (java.lang.String)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] args.put( "string", wrap( string ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:25: ca
nnot resolve symbol
[servicegen] symbol : method _wrap (java.lang.String)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] args.put( "string0", wrap( string0 ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:27: ca
nnot resolve symbol
[servicegen] symbol : method _invoke (java.lang.String,java.util.HashMap)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] java.lang.Object result = invoke( "login", _args );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:29: pa
ckage javax.xml.rpc does not exist
[servicegen] } catch (javax.xml.rpc.JAXRPCException e) {
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:31: pa
ckage javax.xml.rpc.soap does not exist
[servicegen] } catch (javax.xml.rpc.soap.SOAPFaultException e) {
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:44: ca
nnot resolve symbol
[servicegen] symbol : method _wrap (java.lang.String)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] args.put( "string", wrap( string ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:45: ca
nnot resolve symbol
[servicegen] symbol : method _wrap (java.lang.String)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] args.put( "string0", wrap( string0 ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:47: ca
nnot resolve symbol
[servicegen] symbol : method _invoke (java.lang.String,java.util.HashMap)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] java.lang.Object result = invoke( "oshRequest", _args );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:49: pa
ckage javax.xml.rpc does not exist
[servicegen] } catch (javax.xml.rpc.JAXRPCException e) {
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:51: pa
ckage javax.xml.rpc.soap does not exist
[servicegen] } catch (javax.xml.rpc.soap.SOAPFaultException e) {
[servicegen] ^
[servicegen] 22 errors
[servicegen] java.io.IOException: Compiler failed executable.exec
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
ilerInvoker.java:470)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:329)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:337)
[servicegen] at weblogic.webservice.tools.build.internal.CompilerHelper.compi
leFiles(CompilerHelper.java:80)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compil
eStubs(ClientGenImpl.java:608)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.genera
teStub(ClientGenImpl.java:553)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
ntGenFromEAR(ClientGenImpl.java:502)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
ientGenImpl.java:348)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
enerateClient(ServiceGenTask.java:597)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
xecute(ServiceGenTask.java:195)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED
Below is the -debug from the ant task immediately following:
<target name="web-service" depends="osh_bean_jar">
<servicegen
destEar="${build}/osh_service"
warName="osh_service.war"
contextURI="web_services" >
<service
ejbJar="${dist}/osh_bean.jar"
targetNamespace="http://www.bea.com/webservices/basic/statelesSession"
serviceName="OSHService"
serviceURI="/OSHService"
generateTypes="True"
expandMethods="True"
style="rpc">
<client
packageName="com.onexchange.tools.osh.client" />
</service>
</servicegen>
</target>
Apache Ant version 1.5.3 compiled on August 13 2003
Buildfile: \onexv3.x\src\antfile\osh.xml
Detected Java version: 1.4 in: C:\bea\JDK141~1\jre
Detected OS: Windows 2000
+User task: propertyfile org.apache.tools.ant.taskdefs.optional.PropertyFile
+User task: vsscheckin org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKIN
+User task: sql org.apache.tools.ant.taskdefs.SQLExec
+User task: cvspass org.apache.tools.ant.taskdefs.CVSPass
+User task: p4reopen org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen
+User task: csc org.apache.tools.ant.taskdefs.optional.dotnet.CSharp
+User task: dirname org.apache.tools.ant.taskdefs.Dirname
+User task: wlrun org.apache.tools.ant.taskdefs.optional.ejb.WLRun
+User task: servicegen weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask
+User task: p4label org.apache.tools.ant.taskdefs.optional.perforce.P4Label
+User task: p4revert org.apache.tools.ant.taskdefs.optional.perforce.P4Revert
+User task: replaceregexp org.apache.tools.ant.taskdefs.optional.ReplaceRegExp
+User task: ddcreate weblogic.ant.taskdefs.build.DDCreateTask
+User task: get org.apache.tools.ant.taskdefs.Get
+User task: jjtree org.apache.tools.ant.taskdefs.optional.javacc.JJTree
+User task: sleep org.apache.tools.ant.taskdefs.Sleep
+User task: jarlib-display org.apache.tools.ant.taskdefs.optional.extension.JarLibDisplayTask
+User task: dependset org.apache.tools.ant.taskdefs.DependSet
+User task: zip org.apache.tools.ant.taskdefs.Zip
+User task: patch org.apache.tools.ant.taskdefs.Patch
+User task: jspc weblogic.ant.taskdefs.j2ee.Jspc
+User task: style org.apache.tools.ant.taskdefs.XSLTProcess
+User task: test org.apache.tools.ant.taskdefs.optional.Test
+User task: tstamp org.apache.tools.ant.taskdefs.Tstamp
+User task: unwar org.apache.tools.ant.taskdefs.Expand
+User task: vsshistory org.apache.tools.ant.taskdefs.optional.vss.MSVSSHISTORY
+User task: icontract org.apache.tools.ant.taskdefs.optional.IContract
+User task: cvschangelog org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask
+User task: p4submit org.apache.tools.ant.taskdefs.optional.perforce.P4Submit
+User task: ccmcheckin org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckin
+User task: p4change org.apache.tools.ant.taskdefs.optional.perforce.P4Change
+User task: bzip2 org.apache.tools.ant.taskdefs.BZip2
+User task: wspackage weblogic.ant.taskdefs.webservices.wspackage.WSPackage
+User task: p4delete org.apache.tools.ant.taskdefs.optional.perforce.P4Delete
+User task: vssadd org.apache.tools.ant.taskdefs.optional.vss.MSVSSADD
+User task: javadoc org.apache.tools.ant.taskdefs.Javadoc
+User task: translate org.apache.tools.ant.taskdefs.optional.i18n.Translate
+User task: signjar org.apache.tools.ant.taskdefs.SignJar
+User task: vajload org.apache.tools.ant.taskdefs.optional.ide.VAJLoadProjects
+User task: jarlib-available org.apache.tools.ant.taskdefs.optional.extension.JarLibAvailableTask
+User task: wsdd-merge weblogic.ant.taskdefs.webservices.autotype.DDMerge
+User task: WsdlToDotnet org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
+User task: buildnumber org.apache.tools.ant.taskdefs.BuildNumber
+User task: jpcovmerge org.apache.tools.ant.taskdefs.optional.sitraka.CovMerge
+User task: compliance weblogic.ant.taskdefs.webservices.compliance.Compliance
+User task: ejbjar org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
Could not load class (weblogic.ant.taskdefs.perforce.P4Changes) for task p4changes
+User task: war org.apache.tools.ant.taskdefs.War
Could not load a dependent class (com/starbase/starteam/Item) for task stlist
+User task: rename org.apache.tools.ant.taskdefs.Rename
+User task: sequential org.apache.tools.ant.taskdefs.Sequential
+User task: serverdeploy org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
+User task: wsdlgen weblogic.ant.taskdefs.webservices.wsdlgen.WSDLGen
+User task: property org.apache.tools.ant.taskdefs.Property
+User task: move org.apache.tools.ant.taskdefs.Move
+User task: copydir org.apache.tools.ant.taskdefs.Copydir
+User task: cccheckin org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin
+User task: wljspc org.apache.tools.ant.taskdefs.optional.jsp.WLJspc
+User task: fixcrlf org.apache.tools.ant.taskdefs.FixCRLF
Could not load a dependent class (com/oroinc/net/SocketClient) for task telnet
+User task: sosget org.apache.tools.ant.taskdefs.optional.sos.SOSGet
Could not load class (weblogic.ant.taskdefs.perforce.P4VersionString) for task p4versionstring
+User task: pathconvert org.apache.tools.ant.taskdefs.PathConvert
+User task: autotype weblogic.ant.taskdefs.webservices.javaschema.JavaSchema
+User task: record org.apache.tools.ant.taskdefs.Recorder
+User task: p4sync org.apache.tools.ant.taskdefs.optional.perforce.P4Sync
+User task: exec org.apache.tools.ant.taskdefs.ExecTask
+User task: p4edit org.apache.tools.ant.taskdefs.optional.perforce.P4Edit
+User task: manifest org.apache.tools.ant.taskdefs.ManifestTask
+User task: maudit org.apache.tools.ant.taskdefs.optional.metamata.MAudit
+User task: antlr org.apache.tools.ant.taskdefs.optional.ANTLR
+User task: netrexxc org.apache.tools.ant.taskdefs.optional.NetRexxC
Could not load a dependent class (com/oroinc/net/ftp/FTP) for task ftp
+User task: jpcovreport org.apache.tools.ant.taskdefs.optional.sitraka.CovReport
+User task: wsdl2service weblogic.ant.taskdefs.webservices.wsdl2service.WSDL2Service
+User task: execon org.apache.tools.ant.taskdefs.ExecuteOn
+User task: ccmcheckout org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckout
+User task: ant org.apache.tools.ant.taskdefs.Ant
+User task: xmlvalidate org.apache.tools.ant.taskdefs.optional.XMLValidateTask
+User task: xslt org.apache.tools.ant.taskdefs.XSLTProcess
+User task: iplanet-ejbc org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbcTask
+User task: ccmcheckintask org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckinDefault
+User task: gzip org.apache.tools.ant.taskdefs.GZip
+User task: native2ascii org.apache.tools.ant.taskdefs.optional.Native2Ascii
+User task: starteam org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut
+User task: ear org.apache.tools.ant.taskdefs.Ear
+User task: input org.apache.tools.ant.taskdefs.Input
+User task: wlpath weblogic.ant.taskdefs.WLPath
+User task: pointbase weblogic.ant.taskdefs.pointbase.PointBase
+User task: rmic weblogic.ant.taskdefs.j2ee.Rmic
+User task: checksum org.apache.tools.ant.taskdefs.Checksum
+User task: mail org.apache.tools.ant.taskdefs.email.EmailTask
+User task: loadfile org.apache.tools.ant.taskdefs.LoadFile
+User task: wsgen weblogic.ant.taskdefs.webservices.wsgen.WSGenTask
+User task: vsscheckout org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKOUT
+User task: stylebook org.apache.tools.ant.taskdefs.optional.StyleBook
+User task: soscheckin org.apache.tools.ant.taskdefs.optional.sos.SOSCheckin
+User task: mimemail org.apache.tools.ant.taskdefs.optional.net.MimeMail
+User task: stlabel org.apache.tools.ant.taskdefs.optional.starteam.StarTeamLabel
+User task: gunzip org.apache.tools.ant.taskdefs.GUnzip
+User task: concat org.apache.tools.ant.taskdefs.Concat
+User task: cab org.apache.tools.ant.taskdefs.optional.Cab
+User task: touch org.apache.tools.ant.taskdefs.Touch
+User task: parallel org.apache.tools.ant.taskdefs.Parallel
+User task: splash org.apache.tools.ant.taskdefs.optional.splash.SplashTask
+User task: antcall org.apache.tools.ant.taskdefs.CallTarget
Could not load class (weblogic.ant.taskdefs.ejb.DDInit) for task ddinit
+User task: cccheckout org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckout
+User task: typedef org.apache.tools.ant.taskdefs.Typedef
+User task: p4have org.apache.tools.ant.taskdefs.optional.perforce.P4Have
+User task: filter org.apache.tools.ant.taskdefs.Filter
+User task: xmlproperty org.apache.tools.ant.taskdefs.XmlProperty
Could not load a dependent class (jdepend/xmlui/JDepend) for task jdepend
+User task: copy org.apache.tools.ant.taskdefs.Copy
+User task: clientgen weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask
+User task: createidl weblogic.ant.taskdefs.iiop.CppIdlSetup
+User task: antstructure org.apache.tools.ant.taskdefs.AntStructure
Could not load a dependent class (com/ibm/bsf/BSFException) for task script
+User task: ccmcreatetask org.apache.tools.ant.taskdefs.optional.ccm.CCMCreateTask
+User task: rpm org.apache.tools.ant.taskdefs.optional.Rpm
+User task: delete org.apache.tools.ant.taskdefs.Delete
+User task: replace org.apache.tools.ant.taskdefs.Replace
+User task: mmetrics org.apache.tools.ant.taskdefs.optional.metamata.MMetrics
+User task: waitfor org.apache.tools.ant.taskdefs.WaitFor
+User task: untar org.apache.tools.ant.taskdefs.Untar
+User task: loadproperties org.apache.tools.ant.taskdefs.LoadProperties
+User task: wldeploy weblogic.ant.taskdefs.management.WLDeploy
+User task: available org.apache.tools.ant.taskdefs.Available
+User task: echoproperties org.apache.tools.ant.taskdefs.optional.EchoProperties
Could not load a dependent class (junit/framework/TestListener) for task junit
Could not load a dependent class (com/starbase/starteam/Item) for task stcheckin
+User task: vajexport org.apache.tools.ant.taskdefs.optional.ide.VAJExport
Could not load a dependent class (com/starbase/starteam/Item) for task stcheckout
+User task: bunzip2 org.apache.tools.ant.taskdefs.BUnzip2
+User task: copyfile org.apache.tools.ant.taskdefs.Copyfile
+User task: wlserver weblogic.ant.taskdefs.management.WLServer
+User task: vsscreate org.apache.tools.ant.taskdefs.optional.vss.MSVSSCREATE
+User task: wlconfig weblogic.ant.taskdefs.management.WLConfig
+User task: ejbc weblogic.ant.taskdefs.j2ee.Ejbc
+User task: unjar org.apache.tools.ant.taskdefs.Expand
+User task: wsdltodotnet org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
+User task: wlcompile weblogic.ant.taskdefs.build.WLCompileTask
+User task: mkdir org.apache.tools.ant.taskdefs.Mkdir
+User task: cvs org.apache.tools.ant.taskdefs.Cvs
+User task: condition org.apache.tools.ant.taskdefs.ConditionTask
+User task: tempfile org.apache.tools.ant.taskdefs.TempFile
+User task: junitreport org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
+User task: taskdef org.apache.tools.ant.taskdefs.Taskdef
+User task: echo org.apache.tools.ant.taskdefs.Echo
+User task: ccupdate org.apache.tools.ant.taskdefs.optional.clearcase.CCUpdate
+User task: java org.apache.tools.ant.taskdefs.Java
+User task: vsslabel org.apache.tools.ant.taskdefs.optional.vss.MSVSSLABEL
+User task: renameext org.apache.tools.ant.taskdefs.optional.RenameExtensions
+User task: basename org.apache.tools.ant.taskdefs.Basename
+User task: javadoc2 org.apache.tools.ant.taskdefs.Javadoc
+User task: tar org.apache.tools.ant.taskdefs.Tar
+User task: vsscp org.apache.tools.ant.taskdefs.optional.vss.MSVSSCP
+User task: vajimport org.apache.tools.ant.taskdefs.optional.ide.VAJImport
+User task: setproxy org.apache.tools.ant.taskdefs.optional.net.SetProxy
+User task: p4counter org.apache.tools.ant.taskdefs.optional.perforce.P4Counter
+User task: wlstop org.apache.tools.ant.taskdefs.optional.ejb.WLStop
+User task: ilasm org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm
+User task: soscheckout org.apache.tools.ant.taskdefs.optional.sos.SOSCheckout
+User task: apply org.apache.tools.ant.taskdefs.Transform
+User task: ccuncheckout org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout
+User task: jarlib-resolve org.apache.tools.ant.taskdefs.optional.extension.JarLibResolveTask
+User task: jlink org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask
+User task: cvstagdiff org.apache.tools.ant.taskdefs.cvslib.CvsTagDiff
+User task: javacc org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
+User task: chmod org.apache.tools.ant.taskdefs.Chmod
+User task: pvcs org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs
+User task: jarlib-manifest org.apache.tools.ant.taskdefs.optional.extension.JarLibManifestTask
+User task: jar org.apache.tools.ant.taskdefs.Jar
+User task: sound org.apache.tools.ant.taskdefs.optional.sound.SoundTask
+User task: wlappc weblogic.ant.taskdefs.j2ee.Appc
+User task: mparse org.apache.tools.ant.taskdefs.optional.metamata.MParse
+User task: blgenclient org.apache.tools.ant.taskdefs.optional.ejb.BorlandGenerateClient
+User task: uptodate org.apache.tools.ant.taskdefs.UpToDate
+User task: genkey org.apache.tools.ant.taskdefs.GenerateKey
+User task: javah org.apache.tools.ant.taskdefs.optional.Javah
+User task: ccmreconfigure org.apache.tools.ant.taskdefs.optional.ccm.CCMReconfigure
+User task: fail org.apache.tools.ant.taskdefs.Exit
+User task: unzip org.apache.tools.ant.taskdefs.Expand
+User task: javac org.apache.tools.ant.taskdefs.Javac
+User task: source2wsdd weblogic.ant.taskdefs.webservices.autotype.JavaSource2DD
+User task: p4add org.apache.tools.ant.taskdefs.optional.perforce.P4Add
+User task: jpcoverage org.apache.tools.ant.taskdefs.optional.sitraka.Coverage
+User task: soslabel org.apache.tools.ant.taskdefs.optional.sos.SOSLabel
+User task: depend org.apache.tools.ant.taskdefs.optional.depend.Depend
+User task: wlpackage weblogic.ant.taskdefs.build.WLPackageTask
+User task: vssget org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
+User task: deltree org.apache.tools.ant.taskdefs.Deltree
+User task: ddcreator org.apache.tools.ant.taskdefs.optional.ejb.DDCreator
+User datatype: patternset org.apache.tools.ant.types.PatternSet
+User datatype: filterset org.apache.tools.ant.types.FilterSet
+User datatype: libfileset org.apache.tools.ant.taskdefs.optional.extension.LibFileSet
+User datatype: filterreader org.apache.tools.ant.types.AntFilterReader
+User datatype: extension org.apache.tools.ant.taskdefs.optional.extension.ExtensionAdapter
+User datatype: fileset org.apache.tools.ant.types.FileSet
+User datatype: dirset org.apache.tools.ant.types.DirSet
+User datatype: filelist org.apache.tools.ant.types.FileList
+User datatype: filterchain org.apache.tools.ant.types.FilterChain
+User datatype: path org.apache.tools.ant.types.Path
+User datatype: classfileset org.apache.tools.ant.types.optional.depend.ClassfileSet
+User datatype: description org.apache.tools.ant.types.Description
+User datatype: xmlcatalog org.apache.tools.ant.types.XMLCatalog
+User datatype: selector org.apache.tools.ant.types.selectors.SelectSelector
+User datatype: mapper org.apache.tools.ant.types.Mapper
+User datatype: substitution org.apache.tools.ant.types.Substitution
+User datatype: extensionSet org.apache.tools.ant.taskdefs.optional.extension.ExtensionSet
+User datatype: regexp org.apache.tools.ant.types.RegularExpression
Setting ro project property: ant.version -> Apache Ant version 1.5.3 compiled on August 13 2003
Setting ro project property: ant.file -> C:\onexv3.x\src\antfile\osh.xml
parsing buildfile \onexv3.x\src\antfile\osh.xml with URI = file:C:/onexv3.x/src/antfile/osh.xml
Setting ro project property: ant.project.name -> osh
Adding reference: osh -> org.apache.tools.ant.Project@12ad19e
Project base dir set to: C:\onexv3.x\src\antfile
resolving systemId: file:properties.xml
+Task: property
[property] Loading Environment env.
Setting project property: env.SYSTEMROOT -> C:\WINNT
Setting project property: env.ONEX_WL_IP -> localhost
Setting project property: env.ORACLE_HOME -> /oracle/ora92
Setting project property: env.WEBROOT -> /weblogic/weblogic81/config/onexdomain-v3x/applications/onexchange
Setting project property: env.PROMPT -> $P$G
Setting project property: env.MY_PASSWORD -> qa1
Setting project property: env.JAVA_OPTIONS -> -Xverify:none
Setting project property: env.POINTBASE_TOOLS -> C:\weblogic\WEBLOG~1\common\eval\pointbase\lib\pbtools44.jar
Setting project property: env.ONEX_CONFIG -> /onexv3.x/ops/config/config_dev-v2.x.txt
Setting project property: env.PWD -> /weblogic/weblogic81/server/bin
Setting project property: env.COMPUTERNAME -> FKHAN2
Setting project property: env.JSPWD -> /weblogic/weblogic81/config/onexdomain-v3x/classfiles
Setting project property: env.MAKE_MODE -> UNIX
Setting project property: env.ALLUSERSPROFILE -> C:\Documents and Settings\All Users
Setting project property: env.h -> /onexv3.x
Setting project property: env.SERVLET_CLASSES -> /weblogic/weblogic81/config/onexdomain-v3x/servletclasses
Setting project property: env.HOMEPATH -> \Documents and Settings\fkhan
Setting project property: env.ONEX_NOTIFY -> 1
Setting project property: env.ONEX -> /onexv3.x
Setting project property: env.ONEX_TQREADER -> 1
Setting project property: env.JDK_CLASSES -> /bea/jdk141_05/lib/rt.jar
Setting project property: env._ -> ./ant.bat
Setting project property: env.EXT -> .60
Setting project property: env.SHELL -> /bin/sh
Setting project property: env.Z -> ;
Setting project property: env.X -> 1
Setting project property: env.MY_NAME -> qa1
Setting project property: env.ONEX_AUDIT -> 1
Setting project property: env.MY_DW_DB_SERVICE -> qa
Setting project property: env.PATH -> C:\weblogic\WEBLOG~1\server\bin;C:\bea\JDK141~1\jre\bin;C:\bea\JDK141~1\bin;C:\weblogic\WEBLOG~1\server\bin;C:\bea\JDK141~1\jre\bin;C:\bea\JDK141~1\bin;.;C:\onexv3.x\ops\scripts;C:\onexv3.x\scripts;C:\onexv3.x\3rdparty\ant\bin;C:\bea\jdk141_05\bin;C:\onexv3.x\scripts\singledb;C:\Oracle\Ora9\bin;C:\cygnus\CYGWIN~1\H-I586~1\bin;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Perforce;C:\cygwin\bin;C:\putty;C:\weblogic\WEBLOG~1\server\bin\oci920_8
Setting project property: env.MY_INSTANCE -> qa
Setting project property: env.POINTBASE_HOME -> C:\weblogic\WEBLOG~1\common\eval\pointbase
Setting project property: env.WINDIR -> C:\WINNT
Setting project property: env.ONEX_WL_HOME -> /weblogic/weblogic81
Setting project property: env.ONEX_TRADING -> 1
Setting project property: env.HOSTTYPE -> i586
Setting project property: env.J -> /onexv3.x/jars
Setting project property: env.PROCESSOR_IDENTIFIER -> x86 Family 6 Model 8 Stepping 3, GenuineIntel
Setting project property: env.JAVA_VENDOR -> Sun
Setting project property: env.TEMP -> C:\DOCUME~1\fkhan\LOCALS~1\Temp
Setting project property: env.ONEX_JAVA_HOME -> /bea/jdk141_05
SettiCan somebody tell me how to run the webservices in weblogic samples,when i run this(build.xml)i get the following error.
=========================================================Buildfile: E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build.xml
clean:
[delete] Deleting directory E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build
[delete] Deleting directory E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\client
compile:
[mkdir] Created dir: E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build
[mkdir] Created dir: E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\client
[javac] Compiling 1 source file to E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build
ear:
[servicegen] Generating service "HelloWorld" ...
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:9: package weblogic.webservice.core.rpc does not exist
[servicegen] extends weblogic.webservice.core.rpc.StubImpl
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:12: package weblogic.webservice does not exist
[servicegen] public HelloWorldPort_Stub( weblogic.webservice.Port _port ){
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:9: package javax.xml.rpc does not exist
[servicegen] public interface HelloWorld extends javax.xml.rpc.Service{
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:11: package weblogic.webservice.context does not exist
[servicegen] weblogic.webservice.context.WebServiceContext context();
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:13: package weblogic.webservice.context does not exist
[servicegen] weblogic.webservice.context.WebServiceContext joinContext()
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:14: package weblogic.webservice.context does not exist
[servicegen] throws weblogic.webservice.context.ContextNotFoundException;
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:16: package javax.xml.rpc does not exist
[servicegen] examples.webservices.basic.javaclass.HelloWorldPort getHelloWorldPort() throws javax.xml.rpc.ServiceException;
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:18: package javax.xml.rpc does not exist
[servicegen] examples.webservices.basic.javaclass.HelloWorldPort getHelloWorldPort(String username, String password) throws javax.xml.rpc.ServiceException;
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:10: package weblogic.webservice.core.rpc does not exist
[servicegen] extends weblogic.webservice.core.rpc.ServiceImpl
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:24: cannot resolve symbol
[servicegen] symbol : method _wrap (int)
[servicegen] location: class examples.webservices.basic.javaclass.HelloWorldPort_Stub
[servicegen] args.put( "intVal", wrap( intVal ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:25: cannot resolve symbol
[servicegen] symbol : method _wrap (java.lang.String)
[servicegen] location: class examples.webservices.basic.javaclass.HelloWorldPort_Stub
[servicegen] args.put( "string", wrap( string ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:27: cannot resolve symbol
[servicegen] symbol : method _invoke (java.lang.String,java.util.HashMap)
[servicegen] location: class examples.webservices.basic.javaclass.HelloWorldPort_Stub
[servicegen] java.lang.Object result = invoke( "sayHello", _args );
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:29: package javax.xml.rpc does not exist
[servicegen] } catch (javax.xml.rpc.JAXRPCException e) {
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:31: package javax.xml.rpc.soap does not exist
[servicegen] } catch (javax.xml.rpc.soap.SOAPFaultException e) {
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:9: examples.webservices.basic.javaclass.HelloWorld_Impl is not abstract and does not override abstract method joinContext() in examples.webservices.basic.javaclass.HelloWorld
[servicegen] public class HelloWorld_Impl
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:40: cannot resolve symbol
[servicegen] symbol : method _getPort (java.lang.String)
[servicegen] location: class examples.webservices.basic.javaclass.HelloWorld_Impl
[servicegen] new examples.webservices.basic.javaclass.HelloWorldPort_Stub( _getPort( "HelloWorldPort" ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:49: cannot resolve symbol
[servicegen] symbol : method _setUser (java.lang.String,java.lang.String,examples.webservices.basic.javaclass.HelloWorldPort)
[servicegen] location: class examples.webservices.basic.javaclass.HelloWorld_Impl
[servicegen] _setUser( username, password, getHelloWorldPort() );
[servicegen] ^
[servicegen] 17 errors
[servicegen] java.io.IOException: Compiler failed executable.exec
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:469)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
[servicegen] at weblogic.webservice.tools.build.internal.CompilerHelper.compileFiles(CompilerHelper.java:80)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compileStubs(ClientGenImpl.java:627)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.generateStub(ClientGenImpl.java:572)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromEAR(ClientGenImpl.java:521)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:345)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateClient(ServiceGenTask.java:597)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:195)
[servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:364)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[servicegen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
BUILD FAILED
E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build.xml:42: weblogic.webservice.tools.build.WSBuildException: Compiler failed executable.exec - with nested exception:
[java.io.IOException: Compiler failed executable.exec]
Total time: 29 seconds -
Package javax.xml.rpc does not exist
Hi, I'm sure this is probably a basic error, which one of you Java gurus can solve instantly. I haven't used Java since 2001 and my development machine didn't even have a JDK installed until this morning!
I'm trying to create a Java client for my web service, it's COM/ASP on IIS before you ask how I did it without using Java...
Basically, I've installed J2SE v1.4.2_02, and also WSDP jwsdp-1.3, and I'm using the tutorial example at:
http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXRPC5.html#wp79973 to create a dynamic proxy client. I assume this is what I need to do to access an existing web service?
I've copied and pasted the code into my editor and saved it as HelloClient.java. I will change the URL/URI, service name, port, etc. later on.
Now, at the cmd prompt...
D:\source\DCIS\sdk\java\dynamicproxy>javac HelloClient.java
HelloClient.java:4: package javax.xml.rpc does not exist
import javax.xml.rpc.Service;
^
HelloClient.java:5: package javax.xml.rpc does not exist
import javax.xml.rpc.JAXRPCException;
^
HelloClient.java:6: package javax.xml.namespace does not exist
import javax.xml.namespace.QName;
^
HelloClient.java:7: package javax.xml.rpc does not exist
import javax.xml.rpc.ServiceFactory;
I expect this is something to do with environment variables:
PATH=C:\WINNT\system32;
C:\WINNT;C:\WINNT\System32\Wbem;
C:\Program Files\Microsoft SDK\Bin\.;
C:\Program Files\Microsoft SDK\Bin\WinNT\.;
d:\j2sdk1.4.2_02\bin\;
d:\jwsdp-1.3\jwsdp-shared\bin\;
d:\jwsdp-1.3\apache-ant\bin\
CLASSPATH=.;
Is there something I need to set in my classpath for this?
I know the tutorial suggests using Ant to build the example, but as far as I can tell that uses Tomcat, and I only want to build a client application! There must be a way to get around this...
TIA for any help you give me!Hi,
I am getting this error message when i try to create the webservice client.
D:\Sun\AppServer\apps\dynamic-proxy>javac -classpath build -d build MathClient.java
MathClient.java:4: package javax.xml.rpc does not exist
import javax.xml.rpc.Service;
^
MathClient.java:5: package javax.xml.rpc does not exist
import javax.xml.rpc.JAXRPCException;
^
MathClient.java:7: package javax.xml.rpc does not exist
import javax.xml.rpc.ServiceFactory;
^
MathClient.java:8: cannot find symbol
symbol : class FirstIF
location: package dynamicproxy
import dynamicproxy.FirstIF;
^
MathClient.java:23: cannot find symbol
symbol : class ServiceFactory
location: class dynamicproxy.MathClient
ServiceFactory serviceFactory = ServiceFactory.newInstance();
^
MathClient.java:23: cannot find symbol
symbol : variable ServiceFactory
location: class dynamicproxy.MathClient
ServiceFactory serviceFactory = ServiceFactory.newInstance();
^
MathClient.java:26: cannot find symbol
symbol : class Service
location: class dynamicproxy.MathClient
Service mathService = serviceFactory.createService(url,
^
7 errors
After looking at your response to add the classpath to this jar file.
jaxrpc-spi.jar.
But when i looked into my folder found that missing this jar file.
where i can i download this file?
I would like to know the error message that i have got is because of this missing file?
Please guide me on this issue.
Thanks! -
Javax.xml.rpc included in orabpel.jar does not have "loadService"
I have a class that uses orabpel.jar for Task service and invocation of BPEL.
Now I made an web service proxy to call an ESB in the same project.
The web service proxy uses javax.xml.rpc from the orabpel.jar which do not have the loadService method but the file:
JDeveloper101310_HOME\webservices\lib\jaxrpc-api.jar\javax\xml\rpc
have the loadService method.
JDeveloper uses the orabpel.jar although above file is in the library and gives a compile time error of not finding the method "loadService".
Any ideas ?When a web service proxy is created it automatically adds the library file..this is the problem: The project has two same libraries(one from orabpel.jar and other javax.xml,.rpc) and it chooses the one which does not have the loasdServices function i.e orapel.jar...
is there a way that I can tell the project not to use that library but other one ? -
J2me web services invocation mechanism SOAP or XML-RPC?
Hi Friends,
I want to invoke webservice from j2me. To send request to webservice, which mechanism should I use? Either SOAP/XML-RPC?
I think SOAP is good way, but Is there any option for kSOAP? Means can I use something other that kSOAP?
Thanks
vikas r. khengareCome on guys i know you can help me, please don't hesitate to write some row
-
Javax.xml.rpc.soap.SOAPFaultException +HttpBinding Adapter 11g
Hi all,
when i am trying to use HttpBinding Adapter with Type= 'Service' , Verb='POST' ,*Operation Type='Request-Response'* , after these settings when i deploy my application on Enterprise Manager than my operation works fine but i get following error in log file.
Please suggest me what am i doing wrong...................
<javax.xml.rpc.soap.SOAPFaultException: Waiting for response has timed out. The conversation id is null. Please check the process instance for detail.
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.generateSoapFaultException(WebServiceEntryBindingComponent.java:1052)
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEntryBindingComponent.java:889)
at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1187)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1081)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:581)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:232)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:192)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:484)
at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Edited by: 835461 on Jul 19, 2011 4:07 AMThis operation is assyncronous ?
-
Javax.xml.rpc.soap.SOAPFaultException: System Error
i am trying to use java proxy to run a web service which activates a FM. when i excute the java program i get:
javax.xml.rpc.soap.SOAPFaultException: System Error
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.buildFaultException(MimeHttpBinding.java:735)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:857)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.getResponseDocument(MimeHttpBinding.java:1091)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1439)
at sap.press.com.xi.MI_JavaProxyStartWorkflowSyncOutBindingStub.MI_JavaProxyStartWorkflowSyncOut(MI_JavaProxyStartWorkflowSyncOutBindingStub.java:82)
at sap.press.com.xi.SendJavaProxy.main(SendJavaProxy.java:38)
does anyone know what the causing it?RWB = runtime Workbench
when you start integration builder you 4 choices (Integration Repository, Integration Directory, System Landscape Directory and Runtime Workbench)
Go their and on the next Webpage on the first link "Comp. Monitioring"
Go to "Integration Server" and their to Adapter Engine
you will get another window below.
Go their on button Adapter Monitoring and we will get a overview which are working and which not.
Hope this helps!
Regards Matt -
Jpg to png in J2ME device..
I am considering doing a converter that could read JPG images from server and converts then to PNG and shows on device. I wonder what is the basic approach in case like this. I know there is already made solutions for this, but I want to make one in order to understand more these kinds of things.
Thanks in advance..I tried the server route, but a 30kb JPEG becomes a 210kb PNG, and for downloading over the air on a cell phone, that 7x increase is a painful problem. Downloading the JPEG directly to the J2ME device is definitely the way to go. Pretty lame that J2ME doesn't currently support JPEG natively.
After many nights of searching the Net for an answer to this question, a kind soul pointed me to the following site, which is 80% of the answer we're looking for:
http://webuser.fh-furtwangen.de/~dersch/
Helmut Dersch
has written/ported a JPEG Decoder that can run in J2ME:
JPEGDecoder: pure-Java JPEG-Decoder for limited Java APIs (e.g. J2ME)I know that it works (he has a sample app that actually runs on my Treo with a panoramic JPEG image loaded from the resource files). Unfortunately, I haven't been smart enough to write the code yet that would download a JPEG off the web and render it on the screen (without all the Panoramic stuff). Should be simple, though.
I am sure that it will take 90 seconds for one of you smart folks. If you actually write the code to do this, PLEASE post the source code so that all of us will learn!
Thanks!!! -
I have a client desktop program that should connect to the server via xml-rpc and SSL. I use SecureXmlRpcClient and get the exception while execute method call:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
at org.apache.xmlrpc.XmlRpc.createTypeFactory(XmlRpc.java:238)
at org.apache.xmlrpc.XmlRpc.<init>(XmlRpc.java:193)
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.<init>(XmlRpcClientResponseProcessor.java:48)
at org.apache.xmlrpc.XmlRpcClientWorker.<init>(XmlRpcClientWorker.java:43)
at org.apache.xmlrpc.XmlRpcClient.getWorker(XmlRpcClient.java:347)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:190)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
at ClientOTK.main(ClientOTK.java:48)
What does it mean and what should I do ?Hi JZ,
Did you get the answer for your problem? I am using the jars xml-rpc 2.0.1 and common-codec 1.2. I could run the http transaction successfully. But having problem with SSL. I kept getting SocketException :
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:818)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:816)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:635)
at org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(DefaultXmlRpcTransport.java:87)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
I appreciate the comments to resolve this exception.
thanks jassi -
Validating XML parser for J2ME?
Hello,
does anybody know a validating XML parser for J2ME?
Thanks
VolkerI mean the XML parser.
I want to know if there are XML parsers which can validate a XML document against a DTD or Schema
Thanks
Volker -
I'm trying to make an XML-RPC call via an HTTPService
instance. Is that the best way to do it?
At present I can generate a request to the correct URL, but
the POST seems to be empty. I think that I don't understand what
should go in the <mx:request> tag -- I have the literal XML
which I want sent:
<mx:HTTPService
id="loginRequest"
url="
http://localhost:8080/rpc/xmlrpc"
useProxy="false"
method="POST"
contentType="application/xml"
resultFormat="e4x" >
<mx:request xmlns="" format="xml">
<methodCall>
<methodName>confluence1.login</methodName>
<params>
<param>
<value><string>{username.text}</string></value>
</param>
<param>
<value><string>{password.text}</string></value>
</param>
</params>
</methodCall>
</mx:request>
</mx:HTTPService>
Thanks for any advice.
TomI am having a similar problem, when I tried to read the
contents of the POST in ASP it is blank.
i'm sending some xml to asp from flex using the httpservice
but when I try to parse the xml using the standard Microsoft.XMLDOM
it always fails to parse the xml regardless of what xml I send.
This leads me to think that flex is sending the xml incorrectly.
flex code>
request = new HTTPService();
request.url="
http://127.0.0.1/test.asp";
request.contentType="application/xml"
request.method="POST"
request.resultFormat="text"
request.request = XML(<test>testingxml</test>);
request.addEventListener(ResultEvent.RESULT, success);
request.addEventListener(FaultEvent.FAULT, fault);
request.send();
private function success(e:mx.rpc.events.ResultEvent):void {
trace(e.result);
private function fault(e:mx.rpc.events.FaultEvent):void {
trace(e.message);
my ASP code>
Dim mydoc
Set mydoc=Server.CreateObject("Microsoft.XMLDOM")
mydoc.async=false
mydoc.load(Request)
Response.ContentType = "text/xml"
if mydoc.parseError.errorcode<>0 then
Response.write "<prob name='fail'>blah</prob>"
else
Response.write "<prob name='works'>yay</prob>"
end if
The asp script always sends <prob
name='fail'>blah</prob> back to flex meaning that the xml
failed to parse correctly. The xml is correct, if I load the same
xml from a text file it will parse correctly, it only fails when
the xml is loaded from flex.
Does anyone know the exact format that the xml is sent in
using the httpservice.send() method? I tried using Request.Form in
ASP but it only gives the error printed at the bottom of this post.
BTW is there anyway to get flex to trace error messages given
from ASP when a script fails as I can't read them in a browser
(because the request is sent using POST). When ASP gives an error
flex either does not respond or gives this error which does not
help my cause.
(mx.messaging.messages::ErrorMessage)#0
body = (Object)#1
clientId = "DirectHTTPChannel0"
correlationId = "39CFBD08-1AEC-89B8-EECA-57F7BC922158"
destination = ""
extendedData = (null)
faultCode = "Server.Error.Request"
faultDetail = "Error: [IOErrorEvent type="ioError"
bubbles=false cancelable=false eventPhase=2 text="Error #2032:
Stream Error. URL:
http://127.0.0.1/test.asp"
URL:
http://127.0.0.1/test.asp"
faultString = "HTTP request error"
headers = (Object)#2
messageId = "3AC23FB2-BFB0-AC27-AE06-57F7BCC14B44"
rootCause = (flash.events::IOErrorEvent)#3
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#4
bytesLoaded = 0
bytesTotal = 0
data = (null)
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#4
text = "Error #2032: Stream Error. URL:
http://127.0.0.1/test.asp"
type = "ioError"
timestamp = 0
timeToLive = 0
EDIT:
I wrote the value of the ASP request (sent from flex) to a
text file and I ended up getting blank, in other words no XML. Now
i'm not even sure if flex is sending any xml. -
Sun's jax-rpc V.S Apache XML-RPC
Anyone can enlighten me with the differences between these two? which one is better?
I too am interested in the opinions of this post. After doing the research I see that for ease of implementation, it looks like XML-RPC is easier/faster to implement, however generates overhead through the creation of the servers to run such. On the JAX-RPC side, I find it not quite as easy to implement, and instead of it's own server it generates a full-fledged web service.
After looking through these it appears to me that if you want to use one of these for standard RPCs than it would be best to stick to the more mature java.rmi implementations; and if you want to create webservices, jax-rpc definitely helps.
Am I correct in saying this or am I missing another side of things as well?
I would enjoy seeing other's opinions of such.
Llama -
Connecting external middleware using xml-rpc
Hello together,
I'm not a SAP specialist. But I have to integrate an external middelware in the eh&s module. The middleware is offering a xml-rpc interface only.
Can anybody tell me best practices to connect an external middleware using xml-rpc?
My ideas are to develop a JCo for the R3 based systems an to use JCA for the NetWeaver systems.
Is that best practice?
Thanks and regards,
MatthiasHi,
I am trying to implement and run the sample application given under {Forte_Root}/install/examples/xmlsvr.
I have done all the required steps, but I am getting this error given below.
I am using soap-2_3 for SOAP and xerces-2_2_1 for XML parser, my server (Forte UDS)is on windows NT.
Please Note:- While connecting to the External web sites from my office, I need to connect through the firewalls and I need to give the user name and password to access the external web sites.
so my question is,
1. while connection to the server (Forte UDS SO) does it make connection to external website such as
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:xsd1="http://localhost/bankservices.xsd"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
and since i have to connect through the firefall and use the passwords, Am I not able to make connection?
2. Does any body of you had similar problem and how you are able to resolve this.
3. If I need to give user name and password, while making connection to external website, can you please tell, where I need to specify that. (Will it be in WSDL file etc)?
Your help is appreciated
Thank You,
Srikanth
-------------------ERROR---------------------------------
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.ConnectException: Connection refused: connect; targetException=java.lang.Il
legalArgumentException: Error opening socket: java.net.ConnectException: Connection refused: connect]
at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:354)
at org.apache.soap.rpc.Call.invoke(Call.java:248)
at com.forte.xmlsvr.bankservices.BankSOProxy.GetAccountData(BankSOProxy.java:105)
at com.forte.xmlsvr.examples.BankClient.main(BankClient.java:12)
------------------------ERROR------------------------------------------------- -
Since I am not having any luck on the Java & XML forum (http://forum.java.sun.com/thread.jsp?forum=34&thread=512728&tstart=0&trange=15)
I thought I would try here. Does anyone know of a good example on the web they can point me to that shows XML-RPC with servlets as I cannot find any and the examples dir from the Apache distribution of XML-RPC (which is supposed to have such an example) is MIA. Thanks.hello,
I am looking for the same servlet xml-rpc example, Have you found it ?
nojkan -
Using the fireworks XML RPC server
Hi, I am trying to use the XML RPC server in fireworks to export pages of a PNG.
The relevant help url: http://help.adobe.com/en_US/fireworks/cs/extend/WS5b3ccc516d4fbf351e63e3d1183c949219-7ffe. html
And the pdf version: http://help.adobe.com/en_US/fireworks/cs/extend/fireworks_cs5_extending.pdf (chapter 7)
All I want to do is open a file, call exportPages(), and close it. So far this has been a very painful experience. I have CS5 Design Premium on a mac (os 10.5) if it matters. But I have the same problem 1 with my copy of CS3.
Problem 1
Fireworks never ever returns a document id. It also does not return an error number. The value attribute of the returned obj element and any error attributes are empty. Here are some example calls and responses:
request: <func name="createDocument" obj="fw"></func>
response: <return><obj value="" class="DocumentClass"></obj></return>'
request: <func name="closeDocument" obj="fw"><string order="0" value="0" /><bool order="1" value="false" /></func>
response: <return error=""></return>
Note the value of the response is empty. This is always the case, unless I get something back that is not an integer. For instance. I am able to get the path url of the open doc:
request: <func name="getDocumentPath" obj="fw"></func>
response: <return><string value="file:///Macintosh%20HD/Users/me/work/somefile.png"></string></return>
Is anyone else using this with any success? Will a FW dev some here and set me straight? I am opening a socket with python like this:
import socket
self._sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self._sock.connect(('localhost', 12124))
It seems like anything that is an int on FW end doesn't come through the response?
Problem 2
When I open a file that was created in CS3 with the API, a blocking dialog pops up asking about converting the fonts. FW will not return my request until this dialog is dismissed. Is there any way around this? This pretty much nullifies any automation with fireworks on files create by an older version.
Any help or insight into either of these would be extraordinarily helpful. Or if you have a way to export pages from a FW PNG without running fireworks, I would love love love to hear it. Judging by the RPC documentation, the availability of info online (virtually none!) and my experience with it, it seems adobe doesn't care about it all that much.Hi Priyanka. It seems you are using the JS api? Flash? I am trying to use this via the XML RPC server in fireworks. Those are precisely the calls I am making to the RPC server with no avail: they do not return document ids. If you get a chance, can you (or anyone) run the following python code? Just open fireworks CS5, open a file and run this python code. It should return (print) the document id of the current document in a value="" attribute.
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("localhost", 12124))
dom = '<func name="getDocumentDOM" obj="fw"><string order="0" value="document" /></func>\0'
s.send(dom)
res = []
r = s.recv(1)
while ord(r):
res.append(r)
r = s.recv(1)
print ''.join(res)
Like I said earlier, this code works for me with CS3, but does not work with CS5; value="" is empty.
I am not running this on a server. I am just trying to do some batch processing.
Ben
Maybe you are looking for
-
How to I get my data from my old address book?
I upgraded from Tiger to Snow Leopard. Before installing Snow Leopard, I backed all data with Super Duper because I knew the hard drive would be wiped before the install. I can find the old address book backup in a folder under Super Duper but I cann
-
Adapter Engine(decentral) or PCK over Internet ?
Hello Friends, In our scenario we have to be decide to choice between <b>1.XI with PCK;</b> and <b>2.XI with decentral AE over Internet.</b> Integration Server has been configured to be seen over Internet. Location of business System is out of the In
-
Sap script - please use meaningfull subject titles....
Hi, My requirement is to print theree texts in theree different lines.So I declared the texts in SAP script with the command "/". Buut in spool I am getting all the three texts in one single line.Can anyone suggest how to get the texts in three diffe
-
I can't add any add ons at all
I can't use any add-ons, themes, etc. All of them cause my nav bar to turn red and say I haven't enough data for that site. I'm afraid a virus will creep in if I use any add-ons. What fun is a browser that you can personalize. I know I have beta, but
-
mi iPod touch.. empeze teniendo problemas con el boton home.. despues de su compra como 3 meses.. tenia q precionar duro.. para q funcionara... o bastatnte tiempo.. tratava de no utilizarlo mucho por lo mismo pero creo q en el tiempo q lo guarde se a