AquaLogic Service Bus Perspective - WSDL Files with External Schemas

I am using the AquaLogic Service Bus Perspective in WebLogic Workshop to create my proxy services, business services, wsdls, schemas, etc. I have a wsdl that imports a schema based on its registered namepsace...not its schemaLocation. This works fine in the ALSB console, but in the WebLogic Workshop perspective, I cannot Publish my WSDL because the WSDL is not aware of any global resources...such as this Schema definition that is external to the WSDL. How do you make Globally aware resources in WebLogic Workshop? The same thing works in through the ALSB Web-based console...but that same file produces a wsdl validation error in my IDE because it has no idea about that schema.
Thanks -jay

Thanks to both of you who replied to my question - it is very much appreciated
We had a theory that you could just store everything under 'sbconfig' in CVS and restore it - but I thought that might be a bit hacky and less upgrade resistant.
Do you use build scripts for setting up dev/qa/prod endpoints because 'customisation files' are new or did you find a problem with 'customisation files' that made you resort to using a build script?
We were hoping to have some process like
Export JAR
Export Customisation File for Dev/QA/Prod
In Dev, we import the JAR + dev customisation file
In QA, we import the JAR + QA customisation file
In Prod, we import the JAR + prod customisation file
I know I have no chance, but you wouldn't care to share said document for my reading (not copying) pleasure? No worries if you don't :)
Thanks for your comments guys :)
Dan.
just in case
email is daniel prosser at gmail com
dots between my name and com
Edited by dan_prosser at 08/14/2007 6:33 PM

