Schema to be handled does not contain a definition of type SODetailResponse

I am creating a new data type named SODetailResponse
and I get an error trying to import xml schema. I used XMLSpy and Business Connector with the schema and had no problems.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="SODetailResponse">
     <xs:complexType>
          <xs:sequence>
                  <xs:element name="Items" maxOccurs="unbounded">
                          <xs:complexType>
                   <xs:sequence>
                    <xs:element name="SalesOrder" type="xs:string"/>
                    <xs:element name="SalesOrderLine" type="xs:string"/>
                    <xs:element name="CustomerName" type="xs:string"/>
                    <xs:element name="MaterialNumber" type="xs:string"/>
                    <xs:element name="Description" type="xs:string"/>
                    <xs:element name="RequestedDate" type="xs:string"/>
                    <xs:element name="OrderedQty" type="xs:string"/>
                    <xs:element name="UOM" type="xs:string"/>
                    <xs:element name="BackOrderQty" type="xs:string"/>
                    <xs:element name="NetPrice" type="xs:string"/>
                    <xs:element name="Currency" type="xs:string"/>
                    <xs:element name="PriceUOM" type="xs:string"/>
                    <xs:element name="BinLocation" type="xs:string"/>
                    <xs:element name="ReasonForRej" type="xs:string"/>
                    <xs:element name="ItemCat" type="xs:string"/>
                    <xs:element name="CustomerNumber" type="xs:string"/>
                    <xs:element name="ConfirmQty" type="xs:string"/>
                    <xs:element name="HighLevelItem" type="xs:string"/>
                    <xs:element name="SchedBillFlag" type="xs:string"/>
                    <xs:element name="ConsBilling" type="xs:string"/>
                    </xs:sequence>
                    </xs:complexType>
                        </xs:element>
          </xs:sequence>
     </xs:complexType>
</xs:element>
</xs:schema>

Hi,
I am sorry i forgot to tell you the corrections i made to ur xsd. follow the bold font
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://natoil.com/xi/XI/JohnTest">
<b>
Replace the following two lines with third line
<xs:element name="SODetailResponse">
<xs:complexType></b>
<b><xs:complexType name="SODetailResponse"></b>
<xs:sequence>
<xs:element name="Items" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="SalesOrder" type="xs:string"/>
<xs:element name="SalesOrderLine" type="xs:string"/>
<xs:element name="CustomerName" type="xs:string"/>
<xs:element name="MaterialNumber" type="xs:string"/>
<xs:element name="Description" type="xs:string"/>
<xs:element name="RequestedDate" type="xs:string"/>
<xs:element name="OrderedQty" type="xs:string"/>
<xs:element name="UOM" type="xs:string"/>
<xs:element name="BackOrderQty" type="xs:string"/>
<xs:element name="NetPrice" type="xs:string"/>
<xs:element name="Currency" type="xs:string"/>
<xs:element name="PriceUOM" type="xs:string"/>
<xs:element name="BinLocation" type="xs:string"/>
<xs:element name="ReasonForRej" type="xs:string"/>
<xs:element name="ItemCat" type="xs:string"/>
<xs:element name="CustomerNumber" type="xs:string"/>
<xs:element name="ConfirmQty" type="xs:string"/>
<xs:element name="HighLevelItem" type="xs:string"/>
<xs:element name="SchedBillFlag" type="xs:string"/>
<xs:element name="ConsBilling" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<b>Remove this line </xs:element></b>
</xs:schema>
<b>Following is the xsd with all the above changes use this</b>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://natoil.com/xi/XI/JohnTest">
<xs:complexType name="SODetailResponse">
<xs:sequence>
<xs:element name="Items" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="SalesOrder" type="xs:string"/>
<xs:element name="SalesOrderLine" type="xs:string"/>
<xs:element name="CustomerName" type="xs:string"/>
<xs:element name="MaterialNumber" type="xs:string"/>
<xs:element name="Description" type="xs:string"/>
<xs:element name="RequestedDate" type="xs:string"/>
<xs:element name="OrderedQty" type="xs:string"/>
<xs:element name="UOM" type="xs:string"/>
<xs:element name="BackOrderQty" type="xs:string"/>
<xs:element name="NetPrice" type="xs:string"/>
<xs:element name="Currency" type="xs:string"/>
<xs:element name="PriceUOM" type="xs:string"/>
<xs:element name="BinLocation" type="xs:string"/>
<xs:element name="ReasonForRej" type="xs:string"/>
<xs:element name="ItemCat" type="xs:string"/>
<xs:element name="CustomerNumber" type="xs:string"/>
<xs:element name="ConfirmQty" type="xs:string"/>
<xs:element name="HighLevelItem" type="xs:string"/>
<xs:element name="SchedBillFlag" type="xs:string"/>
<xs:element name="ConsBilling" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
Naveen

