Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 25th Feb 2009, 05:15
ktyra ktyra is offline
Registered Developer
 
Join Date: Sep 2008
Posts: 17
Default isomorphic:loadWSDL usage unclear

I'm trying to use the loadWSDL tag and runing into a problem that I suspect shows I'm doing this completely wrong. I've added the following tag to my JSP page in order to preload a WSDL (By this all works fine with the dynamic loadXML).

Code:
<script type="text/javascript">
<isomorphic:loadWSDL url="http://localhost:8087/appserver/services/TestService.TestPort?wsdl" cache="3600"/>
</script>
When I load the page with Firefox I get an 'invalid label mime' error. Looking at the page source this is the result of the include tag, which doesn't look like code that would produce a WebService object. I'm sure I'm doing something wrong I just can't find anything more in the documentation on the subject. Thanks in advance for any help.

Code:
	<script type="text/javascript">
	 {
    isc:"http://smartclient.com/XSExtensions",
    mime:"http://schemas.xmlsoap.org/wsdl/mime/",
    soap:"http://schemas.xmlsoap.org/wsdl/soap/",
    soapenc:"http://schemas.xmlsoap.org/soap/encoding/",
    wsdl:"http://schemas.xmlsoap.org/wsdl/",
    xs:"http://www.w3.org/2001/XMLSchema",
    SchemaSet:{qualifyAll:"false", schemaNamespace:"", serviceNamespace:"ns:test.com", schema:null},
    WebService:{
        dataURL:"http://192.168.1.106:8087/appserver/services/TestService.TestPort/",
        serviceNamespace:"ns:test.com",
        soapStyle:"document",
        schemaImport:{namespace:"ns:test.com"},
        operations:{
            operation:{inputEncoding:"literal", inputMessage:"addUser", inputParts:"", name:"addUser", 
             outputEncoding:"literal",outputMessage:"addUserResponse", outputParts:"", 
             soapAction:"addUser"}
        },
        messages:{
            WSDLMessage:[
                {
                    ID:"message:Exception",
                    fields:{
                        field:{mustQualify:"true", name:"Exception", type:"Exception", xmlRequired:"true", 
                         xsElementRef:"true"}
                    }
                },
                {
                    ID:"message:addUserResponse",
                    fields:{
                        field:{mustQualify:"true", name:"addUserResponse", type:"addUserResponse", 
                         xmlRequired:"true",xsElementRef:"true"}
                    }
                },
                {
                    ID:"message:addUser",
                    fields:{
                        field:{mustQualify:"true", name:"addUser", type:"addUser", xmlRequired:"true", 
                         xsElementRef:"true"}
                    }
                }
            ]
        }
    }
}
	</script>
Reply With Quote
  #2  
Old 26th Feb 2009, 15:55
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,538
Default

This looks like it could result from an incomplete install, like perhaps the .ds.xml files in the isomorphic/schema directory are missing.
Reply With Quote
  #3  
Old 4th Mar 2009, 15:55
ktyra ktyra is offline
Registered Developer
 
Join Date: Sep 2008
Posts: 17
Default

Thanks! I did in fact have a screwed up schema directory in the deployment
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved