Hello,
I'm trying to do more or less the same stuff. The problem is how to
make the GWT able to translate a simple call like this:
---------->
import org.apache.axis.client.*;
Service service = new Service();
Call call = (Call) service.createCall();
etc...
<---------
When I try to build this from inside the NetBeans IDE 6.1 the folowing
message occurs:
------->
Removing units with errors
[ERROR] Errors in 'file:/C:/Documents%20and%20Settings/
claude_antidot/My%20Documents/java_project/WebApplication1/src/java/
org/yournamehere/client/MainEntryPoint.java'
[ERROR] Line 59: No source code is available for type
org.apache.axis.client.Service; did you forget to inherit a required
module?
Computing all possible rebind results for
'org.yournamehere.client.MainEntryPoint'
Rebinding org.yournamehere.client.MainEntryPoint
Checking rule <generate-with
class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
[ERROR] Unable to find type
'org.yournamehere.client.MainEntryPoint'
[ERROR] Hint: Previous compiler errors may have made this
type unavailable
[ERROR] Hint: Check the inheritance chain from your
module; it may not be inheriting a required module or a module may not
be adding its source path entries properly
[ERROR] Build failed
<------
The aim (that runs perfectly as an applet) is to contact a PHP web
service.
Could you help me about this stuff?
NB: I inherits those stuffs:
<inherits name="com.google.gwt.user.User"/>
<inherits name="com.google.gwt.http.HTTP" />
<inherits name="com.google.gwt.json.JSON"/>
Thank you.
Claude
On Jul 25, 7:30 pm, Tom Hjellming <[EMAIL PROTECTED]>
wrote:
> Are you sure you don't have a "client" java file that is trying to
> import a "server" class? It's ok for a "server" class to import a
> "client" class but not the other way.
>
> Also, the "client" in the apache axis package path is not the same as
> the "client" in your GWT-based source code. If you have a "client" GWT
> java class importing "org.apache.axis.client.*", then that is the problem.
>
> Can you show us the import sections of your "client" java files?
>
> Tom
>
> Tereno wrote:
> > Yes pretty much.
>
> > It's like what you guys said, the server code is being dragged into
> > the GWT compiler and is probably being compiled into JavaScript. How
> > do I structure it such that it's not this way? They are already in
> > different packages.
>
> > On Jul 24, 3:45 pm, Tom Hjellming <[EMAIL PROTECTED]>
> > wrote:
>
> >> Are you getting the "No source code for org.apache.axis.client" error
> >> in the compilation of MyServiceImpl or for your interface files?
>
> >> Tom
>
> >> Tereno wrote:
>
> >>> Well I followed the way they showed in the example with the 2
> >>> interfaces and the implementation. I placed the Axis service creation
> >>> calls in the implementation and that's how I got those errors. Here's
> >>> my code:
>
> >>> import com.google.gwt.user.server.rpc.RemoteServiceServlet;
> >>> import org.apache.axis.client.Call;
> >>> import org.apache.axis.client.Service;
> >>> import javax.xml.namespace.QName;
> >>> import java.net.*;
>
> >>> public class MyServiceImpl extends RemoteServiceServlet implements
> >>> MyService{
> >>> public String myString(String s) {
> >>> Service service = new Service();
> >>> try {
> >>> Call call = (Call)service.createCall();
> >>> String endpoint =
> >>> "http://localhost:8080/server/soap/ResourceMgmt";
> >>> call.setTargetEndpointAddress(new URL(endpoint));
> >>> call.setOperationName( new QName("getResource"));
> >>> String input = "0001";
> >>> String answer = (String) call.invoke(new Object[]
> >>> {new
> >>> String(input)});
> >>> return answer;
> >>> }
> >>> catch (Exception e)
> >>> {
> >>> return "Error - " + e.getMessage();
> >>> }
> >>> //return "Received" + s;
>
> >>> }
> >>> }
>
> >>> On Jul 24, 1:44 pm, Tom Hjellming <[EMAIL PROTECTED]>
> >>> wrote:
>
> >>>> My GWT app makes Axis/SOAP calls from the server side without any
> >>>> problems. I just include the appropriate jar files into the Eclipse
> >>>> project.
>
> >>>> The "inherits" message makes me wonder if you have axis imports or calls
> >>>> inside "client" code though.
>
> >>>> Tom
>
> >>>> Tereno wrote:
>
> >>>>> Hi there,
>
> >>>>> So I'm trying to communicate with my SOAP service. I read from
> >>>>> somewhere that one way would be to make an RPC call to the server and
> >>>>> use the server to make the SOAP call. I attempted to do that but my
> >>>>> problem is that while my code compiles in Eclipse with the Axis
> >>>>> libraries, I get "No source code for org.apache.axis.client" type
> >>>>> errors where they ask if I forgot to inherit a required model. I am
> >>>>> wondering how would I overcome this. The library is in my classpath as
> >>>>> well as my buildpath so I'm not too sure how to rectify this.
>
> >>>>> An example of how to make a service call from the server to the SOAP
> >>>>> service would help as well as I'm fairly new to making SOAP calls.
> >>>>> Would I be able to use CXF instead of Axis to make the service calls?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---