Similar Messages

  • Schema to be handled does not contain a definition of type Activate

    I am trying to create a new datatype called Activate based on an xsd file and this is the message I get ... 
    "Schema to be handled does not contain a definition of type Activate"
    Anyone have any ideas why I can't use any of my external definitions in my mapping??

    Hi Andrew,
    There are errors in your XSD :
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xs:element name="envelope">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="header"/>
    <b><xs:element ref="body"/></b>
    </xs:sequence>
    <xs:attribute name="version" use="required" type="xs:NMTOKEN"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="header">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="manifest"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <b><xs:element name="manifest"></b>
    <xs:complexType>
    <xs:sequence>
    <b><xs:element ref="authentication"/></b>
    <b><xs:element ref="taxonomy"/></b>
    </xs:sequence>
    </xs:complexType>
    (1)There is no reference named <b>'body', 'authentication' and 'taxonomy'</b>
    (2)It should be closed (either by <b><xs:element name="manifest"/></b> or <b></element></b> )
    Hope this will help you.
    Regards
    Suraj

  • Schema to be handled does not contain a definition of type Order

    Hi,
    I am getting the error 'Schema to be handled does not contain a definition of type Order'
    when i tried to import an XSD to create a data type in Integration repository. I checked my XML with the XML SPY and it is vallid.
    Am i missing something? How can i import an XSD to create a datatype.
    Regards,
    Sharadha

    Hi,
    Make sure the datatype name and the main element name in the external xsd is same.
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="..." targetNamespace="....">
    <xsd:complexType name="Activate">
    Also check this link same problem
    Schema to be handled does not contain a definition of type Activate
    Error: Schema to be handled does not contain a defintion of type
    Re: Calling Idoc structure in creating Data Type
    Re: How to import  XSD?
    Please reward points if it helps
    Thanks
    Virkanth

  • Error: Schema to be handled does not contain a defintion of type

    When I import a xsd file to create a data type in the integration repository, I am getting the error "schema to be handled does not contain a defintion of type <name_of_the_Data_Type>.
    Any ideas
    Thanks a lot in advance.
    --Kumar

    I am briging some vendor information from R3 system to XI thru IDOC. The IDOC Type is "CREMAS.CREMAS01".
    I am able to import this into Integration Repository in XI. XI is translating this into XML.
    Now insted of creating data types manually, I would like to export this XML into XSD and import into the data type.
    When importing this XSD into data type I am getting this error message.

  • Errors in the high-level relational engine. The data source view does not contain a definition for the table or view. The Source property may not have been set.

    Hi All,
    I have a cube in which i'm using the TIME DIM that i created in the warehouse. But now i wanted a new measure in the cube which is Average over time and when i wanted to created the new measure i got a message that no time dim was defined, so i created a
    new time dimension in the SSAS using wizard. But when i tried to process the new time dimension i'm getting the follwoing error message
    "Errors in the high-level relational engine. The data source view does not contain a definition for "SSASTIMEDIM" the table or view. The Source property may not have been set."
    Can anyone please tell me why i cannot create a new measure average over the time using my time dimension? Also what am i doing wrong with the SSASTIMEDIM, that i'm getting the error.
    Thanks

    Hi PMunshi,
    According to your description, you get the above error when processing the time dimension. Right?
    In this scenario, since you have updated the DSV, it should have no problem on the table existence. One possibility is that table has been specified for tracking in the notifications for proactive caching, but isn't available any more for some
    reason. Please change the setting in Proactive Caching into "MOLAP".
    Reference:
    How To Implement Proactive Caching in SQL Server Analysis Services SSAS
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • EWS/Services.wsdl does not contain a definition for ConnectingSID.ItemElementName in Exchange 2013

    We're using EWS (unmanaged) in a .NET app to access Exchange Server.  After moving from 2010 to a server with Exchange 2013 and updating the web reference, I get error messages stating ConnectingSIDType does not contain a definition
    for ItemElementName or PrimarySmtpAddress. 
    If I point the ExchangeServiceBinding object url to the new server, but do NOT update the web reference to the new server, everything still works.   How do we fix this issue?  The 2010 Exchange server will go away within a few days.

    This is the 2010 version
    public partial class ConnectingSIDType {
    private string itemField;
    private ItemChoiceType itemElementNameField;
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("PrimarySmtpAddress", typeof(string))]
    [System.Xml.Serialization.XmlElementAttribute("PrincipalName", typeof(string))]
    [System.Xml.Serialization.XmlElementAttribute("SID", typeof(string))]
    [System.Xml.Serialization.XmlElementAttribute("SmtpAddress", typeof(string))]
    [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
    public string Item {
    get {
    return this.itemField;
    set {
    this.itemField = value;
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public ItemChoiceType ItemElementName {
    get {
    return this.itemElementNameField;
    set {
    this.itemElementNameField = value;
    2013 version
    public partial class ConnectingSIDType {
    private object itemField;
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("PrimarySmtpAddress", typeof(PrimarySmtpAddressType))]
    [System.Xml.Serialization.XmlElementAttribute("PrincipalName", typeof(PrincipalNameType))]
    [System.Xml.Serialization.XmlElementAttribute("SID", typeof(SIDType))]
    [System.Xml.Serialization.XmlElementAttribute("SmtpAddress", typeof(SmtpAddressType))]
    public object Item {
    get {
    return this.itemField;
    set {
    this.itemField = value;
    And here is the impersonation code
    ExchangeImpersonationType impersonate = new ExchangeImpersonationType();
    impersonate.ConnectingSID = new ConnectingSIDType();
    impersonate.ConnectingSID.Item = _email;
    impersonate.ConnectingSID.ItemElementName = ItemChoiceType.PrimarySmtpAddress;
    this.ExchangeService.ExchangeImpersonation = impersonate;
    ConnectingSID.ItemElementName doesn't exist in the 2013 version.   Is there a different way to do impersonation without going to the managed API?
     

  • Help Solving: Does not contain a definition for 'Select'.....

    Hi,
    Need help solving a Task that returns a Task<IEnumerable<Writing>> so I can fill ObservableCollection<ViewModels.IWritingItemViewModel> Writings for my
    Design Time Data Page:
    <d:Page.DataContext>
    <designTimeData:MainPageViewModel />
    </d:Page.DataContext>
    My constructor does this:
    public MainPageViewModel()
    var writings = this.GetGroupsAsync();
    this.Writings = new ObservableCollection<ViewModels.IWritingItemViewModel>();
    var viewmodels = writings.Select((x, i) => new WritingItemViewModel
    Writing = x,
    VariableItemSize = (i == 0) ? Common.VariableItemSizes.Writings : Common.VariableItemSizes.Normal,
    My var writings = this.GetGroupsAsync(); is:
    public async Task<IEnumerable<Writing>> GetGroupsAsync()
    await this.GetMenuDataAsync();
    return this.Groups;
    which in turn gets data from:
    private async Task GetMenuDataAsync()
    Uri dataUri = new Uri("ms-appx:///DesignTimeData/MenuData.json");
    StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(dataUri);
    string jsonText = await FileIO.ReadTextAsync(file);
    JsonObject jsonObject = JsonObject.Parse(jsonText);
    JsonArray jsonArray = jsonObject["Groups"].GetArray();
    foreach (JsonValue groupValue in jsonArray)
    JsonObject groupObject = groupValue.GetObject();
    Writing group = new Writing(
    groupObject["UniqueId"].GetString(),
    groupObject["IsHeaderInteractive"].GetBoolean(),
    groupObject["ViewType"].GetString(),
    groupObject["ModelType"].GetString(),
    groupObject["Page"].GetString(),
    groupObject["Title"].GetString(),
    groupObject["Subtitle"].GetString(),
    groupObject["ImagePath"].GetString(),
    groupObject["Description"].GetString(),
    groupObject["GroupId"].GetString()
    foreach (JsonValue itemValue in groupObject["WritingMenus"].GetArray())
    JsonObject itemObject = itemValue.GetObject();
    group.WritingMenus.Add(new WritingMenu(
    itemObject["UniqueId"].GetString(),
    itemObject["Page"].GetString(),
    itemObject["Title"].GetString(),
    itemObject["Subtitle"].GetString(),
    itemObject["ImagePath"].GetString(),
    itemObject["Description"].GetString(),
    itemObject["Content"].GetString(),
    itemObject["WritingsId"].GetString(),
    itemObject["GroupId"].GetString(),
    Convert.ToInt32(itemObject["Item"].ValueType)
    this.Groups.Add(group);
    and I get this Error:
    Error 5 'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
    does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type
    'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
    could be found (are you missing a using directive or an assembly reference?)
    I'm creating collections of:
    public interface IWritingItemViewModel : Common.IVariableSizedItem
    Models.Writing Writing { get; set; }
    and my class for creating data is:
    public class Writing
    public Writing(
    string uniqueId,
    bool isHeaderInteractive,
    string templateType,
    string viewModelType,
    string page,
    string title,
    string subtitle,
    string imagePath,
    string description,
    string groupId
    this.UniqueId = uniqueId;
    this.IsHeaderInteractive = isHeaderInteractive;
    this.TemplateType = templateType;
    this.ViewModelType = viewModelType;
    this.Page = page;
    this.Title = title;
    this.Subtitle = subtitle;
    this.ImagePath = imagePath;
    this.Description = description;
    this.GroupId = groupId;
    this.WritingMenus = new ObservableCollection<WritingMenu>();
    public string UniqueId { get; private set; }
    public bool IsHeaderInteractive { get; private set; }
    public string TemplateType { get; private set; }
    public string ViewModelType { get; private set; }
    public string Page { get; private set; }
    public string Title { get; private set; }
    public string Subtitle { get; private set; }
    public string ImagePath { get; private set; }
    public string Description { get; private set; }
    public string GroupId { get; private set; }
    public virtual ObservableCollection<WritingMenu> WritingMenus { get; private set; }
    How can I solve or successfully complete this code?
    Thanks!...
    Code is like a box of chocolates!...

    I looked into your error message again, I found something interesting:
    Error 5
    'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
      does not contain a definition
    for 'Select'
    and no extension method
    'Select' accepting a first argument of type
      'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
      could be found (are you missing a
    using directive or an assembly reference?)
    That means: Task does not contain the definition for Select. This was reasonable, Task does not inherit IEnumerable interface.
    var viewmodels = writings.Select((x, i) => new WritingItemViewModel
    Writing = x,
    VariableItemSize = (i == 0) ? Common.VariableItemSizes.Writings : Common.VariableItemSizes.Normal,
    public async Task<IEnumerable<Writing>> GetGroupsAsync()
    You need get the IEnumerable<Writing> for Select use. See this for more information:
    How to: Return a Value from a Task
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • PropertyInfo does not contain a definition for 'GetCustomAttribute' ?

    Hello,
    I inherited a .Net 4 Asp.net web application . I did a build and got the error below. According to MSDN, PropertyInfo doesn't have a GetCustomAttribute method. (It does have a
    GetCustomAttributes method). Am I missing a extension method? Or using wrong version of .net framework? Thanks, Peter
    xxx= property.GetCustomAttribute<JsonPropertyAttribute>();
    Error 1 'System.Reflection.PropertyInfo' does not contain a definition for 'GetCustomAttribute' and no extension method 'GetCustomAttribute' accepting a first argument of type 'System.Reflection.PropertyInfo' could be found (are you missing a using
    directive or an assembly reference?) C:\projects\DotNetDemo\WebSite\CreateIncident.aspx.cs 357 

    I think that you need a “using System.Reflection” and the .NET 4.5:
    http://msdn.microsoft.com/en-us/library/hh194315(v=vs.110).aspx.

  • C# compiling error: 'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)

    Hello experts,
    I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
            string tempFileName = fileName;
            int count = 1;
            while (allFiles.Contains(tempFileName ))
                tempFileName = String.Format("{0} ({1})", fileName, count++); 
            output = Path.Combine(folderPath, tempFileName );
            string fullPath=output + ".xml";
    However, it gives the following compilation errors
    for the Select and Contain methods respectively.:
    'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
    (are you missing a using directive or an assembly reference?)
    'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
    found (are you missing a using directive or an assembly reference?)
    I googled on these errors, and people suggested to add using System.Linq;
    I did, but the errors persist. 
    Any help and information is greatly appreciated.
    P. S. Here are the using clauses I have:
    using System;
    using System.Data;
    using System.Windows.Forms;
    using System.IO;
    using System.Collections.Generic;
    using System.Text;
    using System.Linq;

    Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look 
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    namespace consAppFileManipulation
    class Program
    static void Main(string[] args)
    string fullPath = @"c:\temp\trace.log";
    string folderPath = @"c:\temp\";
    string fileName = "trace.log";
    string output = "";
    string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
    string extension = Path.GetExtension(fullPath);
    string path = Path.GetDirectoryName(fullPath);
    string newFullPath = fullPath;
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
    string tempFileName = fileName;
    int count = 1;
    //THIS IS AN INFINITE LOOP
    while (allFiles.Contains(fileNameOnly))
    tempFileName = String.Format("{0} ({1})", fileName, count++);
    //THIS CODE IS NEVER REACHED
    output = Path.Combine(folderPath, tempFileName);
    fullPath = output + ".xml";
    //string fullPath = output + ".xml";
    UML, then code

  • Exception calling "Activate" with "0" argument(s): "Topology does not contain any components of type Microsoft.Office.Server.Search.Administration.Topology.AdminComponen

    Hi,
    I have a Sharepoint 2013 farm I am trying to provision search for (not the same as my other thread). However, I get the below error:
    Exception calling "Activate" with "0" argument(s): "Topology does not contain any components of type Microsoft.Office.Server.Search.Administration.Topology.AdminComponent"
    In my script, I have the following:
    New-SPEnterpriseSearchAdminComponent -SearchTopology $clone  -SearchServiceInstance $SearchServiceInstanceServer3 -ErrorAction SilentlyContinue
    So I am not sure why the error happens, when I am trying to set this component. However, it's not the first component to be set (index partition on non-local servers first). I can make it first, but why does this error happen?
    UPDATE: I have noticed that the usage and health proxy on my farm is/was stopped, but I am not able to access the server(s) to look at this right now. Could this cause this issue?

    Do you already have Admin component running for the Search Service Application?
    Usage and Health Service will not cause this issue.
    Please also refer to below discussion to see if it helps:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/02f0b072-aa3a-4b7f-9662-2caf373d1e57/setspenterprisesearchtopology-identity-newtopology?forum=sharepointgeneral
    Warm Regards,
    Bhavik K Jain
    Sr. Software Engineer - SharePoint Administration
    Please vote if my reply helps and ensure that you mark a question as Answered once you receive a satisfactory response.

  • Visual Studio 2013 Express for Windows - InitializeComponent() does not contain a definition issue

    Hi,
    I have recently downloaded Visual Studio 2013 Express for Windows (Windows Store App version), with Update 1.
    I create a blank app. I right-click on InitializeComponent() in the MainPage.xaml.cs and select Go To Definition. It brings me to the .g.i.cs file where this method resides.
    I go into the designer for MainPage.xaml and create a grid of 2 rows and 2 columns (all at 1*). I add one button, doesn't matter where. I double click on that button to add a click method to MainPage.xaml.cs. Without entering anything into the button click
    method, I scroll up and InitializeComponent() has an error and tells me there is not definition, even though I was looking at the definition a minute ago. I found I could unload the project and reload it and InitializeComponent() would have the definition
    in the .g.i.cs file but as soon as I add another button click or anything else I run into the same error. It seems as if the .g.i.cs file is not automatically regenerating, or it is being deleted all together when the button click method is added to the xaml.cs
    file.
    Everything I have done up to this point is very vanilla. I installed VS '13 Express for Windows, didn't change any VS setting, created a project and ran into this issue. I installed Update 1 thinking there might be a fix from the update--no luck. The xaml
    file Build Action is Page and the Xaml.cs file is Compile.
    I have tried deleting the MainPage.xaml file, after the creation of a project, and adding a new MainPage file with the added templates VS wants to include, and I still run into the same issue.
    I have searched for answers the past few days but haven't found anything that addresses my issue (most of what I found addresses VS '10 but their InitializeComponent() issues aren't the same as mine). Any help the MSDN community can provide would be
    a great help. If worst comes to worst, I will re-install VS and see if that corrects it--this would be a last-ditch effort though.
    Thank you for any help you may be able to provide

    Intellisense has a bug in VS2013 where it doesn't recognize InitializeComponent when you start working on the XAML.  My feeling is that if you try to compile this app, it will run fine (as long as there are no actual errors).
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • 'system.array' does not contain a definition for 'ToCharArray'

    Can someone help me? I'm trying to create an array and use it in an if- else statement. Here's my code: 
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace DLE
        class Program
            static void Main(string[] args)
                char[] answer;
                if (answer.ToChar = 'A')
                Console.WriteLine("");
                Console.ReadLine();
    Any help is greatly appreciated.

    Try this
    if (Console.ReadKey().KeyChar == 'A')
    So if you have an array like answer[] you would need to add an index like answer[0].
    It would be so much easier if you used a string along with Console.ReadLine() instead of a character array.
    jdweng

  • Database schema SCM does not contain the associated database objects

    I am getting the following error when i am trying to migrate the form to apex using application migration.
    "*Database schema SCM does not contain the associated database objects for the project, aafs.*
    *Ensure the database schema associated with the project contains the database objects associated with the uploaded Forms Module .XML file(s).* ".
    Actully i am having one schema which i named as SCM, and i have defined one table TT.
    I created one form test.fmb in which i used TT table.its compiled successfully.
    Then i generated the xml file using frmf2xml from fmb file. After that, I created the project in appication migration wizard in SCM schema.
    Project creattion is working fine.but when i m trying to create application,it is showing me above error.
    can any one help in solving this problem.

    Hi Hilary,
    Thanks for your response/feedback.
    1. The schema associated with the project does not contain the necessary objects Can you please verify that the schema associated with your Forms conversion project does in fact contain the objects associated with the uploaded files. Could you also verify that the object names referenced in the error message do not exist within the schema associated with your workspace. Ensure that the schema associated with the project contains the necessary database objects before proceeding to the generation phase of the conversion process.
    Ans:
    Yes it does contain the objects (See results from SQL query Commands below):
    SELECT MWRA_CONTRACT_NO, OLD_CONTRACT_NO FROM PROJECTS@CONTRACT_LX19.MWRA.NET
    ORDER BY MWRA_CONTRACT_NO
    000000569 551TA
    000000570 553TA
    000000575 560TA
    000000576 561TA
    000107888 502TA
    000108498 500TA
    000108502 503TA
    2. The block being converted contains buttons, which may have been incorrectly identified as database columns, and included in the original or enhanced query associated with your block This is a known issue ,bug 9827853, and a fix will be available in our upcoming 4.0.1 patch release. Some possible solutions to this issue are:
    -> delete the buttons before generating the XML
    -> delete the button tags from the XML
    -> add "DatabaseItem=No" for the button in the XML file before importing it in Apex.The button is excluded when creating the Application.
    Ans
    yes it does contain push buttons to transfer to another forms and these are defined as Non data base items. Parial XML code provided below:
    - <Item Name="REPORTS" FontSize="900" DirtyInfo="true" Height="188" XPosition="4409" FontName="Fixedsys" ForegroundColor="black" DatabaseItem="false" Width="948" CompressionQuality="None" YPosition="3709" FontSpacing="Normal" Label="REPORTS" BackColor="canvas" FillPattern="transparent" ShowHorizontalScrollbar="false" FontWeight="Medium" ShowVerticalScrollbar="false" FontStyle="Plain" ItemType="Push Button">
    <Trigger Name="WHEN-BUTTON-PRESSED" TriggerText="GO_BLOCK('REPORT_1');" />
    </Item>
    - <Item Name="TRACKHDR" FontSize="900" DirtyInfo="true" Height="188" XPosition="3409" FontName="Fixedsys" ForegroundColor="black" DatabaseItem="false" Width="948" CompressionQuality="None" YPosition="3709" FontSpacing="Normal" Label="TRACK" BackColor="canvas" FillPattern="transparent" ShowHorizontalScrollbar="false" FontWeight="Medium" ShowVerticalScrollbar="false" FontStyle="Plain" ItemType="Push Button">
    <Trigger Name="WHEN-BUTTON-PRESSED" TriggerText="GO_BLOCK('TRACKHDRS');" />
    </Item>
    - <Item Name="SUBAWRD" FontSize="900" DirtyInfo="true" Height="188" XPosition="2429" FontName="Fixedsys" ForegroundColor="black" DatabaseItem="false" Width="948" CompressionQuality="None" YPosition="3719" FontSpacing="Normal" Label="SUBAWARDS" BackColor="canvas" FillPattern="transparent" ShowHorizontalScrollbar="false" FontWeight="Medium" ShowVerticalScrollbar="false" FontStyle="Plain" ItemType="Push Button">
    3. If you are still experiencing issues, then please create a testcase on apex.oracle.com and update this thread with the workspace details so I can take a look.
    Test case details are given below. It was created per ORACLE for open Service Request Number 3-1938902931 on ORACLE Metalink.
    Workspace: contract4
    username: [email protected] (my email)
    Password: contract4
    Comments:
    For my migration/testing purpose a dabatase link and synonyms have been setup by our ORACLE DBA. Could this be causing this problem?
    Do we know when the fix 4.0.1 patch release will be available?
    Thanks for your help.
    Indra

  • Unable to load the EJB module. DeploymentContext does not contain any EJB.

    I'm writing an enterprise application to familiarize myself with Glassfish 3.1.2 and EJB 3.1. I've created several local, stateless beans, and injected one into a JSF managed bean. The ejb and web modules compile fine, but when I launch the application with Glassfish I get the following startup error and the application does not deploy. I don't understand what it means, can someone ellaborate?
    SEVERE: Exception while invoking class org.glassfish.ejb.startup.EjbDeployer prepare method
    SEVERE: Exception while invoking class org.glassfish.javaee.full.deployment.EarDeployer prepare method
    SEVERE: Exception while preparing the app
    SEVERE: Unable to load the EJB module. DeploymentContext does not contain any EJB. Check the archive to ensure correct packaging for D:\Documents\NetBeansProjects\Test\dist\gfdeploy\Test\Test-war_war.
    If you use EJB component annotations to define the EJB, and an ejb or web deployment descriptor is also used, please make sure that the deployment descriptor references a Java EE 5 or higher version schema, and that the metadata-complete attribute is not set to true, so the component annotations can be processed as expected
    org.glassfish.deployment.common.DeploymentException: Unable to load the EJB module. DeploymentContext does not contain any EJB. Check the archive to ensure correct packaging for D:\Documents\NetBeansProjects\Test\dist\gfdeploy\Test\Test-war_war.
    If you use EJB component annotations to define the EJB, and an ejb or web deployment descriptor is also used, please make sure that the deployment descriptor references a Java EE 5 or higher version schema, and that the metadata-complete attribute is not set to true, so the component annotations can be processed as expected
         at org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:166)
         at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:871)
         at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410)
         at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
         at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
         at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
         at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
         at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
         at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
         at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
         at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
         at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
         at java.lang.Thread.run(Thread.java:722)

    My guess is that you deployed an ejb without bean in it. when you have an ejb module, be sure you have at least one bean present.
    Are you sure you have implementend some beans? Or did you do this only in the web module?
    Try adding an @Stateless bean doing nothing in you ejb module, redeploy and let me know if that works

  • Calling a WS from a servlet...EndpointPort does not contain operation meta.

    Hi all,
    I'm trying to call a service from a servlet but I get an error:
    Error: Endpoint {http://com.susan/SusanWS}SusanWebServiceEndpointPort does not contain operation meta data for: LoginWebService
    ...the WS is up and running (of this I'm sure...cause I also tested it with soapui...and it works..)
    The webservice is running on a local jboss (to which i can successfully connect, and see the wsdl...).
    the servlet is running on a local tomcat (which is also ok...).
    I'm trying to call the WS like this:
    Service service = new Service();
    Call call = (Call)service.createCall();
    call.setTargetEndpointAddress( new URL( wsEndpoint ) ); //http://localhost:8080/webservices/SusanWS (the same I used in soapui...so it should be right)
    call.setOperationName( "LoginWebService"); //name of the method i want to use...
    call.addParameter( "appCode", Constants.XSD_STRING, ParameterMode.IN );
    call.addParameter( "login", Constants.XSD_STRING, ParameterMode.IN );
    call.addParameter( "passwd", Constants.XSD_STRING, ParameterMode.IN );
    //            call.setReturnType( Constants.XSD_INT ); //left this out...should be the cause...
    Object retval = call.invoke( new String[] { appCode, login, passwd} ); //appCode,login,passwd contain the strings i want to  forward as input.if I try to run it I get(in the jboss log...):
    15:41:55,594 ERROR [SOAPFaultExceptionHelper] SOAP request exception
    javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://com.susan/SusanWS}SusanWebServiceEndpointPort does not contain operation meta data for: LoginWebService
    at org.jboss.ws.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:181)
    at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:107)
    at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
    at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
    at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)
    don't know if it can help...the soapui request looks like this:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://com.susan/SusanWS/types">
    <soapenv:Header/>
    <soapenv:Body>
    <typ:LoginWebService>
    <LoginInfo_1>
    <appCode>WEB_SERVICES</appCode>
    <login>root</login>
    <passwd>root</passwd>
    </LoginInfo_1>
    </typ:LoginWebService>
    </soapenv:Body>
    </soapenv:Envelope>
    anybody has an idea of what I'm doing wrong?
    Edited by: Turbo-555 on Mar 18, 2009 8:36 AM

    if I change the code with:
    //call.setOperationName( wsMethod );
    call.setOperationName( new QName("http://com.susan/SusanWS",wsMethod)); //http://com.susan/SusanWS is the targetnamespace...the error changes into:
    16:55:21,051 ERROR [SOAPFaultExceptionHelper] SOAP request exception
    javax.xml.rpc.JAXRPCException: Cannot find child element: {http://com.susan/SusanWS/types}LoginWebService
    at org.jboss.ws.binding.soap.SOAPBindingProvider.getParameterFromMessage(SOAPBindingProvider.java:799)
    at org.jboss.ws.binding.soap.SOAPBindingProvider.unbindRequestMessage(SOAPBindingProvider.java:282)
    at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:112)
    at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
    at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
    at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)

Maybe you are looking for

  • Boolean in a bean

    I have a bean which has a method called isValid() this method returns either true or false. public class MyBean{ //other methods here............. public boolean isValid(){                 //...SQL STATEMENT           if(result.next())               

  • Configure iTunes to support multiple users on one mac

    I have a nice 2009 mac OSX that my two boys share. They have their own accounts on the computer and their own iTunes accounts. They want to be able to authorise the computer to play the stuff they buy in iTunes and synch it to their devices. Right no

  • How to define a function/subroutine in JSP?

    thanks.

  • Balance by date wise

    We can see the Gl bal in FS10N by periodwise. But what is the sollution to see the balance by date wise (From Date-To Date)?

  • BAPI to download document from DMS

    Hi ALL I have the requirement that to download the all the active drawing(DWG) files to local file system or data base for purpose. 1. I am looking at BAPIS to download from external program. Do we have any BAPIS to get the files from DMS.? 2. And i