How will I load wsdl in soap UI with xsd extensions? - wsdl

I have a wsdl with xsd extensions. If I load the wsdl in soap UI, I am not able to view my extensions. Is it possible to load a wsdl with its xsd extensions?
Thanks,
Priya.

I'm not exactly sure what you're meaning with xsd extensions. When loading the WSDL from a remote system, i.e. the actual webservice, then the XSD should be loaded automatically. If you're loading the WSDL from a local file just make sure that you put the .xsd file in the correct directory as referenced in the WSDL.

Related

XForm schema validation: resolution of child schema imports

I'm interested in using schema-based validation:
<model schema="oxf:..path">
The Orbeon documention currently doesn't have a lot of details about it's use, and in one spot this topic shows up as a "TODO". The schemas we created all have child schemas (certain elements are common to all).
I have a folder structure for the schemas that looks like:
COMMON
xsd
xsd...
schema_A
xsd
<schema_B>
xsd
...
I am putting these schema in a Maven project that generates a jar file of these, and am putting this JAR in "orbeon/web-inf/lib" folder. In the xforms, I have no problems accesing individual files in this JAR (like creating an instance with that as a source).
In the schemas themselves I'm using a relative url that uses "directory up", like this:
<import xmlns="<uri>" "schemaLocation="<uri> ../../COMMON/childSchemaA.xsd">
However, Orbeon doesn't seem to be able to resolve the imports and I get a "Resource not Found" page when I try to use it. In the orbeon log I see that it interprets the location as being in the parent folder, i.e. "schemaA/childSchema.xsd"
Is this a known issue? (I am using the lasT Orbeon 2019 version as the current version does not support rich text controls in XForms). I did a test in which I put the parent schemas and child schemas in the same folder (in the jar file), and validation seems to work as expected.
Is there something that would help orbeon resolve the child schemas? For organization reasons, I don't want to have to have a folder with all of the parent schemas and the child schemas in a single folder. I have another Java web project in which the same JAR file is put on the classpath, and when using the parent schemas for validation there are not any issues.

ORBEON Forms source code

I have imported orbeon war file in my Eclipse IDE and using my war file i have created new forms but i dono where the source code generated for my new forms,
what i have tried is downloaded the war, file and imported into my eclipse IDE using this war file i have created new forms.
and my link is http://orbeon.com/orbeon/fr/orbeon/builder/edit/be0b8be388fc248859fffd0cfb04a237cc8da6a6
anyone please answer me asap,
Thanks in advance.
Form Data and Definitions are stored via the persistence API. For more info look at Form Runner/Form Builder Persistence API.
When you say you have used the war file to create forms - do you mean you have used the Form Buidler interface?
Your link is to the orbeon.com server. Is that correct?

Simplifing WsSecurity to JaxWS metro Implementation

I'm using JaxWs Metro project implementation and i'm using this tutorial to add Ws Security feature to my web services.
http://java.globinch.com/enterprise-java/web-services/jax-ws/secure-usernametoken-java-web-services-using-metro-wsit/
What i have understand is that to add a Ws Security to your web service.You must first generate manually the wsdl file then add WSIT configuration part to your web service then put that modified wsdl in your project and modify sun-jaxws.xml so that take care of your modified wsdl file(so that it will not generate a new one).
I think it's extremley difficult to do all that for all my web services.In addition,i'm using eclipse so there is no generating tool(like netbeans).
I want to know is there any simple solution ?

Getting the parameters values as null while working with custom wsdl file in axis2

I have a web service method which takes a parameter. If I am not using any custom wsdl file, then it is working very fine. But it doesn't work when I use my custom wsdl file generated using axis2 code generation wizard in eclipse. I get the parameter value as null inside the web service method.
Please help me with this, as I have to use a custom wsdl file for this
I'd recommend writing a WSDL to describe your service and then use the generated AXIS2 methods for all the XML handling.
The following is an advanced example demonstrating exception handling, but it includes the same WSDL and associated service class code.
Custom faultcode using Axis2

Silverlight Cannot find XML data source

I am very new to Silverlight development. I understand that this is client side technology therefore the paradyme is differant from that of conventional ASP.NET development. Having said that, I don't understand where my server side code is deployed.
I have a silver light \ MVC application. I am trying to read an XML document from within my 'Models' folder. The following peice of code is executed from within a class that is in the same location as the XML document, 'Models'. The load() results in a SystemIOFileNotFound exception. I noticed that when building the application the XML document is not laid down in the same location as the web project's assembly. I assume this is specific to the fact that this is a Silverlight project. Can someone tell me what I'm missing?
_xdoc = new XDocument();
_xdoc = XDocument.Load(new Uri("videos.xml",UriKind.Relative).ToString());
Edit..
The behavior I am after is the start page (silverlight) populates controls via a server side controller. ie localhost/video
Silverlight can't access your filesystem (thankfully), which is why you can't access the file. Try embedding it as a resource, or storing it in the local storage API provided by silverlight.
Assuming that your Models folder is in the Web project (i.e. not the Silverlight project), I think that your problem is unrelated to Silverlight.
The code loading the XML file assumes that the file is in the current directory, so you need to ensure this through your deployment technique.
If you are doing this in the Silverlight part, you should put the XML file in an embedded resource and access it as a stream (get it with Assembly.GetManifestResourceStream) or as a resource (a la WPF, not an embedded resource) and access it with the package part syntax.
The problem was that I was attempting to access this static resource as you would in typical ASP.net. However I found it necessary to map the path to the file using the current HTTPContext:
HttpContext.Current.Server.MapPath("~/App_Data/videos.xml");
So the above worked for me. Since this code is in the web project and not in the silverlight project I am still unclear as to why I cannot just access this resource using a relative path. This code will be executed in the context of the web server.
i.e.
XDocument.load(../App_Data/videos.xml);

Resources