Similar Messages

  • Error in WSDL file with Inline schemas in RAD

    Hi,
    I am having a WSDL which is generated in Weblogic workshop. I need to generate a client for that WSDL in RAD 7.0 with websphere 6.1.
    WSDL is having inline schemas. when i used the same WSDL in RAD it is showing compile time errors at complex types.
    My scenario: I am getting error at type="*_Type1_*" , it saying type reference is unresolved.
    <xs:schema xmlns="XXXX" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="XXXX" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:complexType name="complextype1">
    <xs:sequence>
    <xs:element name="Location" type="*_Type1_*" nillable="true"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="XXXX" targetNamespace="XXXX" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:simpleType name="Type1">
    <xs:restriction base="xs:string"/>
    </xs:simpleType>
    </xs:schema>
    Thanks in advance.

    Hi,
    I am also getting the same problem on a Web Service created from a function module. This happens when I try to create a new endpoint and save.
    Did you manage to find a solution to this.
    Regards,
    Andy.

  • Problem validating XML file with external schema file

    Hi All
    I am having trouble at the moment trying to validate an xml file using an external xsd file that sits on my server. I have followed the basic option but at the moment to no avail. I am using a DOMParser and am setting all the features and properties correctly ... well I think I am anyway.....below is a fragment of the code
    DOMParser parser = new DOMParser ();
    // Setting the validation on for the parser.
    parser.setFeature ( "http://xml.org/sax/features/validation", true );
    parser.setFeature ( "http://apache.org/xml/features/validation/schema", true);
    parser.setProperty ( "http://apache.org/xml/properties/schema/externalnoNamespaceSchemaLocation", "c://testing.xsd" );
    parser.setErrorHandler ( this );
    I am getting an error telling me that the root element cannot be found.....see below
    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'mainhome'.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at com.cibenix.aps.util.MenuXMLParser.process(MenuXMLParser.java:163)
    at com.cibenix.aps.actions.MenuAddAction.execute(MenuAddAction.java:80)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
    Any help would be greatly appreciated
    thanks

    In the schema root element xs:schema add namespace declaration.
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    In the XML document root element add xmlns:xsi and xsi:noNamespaceSchemaLocation attributes.
    <root_element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file://c:/testing.xsd">

  • AquaLogic Service Bus and XQuery Mapper

    Hi all,
    I'm new about using AquaLogic Service Bus and XQuery Mapper. I'm using alsb250_wls920.
    To understand better the details I've developed two very simple EJBs stateless related to a generic CarRental scenario.
    The idea is the following:
    - EJB1 exposes a method for retrieving available cars from company A
    - EJB2 exposes a method for retrieving available cars from company B
    The method signature is the same:
    public CarVO[] getAvailableCars(Category category, Double price)
    the only difference is about the CarVO definition where one exposes more attributes than the second one (and also the package is different).
    The goal is designing a new proxy service called getAvailableCars that calls the two above services and returns a set including all available cars from both companies.
    The returned CarVO is the sum of all attributes from two above CarVOs plus a string company attribute.
    So in AquaLogic I've defined:
    - a JAR resource for importing my CarRental.jar
    - two BusinessService resources related to the two above getAvailableCars services (from company A & B), called getAVISAvailableCars & getHertzAvailableCars;
    - I've exported the two WSDLs from the two above BusinessService resources directly from AquaLogic console;
    - I've written manually the WSDL 'getAvailableCars' that I use in the next proxy service definition
    - a getAvailableCars_1 proxy service resource
    Before completing the proxy service definition, I've decided to use XQuery Mapper for defining my trasformations.
    But I got some errors when I try to import the WSDLs.
    For importing simply I've created a wsdl folder inside my project and copied into it the 3 WSDLs definitions.
    Because there are errors in 2 of these WSDLs (getHertzAvailableCars.wsdl, getAvisAvailableCars.wsdl) when I create a XQuery Transformation, I'm not able to select any source schema.
    But getHertzAvailableCars.wsdl, getAvisAvailableCars.wsdl have been generated directly from AquaLogic console and I don't understand why XQuery Mapper complains about them.
    If needed I can post also the CarRental.zip eclipse prj (that contains the above two EJBs) and CarRentalAqualogicPrj.jar AquaLogic prj (passphrase is aqualogic).
    I thank you in advance for any suggestion.
    Regards
    Patrizio

    Could you send me the WSDLS?
    My email address [email protected]

  • Java code to connect to WSDL file with custom header

    Hi all,
    I am an absolute noob when it comes to Java. I need to write a Java app that can connect to a WSDL file with a custom header. Basically, all I need to do is connect to the web service and pass a username and password.
    Any help would be appreciated.
    Thanks,
    A

    Better you use tools which can generate code(interface,proxy and stub classes) which can take care of calling all the WSDL defined methods..i generally use RAD not an open source as per OP use eclipse open source or netbeans which can do the trick

  • How to do transformation in Aqualogic Service Bus

    Hi,
    I am new to aqualogic service bus. Please guide me how can I do transformation.
    Here is the scenario:
    I have one proxy service (ProxyService) and two Buiness Services (BusinessServiceV1 and BusinessServiceV2).Each Business service talks to corresponding Java services (via WSDL) on the back end.
    Here are signature of methods being exposed by services:
    com.v1.ResponseDTO getBankBalance(com.v1.RequestDTO requestDTO)
    com.v2.ResponseDTO getBankBalance(com.v2.RequestDTO requestDTO)
    RequestDTO contains a zip code fields. If its value is less than 10000 then I want to call servicev1. Otherwise I want to call serviceV2.
    When I create proxy, I use serviceV1's wsdl as reference. Hence I can call serviceV1 successfully. When call goes to serviceV2, then I get internal server error. Probably the reason is that I am not doing transformation from com.v1.RequestDTO to com.v2.RequestDTO. How can I do this transformation?
    In ASB's testconsole, Payload looks like the following:
    <ser:getBankBalance xmlns:ser="http://com/v1/services">
    <ser:requestDTO xmlns:java="java:com.v1.dto">
    <java:ZipCode>3</java:ZipCode>
    <java:Ssn>string</java:Ssn>
    </ser:requestDTO>
    </ser:getBankBalance>
    Using this payload, I can successfully call business service 1 via Proxy service. If I manually change v1 to v2, I can also call business service 2. Is there a way that I can change http://com/v1/services to http://com/v2/services
    and
    java:com.v1.dto to java:com.v2.dto
    using transformation?
    I already tried Message Processing|Rename option but it does not seem to work.
    Thank you very much for any help in this regards.
    mqassim

    Hi,
    Check out the link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/45/8594ebd17f1956e10000000a11466f/frameset.htm
    Best Regards,
    Rajani

  • WSDl files with SOPAui

    Team,
    I want to know how i can integrate WSDl files with SOPAui.
    what setting i have to do at Inegration Level.
    Can user integrate from his desktop or he need to login into the server to configure WSDl files with SOPAui.
    =======================
    I also need a doc which will enable my URL into internet enable URL. So, that anyone across the globe can access it.
    ======================

    Just to details more about my requirment,
    So mainly we want to build application that hit data and modify data in ERP/CRM system, via SOAP envelope (first we will construct request in SoapUI and next, move it into MicroStrategy platform). In this particular example we want to build whole functionality on top of Peoplesoft.
    I have given them WSDL files. but when doing he got the message, “Server not found” .
    I think that it could be something with external IP, even developer can't connect to IIS of this machine.
    Can any one tell me what I have to do ?

  • PI does not combine .wsdl file with .xsd files.

    Hi,
    I imported .wsdl file with necessary .xsd files in PI system (7.1).
    PI does not find fields in .wsdl already necessary .xsd files imported with .wsdl file.
    Is there anyone to help me to solve problem with test it in PI system.
    I send .wsdl file and necessary .xsd files as attachment his mail address.
    Thanks.

    Did you try opening the wsdl file in some XML tool...if there is problem in referring the XSD then it will be visible in the tool itself.....even I am working on PI7.1 and some of the WSDLs are referring XSDs...and i had no problem in using them.....dont know what is failing in your case
    Do you want me to send .wsdl and .xsd files zipped into your mail box
    instead you can post your wsdl file and the corresponding XSD here in SDN....even a dummy structure would do....we are not allowed to do personal email comunication
    Regards,
    Abhishek.

  • Web Service Project using WSDL file

    Hi All,
    I want to create web service project using WSDL file(I already have a wsdl file), which needs axis2 run time to generate correct project structure, I did this in eclipse but now I want to do it through JDeveloper(11.1.2.0.0), so please suggest me any ways on how can I configure axis2 runtime in Jdeveloper, and is it possible do it in Jdevloper?
    Thank You,
    Sunny
    Edited by: Sunny on May 8, 2012 1:51 AM

    Have you installed the 64-bit Access driver on your machine? See
    Data Source Names and 64-Bit Operating Systems for the differences in odbcad32. Call %SystemRoot%\system32\odbcad32.exe to check the drivers.
    How do you host your service? Stand-alone or IIS or embedded to another application? Keep in mind that IIS7 runs it in its application pool which is defaullt 64bit. Thus the bad image exception, when compiling your service as 32bit.
    When you need the Access database for your service to store informtation, then I would switch to SQL Server (Express) or XML files depending on your actual needs.
    Also check whether your account under which your service is run has the necessary NTFS file permissions on the access file and the folder. This is getting even more complex when it's a remote folder.

  • Create a wsdl file - with schemas inline - in JDeveloper

    Hi,
    We are trying to create a wsdl file using schemas in jdeveloper 11.1.1.3. We could generate the wsdl file using options available in jdeveloper, but the wsdl generated contains <types> element that has schemas referenced by only an "import" statement as below.
    <types>
    <xsd:schema>
    <xsd:import schemaLocation="../../../Test.xsd" namespace="http://www.openuri.org"/>
    </xsd:schema>
    </types>
    But, I would like get the schemas inlined or embedded within the wsdl instead of just an import statement.. This helps me in using the wsdl anywhere (creating webservices or use in my applications or give it to some one to use) without worrying about the actual schema definition files. The <types> element within the wsdl must have the schemas embedded, something like below.
    <types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://testWSDLproject/type" elementFormDefault="qualified">
    <xsd:element name="testIn">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="value" type="xsd:integer"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </types>
    Is there any way forward, with the Jdeveloper to create wsdl files with schemas inline ?

    Hi Vohra,
    The schema snippet pasted previously was just a sample.
    In actual, there are mulitple cross referencing xsd files that must be embedded within my wsdl file. Sometimes, such manual editing of wsdl (embedding so many schema definitions) is prone to errors.
    If there is an option in Jdeveloper which automatically does this embedding for us, then it becomes more handy. Have you come across any such options ?

  • "Use RAW files with external editor" greyed out for Photoshop CS2?

    I've just upgraded from iPhoto 5, and the "Use RAW files with external editor" option in the advanced preferences is greyed out when I select Photoshop CS2 as my external editor (back in the General pane).
    It works fine when Preview.app is selected. I can understand that pre-CS2 Photoshop wouldn't be available, but CS2 is capable of editing RAW images.
    Has anyone been able to get iPhoto 6 to send a RAW image to Photoshop CS2 using this preference? I've written an Applescript to do it in iPhoto 5, but I'd rather use something cleaner...
    15" PowerBook G4   Mac OS X (10.4.4)  

    Works great with Photoshop Elements, opens with Camera Raw. The issue is you can't save it so that iPhoto gets the changes.
    You have to save it and then re-import. I tried all permutations of saving it in originals and modified folders in the library. No luck. The only thing I didn't try is to save it as a jpeg over the top of the full sized one iPhoto created on import.

  • Dreamweaver very slow when opening files with external links

    Is there any way to fix Dreamweaver CS5 (Windows 7, 64bit) when opening files with external references?
    For example, I have a very simple CSS file, and toward the top the file has a line that says:
    @import url("https://fonts.googleapis.com/css?family=Ubuntu:500,700");
    This causes the file to take around 20 seconds to open in DW. If I comment out the line or remove it, the file opens almost instantly. This behaviour is also present in files that contain an SSI.
    DW often crashes before being able to open the file and I need to restart the app.
    Can I disable DW from attempting to load the references?? It's obviously what is causing the issue IMO and would love to make DW workable again!

    "Enable Related Files" isn't the fix for this issue. It's slightly different - I wanted to still load related files, but only the ones local to the file I was editing.
    The fix was to use DW's Resolve To IP Address feature. It required adding a registry value - it fixed the issue straight away
    This Adobe support doc helped: http://kb2.adobe.com/cps/887/cpsid_88742.html

  • How to validate xml file with XSD schema ??  in JDK1.4.2

    How to validate xml file with XSD schema ?? in JDK1.4.2
    i dont want to use new Xerec Jar ...
    Suggest option ...

    Please do not double-post. http://forum.java.sun.com/thread.jspa?threadID=5134447&tstart=0
    Then use Stax (Woodstock) or Saxon.
    - Saish

  • How to validate an XML file with XSD Schema on JDK 1.4

    Hi
    I'm looking for samples how to validate xml files with xsd schema using jsdk 1.4
    Thank you.

    This is how.
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.validation.Schema;
    import javax.xml.validation.SchemaFactory;
    import javax.xml.validation.Validator;
    DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
    dbfac.setNamespaceAware(true);
    SchemaFactory factory1 = SchemaFactory
                        .newInstance("http://www.w3.org/2001/XMLSchema");
    Schema schema = factory1.newSchema(new File("person.xsd"));
    dbfac.setSchema(schema);
    DocumentBuilder dbparser1 = dbfac.newDocumentBuilder();
    Document doc1 = dbparser1.parse(new File("person.xml"));
    Validator validator1 = schema.newValidator();
    DOMSource dm1 = new DOMSource(doc1);
    DOMResult domresult1 = new DOMResult();
    validator1.validate(dm1, domresult1);

  • Binding Xml file with Xsd Schema

    Hello
    everybody there.
    I am trying to make an application where word files are converted into xml.
    For that i have used org.exolab.castor and org.apache.poi.hwpf.
    Now the problem is that i was able to generate the xml file from word, but when i am binding it with XMLSchema.xsd following error is coming.
    java.lang.IllegalArgumentException: getSimpleType: the simple type 'formChoice' is not a built-in type as defined in XML Schema specification.
         at org.exolab.castor.xml.schema.Schema.getSimpleType(Schema.java:1289)
         at org.exolab.castor.xml.schema.Schema.addSimpleType(Schema.java:583)
         at org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.endElement(SchemaUnmarshaller.java:643)
         at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.endElement(Sax2ComponentReader.java:198)
         at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1392)
         at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)
         at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
         at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
         at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:430)
         at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:485)
         at TempHwpf.<init>(TempHwpf.java:35)
         at TempHwpf.main(TempHwpf.java:44)the code for binding my xml file with xsd schema is as under:-
    SourceGenerator sourcegen = new SourceGenerator();
    sourcegen.getVersion();
    System.out.println(sourcegen.getVersion());
    sourcegen.generateSource("XMLSchema.xsd","packagename");I have checked XMLSchema.xsd file, in that formChoice is already defined, than also error is coming.
    can anyone help me out. first i thought that XMLSchema.xsd which i have is not proper, but i downloaded it again from w3c.org,
    than also same error is shown.
    please help me out.
    waiting for reply.
    milind

    Please do not double-post. http://forum.java.sun.com/thread.jspa?threadID=5134447&tstart=0
    Then use Stax (Woodstock) or Saxon.
    - Saish

Maybe you are looking for