Problem in a class :(
Could someone help me to find why the intRead method doesn't work ???
import java.io.*;
public class EntreeFormatee {
public static void main(String[] args) {
// M�thode permettant de lire une valeur int...
public int intRead() // the error is here...it's written : "Syntax error on token "(", ";" expected"
try
for(int i = 0; i < 5; i++)
if(tokenizer.nextToken()==tokenizer.TT_NUMBER)
return (int)tokenizer.nval; // La valeur est num�rique donc renvoyer comme int
else
System.out.println("Entree incorrecte: " + tokenizer.sval + " Saisissez un entier une nouvelle fois");
continue; // R�ssayer l'op�ration de lecture
System.out.println("Cinq erreurs de lecture pour la valeur int" + " - programme termin�");
System.exit(1); // Terminer le programme
return 0;
catch(IOException e) // Erreur de la lecture du nextToken()
System.out.println(e); // Afficher l'erreur
System.exit(1);
return 0;
// plus d'autres m�thodes pour lire d'autres types de donn�es...
// Objet pour d�couper en cha�nes distinctes l'entr�e du flot d'entr�e standard
private StreamTokenizer tokenizer = new StreamTokenizer(new InputStreamReader(System.in));
public static void main(String[] args) {
public int intRead() // the error is here...it's written : "Syntax error on token "(", ";" expected"
{ [/code]
Java doesn't allow nested methods; define your intRead method somewhere else at
the clas level (static) or at the object level.
kind regards,
Jos
Similar Messages
-
Getting problem with DOMImplementation classes method getFeature() method
hi
getting problem with DOMImplementation classes method getFeature() method
Error is cannot find symbol getFeature()
code snippet is like...
private void saveXml(Document document, String path) throws IOException {
DOMImplementation implementation = document.getImplementation();
DOMImplementationLS implementationLS = (DOMImplementationLS) (implementation.getFeature("LS", "3.0"));
LSSerializer serializer = implementationLS.createLSSerializer();
LSOutput output = implementationLS.createLSOutput();
FileOutputStream stream = new FileOutputStream(path);
output.setByteStream(stream);
serializer.write(document, output);
stream.close();
problem with getFeature() methodYou are probably using an implementation of DOM which does not implement DOM level-3.
-
Problems with inner classes in JasminXT
I hava problems with inner classes in JasminXT.
I wrote:
;This is outer class
.source Outer.j
.class Outer
.super SomeSuperClass
.method public createrInnerClass()V
.limit stack 10
.limit locals 10
;create a Inner object
new Outer$Inner
dup
invokenonvirtual Outer$Inner/<init>(LOuter;)V
;test function must print a Outer class name
invokevirtual Outer$Inner/testFunction ()V
.end method
;This is inner class
.source Outer$Inner.j
.class Outer$Inner
.super java/lang/Object
.field final this$0 LOuter;
;contructor
.method pubilc <init>(LOuter;)V
.limit stack 10
.limit locals 10
aload_0
invokenonvirtual Object/<init>()V
aload_0
aload_1
putfield Inner$Outer/this$0 LOuter;
return
.end method
;test
.method public testFunction ()V
.limit stack 10
.limit locals 10
;get out object
getstatic java/io/PrintStream/out java/io/PrintStream;
aload_0
invokevirtual java/lang/Object/getClass()java/lang/Class;
;now in stack Outer$Inner class
invokevirtual java/Class/getDeclaringClass()java/lang/Class;
;but now in stack null
invokevirtual java/io/PrintStream/print (Ljava/lang/Object;)V
.end methodI used dejasmin. Code was equal.
What I have to do? Why getDeclatingClass () returns null, but in dejasmin code
it returns Outer class?Outer$Inner naming convention is not used by JVM to get declaring class.
You need to have proper InnerClasses attribute (refer to http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#79996)
in the generated classes. Did you check using jclasslib or another class file viewer and verified that your .class files have proper InnerClasses attribute? -
Problem Accessing Protocol Classes in INBOUND PROXY
Hi guys.
Im having problems accessing Protocol Classes in a inbound proxy.
I have this code that is copied from:
http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/frameset.htm
DATA: lo_server_context TYPE REF TO if_ws_server_context,
lo_payload_protocol TYPE REF TO if_wsprotocol_payload.
lo_server_context = cl_proxy_access=>get_server_context( ).
lo_payload_protocol =
lo_server_context->get_protocol( if_wsprotocol=>payload ).
But Im getting this error:
The result type of the function method cannot be converted into the type lo_payload_protocol
If I try to get the attachment protocol with this code:
DATA: lo_server_context TYPE REF TO if_ws_server_context,
lo_attachment_prtcl TYPE REF TO IF_WSPROTOCOL_ATTACHMENTS.
lo_server_context = cl_proxy_access=>get_server_context( ).
lo_attachment_prtcl = lo_server_context->get_protocol( if_wsprotocol=>ATTACHMENTS ).
Im getting the same error.
What am I doing wrong? It' s code copied fror SAP Library!!!
Thanks a lot.hi,
you are choosing wrong type for lo_payload_protocol.
you must change like this
lo_payload_protocol TYPE REF TO IF_WSPROTOCOL.
regards,
orhan -
Bean problem: No interface classes found
Hi ;
I try to create a adapter . according to tutorial "How To Create Modules for the J2EE Adapter Engine"
https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e&overridelayout=true
Although I did all steps in it , I copied sda files and extract them then I imported them to the project but I get this error in Netweaver Studio "Bean problem: No interface classes found" while creating ejb file.
the document says you must close and reopen project when you come accross this error but it doesnt work?
Is there any one solve this error?
ps: I use NWDS 7.0.19 , I copied aii_af_lib.sda, aii_af_svc.sda and aii_af_cpa_svc.sda files from PI 7.01Hi Tuncer!
Did you download and "import" these JAR files into your NWDS Build Path - classpath variables:
com.sap.aii.af.lib.mod.jar <bin>/ext/com.sap.aii.af.lib/lib
sap.comtcloggingjavaimpl.jar <bin>/system
com.sap.aii.af.svc_api.jar <bin>/services/com.sap.aii.af.svc/lib
com.sap.aii.af.cpa.svc_api.jar <bin>/services/com.sap.aii.af.cpa.svc/lib
com.sap.aii.af.ms.ifc_api.jar <bin>/interfaces/com.sap.aii.af.ms.ifc/lib
<bin> stands for: /usr/sap/<SID>/<instance-id>/j2ee/cluster/bin in a PI 7.1 system.
Windows -> Preferences -> Build Path -> Classpath Variables -> New ...
Choose a name of your choice and then select the JAR files mentioned above.
This should resolve your problem.
Regards,
Volker -
Problem refreshing the classes
I have problem refreshing the class with Tomcat 4.1 Server. I make changes in my class and they just don't reflect unless I restart the server. I don't want to refresh the server all the time. Is there any setting by which I can tell the server not to the version ffrom the memory. I even deleted that class from the classes directory but still the server would not know it.
Thank youOop's I am sorry. I did some terrible mistake. I am really sorry.
Please Ignore this question -
WARNING: Problem validating implementation class. Exception declaration mis
I have created sample class using JDevStudio10.1.3
Added method getX() throws Ex (Ex implements Exception)
Select class and generated J2EE 1.4 RPC webservices
Got the warning :
Generating WSDL and mapping file
WARNING: Problem validating implementation class. Exception declaration mismatch between Implementation: mypackage.Class3 and Interface: mypackage.MyWebService3. Impl class Method: X declares exceptions not declared by the interface (mypackage.Exp)
Now When I generated client proxy from the wsdl generated, Ex class is not getting generated.
Can some one help me please.
Thanks in advanceIf you are using Ex in the implemetation class, make sure that you also include the same in the interface (or SEI).
If the implementation looks something like:
public void doSomething() throws Ex {
System.out.println("Is there something to do, now ?");
then the SEI should be:
public void doSomething() throws Ex, RemoteException;
If your have ommited Ex, then you will have the warning you are seing, and there wont be any artifact generated for Ex in the WSDL.
Because the Ex exception was not mapped to any WSDL artifact, there is no way you will see the Ex exception generated on the client side (or proxy).
I have been able to reproduce your error message, so you should be all good.
WARNING: Problem validating implementation class. Exception declaration mismatch between Implementation: bugyyy.MyServiceImpl and Interface: bugyyy.MyWebService. Impl class Method: doSomething declares exceptions not declared by the interface (bugyyy.Ex)
Hope this helps,
Eric -
Problem calling AS3 class's methods from Flex Project
Sorry if this is a stupid question, but after 2 days of Web
searching and 2 books give up; I am a Java and c# programmer and am
having problems calling AS3 classes (in packages) from Flex Builder
2 Flex Projects; the AS3 classes work great as Flex Builder "AS3
Projects", but when I try to use the classes in a Flex Builder
"Flex Project" I am able to see and set their properties, but
cannot see (through "code completion") their methods (unless the
class extends another AS3 class; and in that case I can see the
base class's methods). Here is the code:
AS3 Example Class:
package asText {
public class CheckWord {
public var strData:String;
public var strAProperty:String;
public var intAProperty:int;
// Constructor
public function CheckWord() {
public function TestMethod():void {
trace("test...");
public function WordLength():int {
var intLength:int = 0;
trace(strData);
intLength = strData.length;
return intLength;
} // From Method WordLength
} // From Class CheckWord
} // From Package asText
The MXML code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute"
width="442" height="488" horizontalAlign="center"
verticalAlign="middle"
backgroundGradientColors="[#c0c0c0, #c0c0c0]"
xmlns:asTheText="asText.*"
>
<asTheText:CheckWord strData="Test words" />
<mx:Panel title="Welcome to ........" width="337"
height="393" horizontalAlign="center" verticalAlign="middle"
layout="absolute" y="15" x="50">
<mx:Text text="First Name" enabled="true" width="68"
fontWeight="bold" x="27.25" y="36"/>
<mx:TextInput id="txtFName" x="112.25" y="34"/>
<mx:Text text="Last Name" enabled="true" width="68"
fontWeight="bold" x="27.25" y="66"/>
<mx:TextInput x="112.25" y="64" id="txtLName"/>
<mx:Text text="email address" enabled="true" width="87"
fontWeight="bold" x="17.25" y="96"/>
<mx:TextInput width="189" id="txtEmail" left="112.25"
top="94"/>
<mx:Button id="butSubmit" label="Submit" x="95" y="194"
click="asTheText:TestMethod();"/>
..............and so on ............
All this does is give me an 1180 error:
1180: Call to a possibly undefined method TestMethod.
flexConveyMovie1.mxmlThanks, I have it working; I was not assigning an "ID" to the
"MXML use of the class" (whatever the formal name for that is;
like: <asTheText:CheckWord id="MyText" strData="The Data" />
) and then I was not referencing that ID in what I am refering to
as calling methods for the Class; like:
<mx:Button id="butTest" label="Test Function" x="39"
y="208" click="MyText.TestMethod();"/>
Also, I did some tests on this, and I am shocked that
apparently neither of these two "uses"(?) of a custom AS3 class
actually "call" the Class's constructor. Does that make sense or is
that the result of how I am structuring this?
Phil -
Inheritance problem with parent class calling child class
I have a problem with inheritance with a parent class calling a child class method. Below is the example pseudocode code and my problem:
public abstract class A {
protected void function1 ( ) { }
protected void function2 () {
//calls function1();
function1();
public abstract class B extends A {
protected void function1 () {
// do stuff
public class C extends B {
protected void function1 () {
// do stuff
super.function1 ();
}I have an object instance of class C created and its function2() is invoked.
My problem is, while in function2(), which belongs to abstract class A and the method call to function 1() is called, the call invokes the function1() of class B. Shouldn't the call invoke function 1() of class C instead? And then function1() of class B will be called after due to the super.function1(). It's not behaving like I thought it would.
Edited by: crono77 on Jan 10, 2008 8:13 PMNevermind, i found my error :)
-
Please Help!!! Problems access other classes methods
I am having a problem accessing another classes methods varibles. I have tried a number of ways but with no success. Here is my problem:
I have the main(), from there it's calls the class GetVar(), GetVar stores info in Class HousingForVar(), and finially, I have a class TryinToTalkToHousing() that I use to access HousingForVar()'s methods. I know I can use the keyword new but if I do that then it erases over the data I put in. Please can anyone help, this has been driving me nutz all day. Thank you in advance.
Roman03
***EACH CLASS IS A DIFFERENT FILE****
public class TestMain
public static void main( String args[] )
GetVar getVarible = new GetVar();
getVarible.heroF();
import java.util.Scanner;
public class GetVar
public void heroF()
String someEntered;
Scanner input = new Scanner( System.in);
System.out.println("Enter a string: ");
someEntered = input.next();
HousingForVar houseForData = new HousingForVar(someEntered);
System.out.printf("Retieved from Class GetVar, you entered: %s\n", houseForData.getCollectVar() );
import java.util.Scanner;
public class HousingForVar
private String getData;
public HousingForVar(String enterInfo)
getData = enterInfo;
public void setGetVar(String enterInfo)
getData = enterInfo;
public String getCollectVar()
return getData;
import java.util.Scanner;
public class TryinToTalkToHousing
public void someMeth()
String getInfoFromHousing;
System.out.printf("Started out at TryinToTalkToHousing Class\n Retieved from Class GetVar from %s\n",
houseForData.getCollectVar() );
\* I know this doesn't work, but if I make a new object of the class HousingForVar it's going to write over my input, so what do I do? I am still learning, Please help*\I don't use 1.5, so you'll have to convert it back, but see if you can follow the flow of this
import java.io.*;
class TestMain
GetVar getVarible;
public TestMain()
getVarible = new GetVar();
getVarible.heroF();
System.out.println("******");
new TryinToTalkToHousing(this).someMeth();
public static void main(String[] args){new TestMain();}
class GetVar
HousingForVar houseForData;
public void heroF()
try
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter a string: ");
String someEntered = br.readLine();
houseForData = new HousingForVar(someEntered);
System.out.println("Retieved from Class GetVar, you entered: "+houseForData.getCollectVar()+"\n");
catch(Exception e){e.printStackTrace();}
class HousingForVar
private String getData;
public HousingForVar(String enterInfo)
getData = enterInfo;
public void setGetVar(String enterInfo)
getData = enterInfo;
public String getCollectVar()
return getData;
class TryinToTalkToHousing
TestMain parent;
public TryinToTalkToHousing(TestMain t){parent = t;}
public void someMeth()
System.out.println("Started out at TryinToTalkToHousing Class\n"+
"Retieved from Class GetVar, you entered: "+parent.getVarible.houseForData.getCollectVar()+"\n");
} -
WARNING: Problem validating implementation class. Failed to load class:
when i am running plsqlAssembler.jar file for wsa.jar with all other atributes , i am getting this warning WARNING: Problem validating implementation class. Failed to load class.
Please if anybody knows about this reply me,
thanks in advance.If you are using Ex in the implemetation class, make sure that you also include the same in the interface (or SEI).
If the implementation looks something like:
public void doSomething() throws Ex {
System.out.println("Is there something to do, now ?");
then the SEI should be:
public void doSomething() throws Ex, RemoteException;
If your have ommited Ex, then you will have the warning you are seing, and there wont be any artifact generated for Ex in the WSDL.
Because the Ex exception was not mapped to any WSDL artifact, there is no way you will see the Ex exception generated on the client side (or proxy).
I have been able to reproduce your error message, so you should be all good.
WARNING: Problem validating implementation class. Exception declaration mismatch between Implementation: bugyyy.MyServiceImpl and Interface: bugyyy.MyWebService. Impl class Method: doSomething declares exceptions not declared by the interface (bugyyy.Ex)
Hope this helps,
Eric -
Problems with String[] Class Object
Hi guys,
I'm writing a web server who should invoke a method of a class when asked by a client.
My problem is that if the method that should be invoked has a String[] parameter the web server is unable to invoke it and throws a java.lang.IllegalArgumentException: argument type mismatch.
Useful pieces of code to understand are the following:
//create the Class[] to pass as parameter to the getMethod method
Class[] paramType = {String[].class};
//find the class "className" and create a new instance
Class c = Class.forName(className);
Object obj = c.newInstance();
//the getMethod should find in the class c the method called nameMeth
// having paramType (i.e. String[]) as parameter type...
Method theMethod = c.getMethod(nameMeth, paramType);
//here's the problematic call!!
theMethod.invoke(obj, params);I've noted that System.out.println(theMethod); prints the signature of the method with the parameter type java.lang.String[].
System.out.println(paramType[0]); instead prints [Ljava.lang.String;
I know that [L means that it is an array, so why do you think that I'm having an argument type mismatch?
Thank youI had no problems making that work.import java.lang.reflect.Method;
public final class StringArray {
public static final String CLASSNAME = "StringArray";
public static final String METHODNAME = "myMethod";
public static final String[] sa = { "a", "b"};
// automatic no-args constructor
public final void myMethod(String[] sa) {
for(int i=0;i<sa.length;++i) {
System.out.println(sa);
public static final void main(String[] arg) throws Exception {
//create the Class[] to pass as parameter to the getMethod method
Object[] params = { sa };
Class[] paramType = {sa.getClass()};
//find the class "className" and create a new instance
Class c = Class.forName(CLASSNAME);
Object obj = c.newInstance();
//the getMethod should find in the class c the method called nameMeth
// having paramType (i.e. String[]) as parameter type...
Method theMethod = c.getMethod(METHODNAME, paramType);
//here's the problematic call!!
theMethod.invoke(obj, params); -
Problems with Adler32 class in JDK 1.5 (not tried 1.6)
When I use the java.util.zip.Adler32-class for generating Adler32-checksums, I found a couple of strange problems. When the total filesize (generating checksums of several files with the same checksum-object, using reset() in between) is 31999 bytes or greater, it gives pseudorandom output for the first file that exceeds the 31999 bytes. By running the test-program several times in a row, it seems like the output changes every second, as if random data was generated with the second counter as a seed. All the other checksums seem correct, and they do not change. A workaround that works for a series of only small files is to create a new Adler32-object for every file that needs its checksum generated, but that proves itself insufficient when a single file exceeds 31998 bytes of size (31999 or above).
I've tried different inputstreams and various methods of using the update(xx)-functions of the Adler32, but I always get the same results. Is this a known bug (Note: JDK 1.5, not 1.6)? Or am I doing something obviously wrong? Example source code can be provided if necessary.R,
I'm disappointed to see that you haven't received any replies to this. I am experiencing a very similar problem. What I have noticed is that the problem occurs when the combo-box is forced to be heavy-weight (meaning it has to draw itself outside the bounds of the window). In those cases, I can never pick a different value from the combo-box in the table. The exact same app run under 1.3.1 does not have any problems. Further, combo-boxes not in table views do not seem to have any problems even when they are heavy-weight.
Paul -
Problem with JFrame class.
To risolve my problem i need for few diferent frame
( for esample in one i put JTextFild that take the user input, in a nother one i need for program output ) . But, th problem is, all my frames using the same object.
If i construct diferent JFrame window class i have problem that i don't acess in the same object from all the window. And if i dont use a object, i have static acess .
I risolve the problem with 1 JFrame class with diferent constructors, but i wont a diferent way to risolve my problem, because there are few windows.
Help me.....Make the class that extends JFrame an inner class of the the main class. You can then access all members of the outer class.
-
Problem to generate classes from a gsoap server's wsdl with wsimport
Hello,
I trie for a long time to generate my client classes from a wsdl file with wsimport. The wsdl file was generated by gsoap.
Here, the wsdl file :
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="form"
targetNamespace="https://enterprise-name-masked.com/form.wsdl"
xmlns:tns="https://enterprise-name-masked.com/form.wsdl"
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:generic="generic"
xmlns:xop="http://www.w3.org/2004/08/xop/include"
xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
xmlns:form="form"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<schema targetNamespace="generic"
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:generic="generic"
xmlns:xop="http://www.w3.org/2004/08/xop/include"
xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
xmlns:form="form"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<import namespace="http://www.w3.org/2004/08/xop/include"/>
<import namespace="http://www.w3.org/2004/11/xmlmime"/>
<import namespace="http://www.w3.org/2003/05/soap-encoding"/>
<simpleType name="service">
<restriction base="xsd:string">
<enumeration value="service-none"/><!-- enum const = 0 -->
<enumeration value="service-ident"/><!-- enum const = 1 -->
<enumeration value="service-pool"/><!-- enum const = 2 -->
<enumeration value="service-hwr"/><!-- enum const = 3 -->
<enumeration value="service-form"/><!-- enum const = 4 -->
<enumeration value="service-document"/><!-- enum const = 5 -->
</restriction>
</simpleType>
<simpleType name="result-code">
<restriction base="xsd:string">
<enumeration value="ok"/><!-- enum const = 0 -->
<enumeration value="already-exists"/><!-- enum const = 1 -->
<enumeration value="not-found"/><!-- enum const = 2 -->
<enumeration value="cant-connect"/><!-- enum const = 3 -->
<enumeration value="exception"/><!-- enum const = 4 -->
<enumeration value="bad-conversion"/><!-- enum const = 5 -->
<enumeration value="bad-values"/><!-- enum const = 6 -->
<enumeration value="session-not-found"/><!-- enum const = 7 -->
<enumeration value="initialization-failed"/><!-- enum const = 8 -->
</restriction>
</simpleType>
<complexType name="result">
<sequence>
<element name="code" type="generic:result-code" minOccurs="1" maxOccurs="1"/>
<element name="details" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</schema>
<schema targetNamespace="form"
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:generic="generic"
xmlns:xop="http://www.w3.org/2004/08/xop/include"
xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
xmlns:form="form"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<import namespace="http://www.w3.org/2004/08/xop/include"/>
<import namespace="http://www.w3.org/2004/11/xmlmime"/>
<import namespace="http://www.w3.org/2003/05/soap-encoding"/>
<simpleType name="area-type">
<restriction base="xsd:string">
<enumeration value="area-type-text"/><!-- enum const = 0 -->
<enumeration value="area-type-numeric"/><!-- enum const = 1 -->
<enumeration value="area-type-date"/><!-- enum const = 2 -->
<enumeration value="area-type-checkbox"/><!-- enum const = 3 -->
<enumeration value="area-type-slider"/><!-- enum const = 4 -->
<enumeration value="area-type-draw"/><!-- enum const = 5 -->
<enumeration value="area-type-identifier"/><!-- enum const = 6 -->
</restriction>
</simpleType>
<simpleType name="format">
<restriction base="xsd:string">
<enumeration value="A5"/><!-- enum const = 0 -->
<enumeration value="A4"/><!-- enum const = 1 -->
<enumeration value="A3"/><!-- enum const = 2 -->
<enumeration value="A2"/><!-- enum const = 3 -->
<enumeration value="A1"/><!-- enum const = 4 -->
<enumeration value="A0"/><!-- enum const = 5 -->
</restriction>
</simpleType>
<complexType name="area">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="x" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="y" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="width" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="height" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="comments" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="area-type" type="form:area-type" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="area-with-string">
<sequence>
<element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
<element name="string" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="area-with-integer">
<sequence>
<element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
<element name="integer" type="xsd:int" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="area-with-range">
<sequence>
<element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
<element name="lower" type="xsd:double" minOccurs="1" maxOccurs="1"/>
<element name="upper" type="xsd:double" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="areas">
<sequence>
<element name="areas" type="form:area" minOccurs="0" maxOccurs="unbounded"/>
<element name="string-areas" type="form:area-with-string" minOccurs="0" maxOccurs="unbounded"/>
<element name="integer-areas" type="form:area-with-integer" minOccurs="0" maxOccurs="unbounded"/>
<element name="range-areas" type="form:area-with-range" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="group">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="areas" type="form:areas" minOccurs="1" maxOccurs="1"/>
<element name="groups" type="form:group" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="background">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="md5" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="mime" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="num-page" type="xsd:int" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="pattern-type">
<sequence>
<element name="print-once" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="has-identifier" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="page">
<sequence>
<element name="num-page" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<element name="format" type="form:format" minOccurs="1" maxOccurs="1"/>
<element name="is-portrait" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<element name="background" type="form:background" minOccurs="1" maxOccurs="1"/>
<element name="areas" type="form:areas" minOccurs="1" maxOccurs="1"/>
<element name="groups" type="form:group" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="document-new">
<sequence>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="pattern-type" type="form:pattern-type" minOccurs="1" maxOccurs="1"/>
<element name="form-pages" type="form:page" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="document">
<sequence>
<element name="uuid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="pattern-type" type="form:pattern-type" minOccurs="1" maxOccurs="1"/>
<element name="form-pages" type="form:page" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="document-info">
<sequence>
<element name="uuid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="page-count" type="xsd:int" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<complexType name="Data">
<sequence>
<element ref="xop:Include" minOccurs="1" maxOccurs="1"/>
</sequence>
<attribute ref="xmime4:contentType" use="optional"/>
</complexType>
<complexType name="login-response">
<sequence>
<element name="result" type="generic:result" minOccurs="1" maxOccurs="1"/>
<element name="session" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
<!-- operation request element -->
<element name="login" type="xsd:string"/>
<!-- operation request element -->
<element name="password" type="xsd:string"/>
<!-- operation response element -->
<element name="result" type="generic:result"/>
<!-- operation response element -->
<element name="uuid" type="xsd:string"/>
<!-- operation request element -->
<element name="session" type="xsd:string"/>
<!-- operation request element -->
<element name="aform" type="form:document-new"/>
<!-- operation response element -->
<element name="form" type="form:document"/>
<!-- operation request element -->
<element name="md5" type="xsd:string"/>
<!-- operation response element -->
<element name="data" type="form:Data"/>
<!-- operation response element -->
<element name="exists" type="xsd:boolean"/>
<!-- operation response element -->
<element name="backgrounds" type="form:background"/>
<!-- operation response element -->
<element name="forms" type="form:document"/>
<!-- operation response element -->
<element name="forms-info" type="form:document-info"/>
</schema>
</types>
<message name="login">
<part name="login" element="form:login"/>
<part name="password" element="form:password"/>
</message>
<message name="uuid-response">
<part name="result" element="form:result"/>
<part name="uuid" element="form:uuid"/>
</message>
<message name="quit">
<part name="session" element="form:session"/>
</message>
<message name="response">
<part name="result" element="form:result"/>
</message>
<message name="new-form">
<part name="session" element="form:session"/>
<part name="aform" element="form:aform"/>
</message>
<message name="free-form">
<part name="session" element="form:session"/>
<part name="uuid" element="form:uuid"/>
</message>
<message name="get-form">
<part name="session" element="form:session"/>
<part name="uuid" element="form:uuid"/>
</message>
<message name="document-response">
<part name="result" element="form:result"/>
<part name="form" element="form:form"/>
</message>
<message name="get-file">
<part name="session" element="form:session"/>
<part name="md5" element="form:md5"/>
</message>
<message name="data-response">
<part name="result" element="form:result"/>
<part name="data" element="form:data"/>
</message>
<message name="set-file">
<part name="session" element="form:session"/>
<part name="md5" element="form:md5"/>
<part name="data" element="form:data"/>
</message>
<message name="file-exists">
<part name="session" element="form:session"/>
<part name="md5" element="form:md5"/>
</message>
<message name="exists-response">
<part name="result" element="form:result"/>
<part name="exists" element="form:exists"/>
</message>
<message name="list-form-backgrounds">
<part name="session" element="form:session"/>
<part name="uuid" element="form:uuid"/>
</message>
<message name="list-backgrounds-response">
<part name="result" element="form:result"/>
<part name="backgrounds" element="form:backgrounds"/>
</message>
<message name="list-forms">
<part name="session" element="form:session"/>
</message>
<message name="list-forms-response">
<part name="result" element="form:result"/>
<part name="forms" element="form:forms"/>
</message>
<message name="list-forms-info">
<part name="session" element="form:session"/>
</message>
<message name="list-forms-info-response">
<part name="result" element="form:result"/>
<part name="forms-info" element="form:forms-info"/>
</message>
<portType name="formPortType">
<operation name="login">
<documentation>Service definition of function form__login</documentation>
<input message="tns:login"/>
<output message="tns:uuid-response"/>
</operation>
<operation name="quit">
<documentation>Service definition of function form__quit</documentation>
<input message="tns:quit"/>
<output message="tns:response"/>
</operation>
<operation name="new-form">
<documentation>Service definition of function form__new_form</documentation>
<input message="tns:new-form"/>
<output message="tns:uuid-response"/>
</operation>
<operation name="free-form">
<documentation>Service definition of function form__free_form</documentation>
<input message="tns:free-form"/>
<output message="tns:response"/>
</operation>
<operation name="get-form">
<documentation>Service definition of function form__get_form</documentation>
<input message="tns:get-form"/>
<output message="tns:document-response"/>
</operation>
<operation name="get-file">
<documentation>Service definition of function form__get_file</documentation>
<input message="tns:get-file"/>
<output message="tns:data-response"/>
</operation>
<operation name="set-file">
<documentation>Service definition of function form__set_file</documentation>
<input message="tns:set-file"/>
<output message="tns:response"/>
</operation>
<operation name="file-exists">
<documentation>Service definition of function form__file_exists</documentation>
<input message="tns:file-exists"/>
<output message="tns:exists-response"/>
</operation>
<operation name="list-form-backgrounds">
<documentation>Service definition of function form__list_form_backgrounds</documentation>
<input message="tns:list-form-backgrounds"/>
<output message="tns:list-backgrounds-response"/>
</operation>
<operation name="list-forms">
<documentation>Service definition of function form__list_forms</documentation>
<input message="tns:list-forms"/>
<output message="tns:list-forms-response"/>
</operation>
<operation name="list-forms-info">
<documentation>Service definition of function form__list_forms_info</documentation>
<input message="tns:list-forms-info"/>
<output message="tns:list-forms-info-response"/>
</operation>
</portType>
<binding name="form" type="tns:formPortType">
<SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="login">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="quit">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="new-form">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="free-form">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="get-form">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="get-file">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="set-file">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="file-exists">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="list-form-backgrounds">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="list-forms">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
<operation name="list-forms-info">
<SOAP:operation style="rpc"/>
<input>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal" namespace="form"/>
</output>
</operation>
</binding>
<service name="form">
<documentation>gSOAP 2.7.10 generated service definition</documentation>
<port name="form" binding="tns:form">
<SOAP:address location="https://enterprise-name-masked.com/cgi-bin/form.fcgi"/>
</port>
</service>
</definitions>And here, you can find the generated errors :
wsimport -s Sources -b http://www.w3.org/2004/08/xop/includ
e -b http://www.w3.org/2004/11/xmlmime form.wsdl
parsing WSDL...
[WARNING] src-resolve: Cannot resolve the name 'xmime4:contentType' to a(n) 'attribute declaration' component.
line 215 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
[WARNING] s4s-elt-invalid-content.1: The content of 'Data' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
line 215 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
[WARNING] src-resolve.4.2: Error resolving component 'generic:result'. It was detected that 'generic:result' is in namespace 'generic', but components
from this namespace are not referenceable from schema document 'file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP
/WSImport/Test/Form/form.wsdl#types?schema2'. If this is the incorrect namespace, perhaps the prefix of 'generic:result' needs to be changed. If this
is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Re
cherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2'.
line 230 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
[WARNING] src-resolve: Cannot resolve the name 'xop:Include' to a(n) 'element declaration' component.
line 213 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
[WARNING] Ignoring SOAP port "form": it uses non-standard SOAP 1.2 binding.
You must specify the "-extension" option to use this binding.
line 533 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl
[WARNING] Service "form" does not contain any usable ports. try running wsimport with -extension switch.
line 531 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl
generating code...
compiling code...Could you tell me how to correctly generate my classes in this case ?
Thank you.
Edited by: morphet on May 30, 2008 6:12 AMAlchemista,
Not sure if you were able to solve your problem..but I was trying to do exactly what you were trying to do.. access a datasource from a simple Java client. However, you cannot do so by simply writing the Java class and running it. The simple Java client has to be deployed as a J2EE Application Client. The following tutorial shows how to create a J2EE Application Client using the non-J2EE Java class you have written.
http://developer.java.sun.com/developer/technicalArticles/J2EE/appclient
The article talks about accessing EJBs from a J2EE App. Client.. but since you only want to access the DataSource, just skip all the screens until it asks you to register the JNDI DataSource resources...
Let me know if you have any questions. You can email me at [email protected]
I hope this helps. -
Dear Experts:
I have a query.Its regarding Asset master data. When i open an asset in class of Motor vehicle, in input data i also input Quantity (mostly 1) But after creation asset master data of the asset created shows its quantity as 3. Please note that i do not use any reference while creating it. Please guide what possible problem can be.
RegardsHi,
As per the SAP standard setting, we are not suppose to enter the quantity value in the qty field at the time of asset master creation.
Since qty value will be updated automatically while doing MIGO / F-90 only.
If you enter 1 earlier, then if you do MIGO / F-90 or 1 qty, then after posting of your acq entry, your asset will have 2 qty altogether. Prerequisite for this is that, the unit of measure in asset master and purchase order should match.
Coming to your issue, please make sure that, you have not posted any MIGO / F-90 entries to those 2 questioned assets.
Please check.
Regards,
Srinu
Maybe you are looking for
-
As of 5:30 pm yesterday my emails stopped coming in. When I open the account it shows I have 23 messages but nothing loads. I can still send messages and my internet connection is strong. How can I fix this?
-
While parsing XML file one of the elements of which consists picture of 20K size encoded with MIME the follow error appeares: Cannot parse file:An Internal Error occurred. Please post a Bug report to the XML Discussion forum at http://technet.oracle.
-
Differences between Ant launched and JDev launched JUnit causing an error
I've got a JUnit test which tests a web service. The test runs fine when launched in from JDeveloper but when launched from an Ant script I get: [junit] oracle.fabric.common.PolicyEnforcementException: Action header is required when addressing is enf
-
Re: multiple methods - Help
It looks you used it, what are you saving the extra 5 duke'd for ? Noah
-
Cany anyone help me convert my code to sort using integers and maybe using a Queue? Thanks in advance, I appreciate it. import java.util.*; public class RadixSort{ String[] input; int maxLength; public RadixSort(String[] sa){ input = sa;