Sorry for replying to my own post, but I found a way to "solve" my problem.
I changed the WSDL file to use import (WSDL) functionality rather than
include (XML Schema), which seems to work for wsdl2java.

However, my application now fails on the attempt to subscribe -- this time
with an error that returns a lot of results on Google, but none related to
Muse from what I can tell:

[Fatal Error] :1:62: White spaces are required between publicId and
systemId.
org.apache.muse.ws.addressing.soap.SoapFault: White spaces are required
between publicId and systemId.
    at org.apache.muse.core.AbstractResourceClient.invoke(
AbstractResourceClient.java:298)
[snip]

Any hints as to where my code could be producing a faulty SOAP message?
(Attached below is the main method that I'm using to test my implementation)

Cheers,
Felix
-----[ code ]-----

    public static void main(String[] args) {
        URI producer_uri = URI.create("
http://localhost:50100/ATPNewsProducer/";);
        EndpointReference producer_epr = new
EndpointReference(producer_uri);
        MyServiceProxy producer_proxy = new MyServiceProxy(producer_epr);

        producer_proxy.setTrace(true);

        URI consumer_uri = URI.create("http://localhost:50100/ATPNewsReader/
");
        EndpointReference consumer_epr = new
EndpointReference(consumer_uri);

        try {
            TopicNamespace topic_ns = new SimpleTopicNamespace("
http://tempuri.org/atp/news";);
            Topic topic_tennis = new SimpleTopic("tennis", topic_ns);

            Filter filter_tennis = new
TopicFilter(topic_tennis.getConcretePath());

            producer_proxy.subscribe(consumer_epr, filter_tennis, null);
        } catch (Exception e) { e.printStackTrace(); }

    }

-----[/code ]-----

On Tue, Apr 1, 2008 at 11:04 AM, Felix Geller <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm trying to implement a simple WSN scenario where one endpoint is
> the NotificationProducer and another the NotificationConsumer. The
> NotificationProducer works as far as I can test it at the moment (very
> similar to the sample WSDL provided with the tutorial). However, I
> couldn't find the sample WSDL for the NotificationConsumer interface.
> I've attempted to write up one myself, but generating the respective
> code fails. My code so far is posted at [1]. Running Muse's wsdl2java
> on my WSDL file results in the following error:
>
> java.lang.RuntimeException: [ID = 'NoTypeDef'] No type definition
> found for 
> '{http://docs.oasis-open.org/wsn/b-2}Notify<http://docs.oasis-open.org/wsn/b-2%7DNotify>
> '.
>       at
> org.apache.muse.tools.inspector.ResourceInspector.createJavaMethod(
> ResourceInspector.java:338)
> [snip]
>
> The schemata that I'm trying to "include" are files in the same
> directory as the WSDL file with names that correspond to the attribute
> values for schemaLocation in lines 19 and 23. I suspect this to be a
> beginner's problem as I'm new to XML Schema / WSDL -- please let me
> know what I'm missing here.
>
> Cheers,
> Felix
>
> [1] http://pastebin.com/d6961a8b6
>

Reply via email to