create valid xml to send to web service based on the schema provided by web service


I have a web page which is being populated from a dataset containing multiple tables.  I now need to call a web service and send the majority of this data to be incorporate into a mainframe system.  I have been supplied with the schema that the web service will be using to validate the data.  I am new to web services and I am not sure how to take my existing dataset and transform it into an xml document that matches the schema I was provided with.

There is a main schema with an element which is a custom complex type.  This custom type consists of an element which is a custom complex type, this element consists of three elements, each of which are custom complex types.  These three types consist of elements which contain elements. 

Just reading what I wrote makes my head hurt.  Here is part of the first schema xsd I was given:

<xs:element name="NlbLoans" type="NlbLoansType">
        <!-- Loan Number key -->
    	<xs:key name="lNumKey1">
    		<xs:selector xpath="NewLoan"/>
    		<xs:field xpath="@Num"/>
    	<xs:keyref name="NoName1" refer="lNumKey1">
    		<xs:selector xpath="NewLoan/Loan/Reporting"/>
    		<xs:field xpath="LoanNumber"/>
    	<xs:keyref name="NoName2" refer="lNumKey1">
    		<xs:selector xpath="NewLoan/Property"/>
    		<xs:field xpath="LoanNumber"/>
    	<!-- Loan Number + Property Seq key -->
    	<xs:key name="lNumPropKey1">
    		<xs:selector xpath="NewLoan/Property"/>
    		<xs:field xpath="LoanNumber"/>
    		<xs:field xpath="Sequence"/>
    <xs:element name="ValidateResults" type="ValidationResultsType">

<!-- New Loan Types -->
	<xs:complexType name="NlbLoansType">
		  <xs:element name="NewLoan" type="NewLoanType" maxOccurs="unbounded"/>
	<xs:complexType name="NewLoanType">
    			<xs:element name="Loan"     type="str:LoanType"/>
    			<xs:element name="Property" type="str:PropertyType" maxOccurs="unbounded"/>
    			<xs:element name="Borrower" type="str:BorrowerType" minOccurs="0" maxOccurs="unbounded"/>
		<xs:attribute name="Num"         use="required" type="str:NineLongType"/>
		<xs:attribute name="DataLibrary" use="required" type="str:TenCharType"/>

 This is the second xsd which defines the LoanType,PropertyType, adn BorrowerType.  I have just copied the LoanType portion:

FYI:  This xsd uses types which are defined in yet another schema

<xs:complexType name="LoanType">
		  	<xs:element name="Billing">
                      <xs:element name="InterestRate"	       type="SevenFiveDecType" nillable="true" />
                      <xs:element name="LateChrgRtOrFlatFee"   type="FiveThreeDecType" nillable="true"  />
                      <xs:element name="OrigCommitmentAmt"	   type="ElevenTwoDecType" nillable="true" />
                      <xs:element name="PAndIMonthlyConst"     type="NineTwoDecType"  />
                      <xs:element name="PartialPmtsAllowed"    type="YesNoEnumType"  />
                      <xs:element name="PaymentType"           type="PaymentEnumType"  />
                      <xs:element name="Rate"	               type="SevenFiveDecType" nillable="true" />

		  	<xs:element name="Contract">
		  		      <xs:element name="Balance"	            type="ElevenTwoDecType" nillable="true" />
		  		      <xs:element name="BalloonLoan"	        type="YesNoEnumType"    nillable="true" />
                      <xs:element name="OrigLoanDate"	        type="MonthDayYearType" />
                      <xs:element name="LoanTerm"	            type="YearMonthType" />

		  	<xs:element name="Escrow">
                      <xs:element name="CollectTaxEscrow"      type="YesNoEnumType"             nillable="true" />

		  	<xs:element name="Reporting">
		  		      <xs:element name="LoanNumber"            type="NineIntType" />
		  		      <xs:element name="LoanPurpose"	       type="TwoCharType" />
                      <xs:element name="NoOfGraceDaysBeforeAS" type="ThreeIntType" />
                      <xs:element name="SubSrvcFeeRate"	       type="SevenFiveDecType"     nillable="true" />
6/1/2006 4:47:14 PM 7071 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 0


Similar Artilces:

xml web service --uploading the file to the xml web service
how can we upload the file in the xml web service 1.i mean what will be the return value in the proxy class 2.and how am i going to send the file to the xml web service----regards Bipul Kumar Here are some links to articles that helped us get this done: Hope this helps....

Web service in .NET from Java Web Service
Hi there,I'm pretty new to .net (although i have years of experience with the old vb 6, access 2k, as well as java)... and need some with perhaps either some syntax or something.Here is the wsdl.<wsdl:definitions targetNamespace="">−<wsdl:types>−<schema targetNamespace="GetBookInfoByISBN">−<complexType name="BookInfoType">−<sequence><element maxOccurs="1" minOccurs="0" name="Title" nillable="true" type="xsd:string"/><element maxOccurs=&quo...

How to call a .net web service from another .net web service?
Hi all,I have developed two asp .net web services using visual studio .net 2003.I wish to call one web service from another web service.I tried adding a web reference of the web service in another web service and was able to do so.but i m not able to access the web methods provided by the web servicecould you please suggest a way to go about itExpecting quick replyThanxCharmy try to make sure that you reference it in the web reference and call it properly this is sample  [WebMethod()] public double CalcDistance(int x1, int y1, int x2, int y2) { Calculator.Service1 calc = new...

how to create web service that create xml files availible for web application
Hi epxerts im new in web service. I have a web link which contains nothing when you visit that web link. But when you view the source it will show the xml source in it. I want to create that xml file through web service and make these xml files availible for my application. Best RegardsShaukat Waqar...

How i create web services & call web services?
Give me the solution of how i create webservices & call it and what is purpose of web services ?? PlsGuree  >how i create webservicesVery much the same as creating a new web site site - it is just a different project type. > & call it andAdd a web reference to an existing project to consume the web service.>what is purpose of web services ??To send and receive data.Don't forget to click "Mark as Answer" on the post that helped you.This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped. &...

.NET web services Vs Java Web Services
Hello, does anyone know of a book or good source of information that compares .NET and Java Web Services? (I would like soemthing neutral if possible). I am thinking of approaching this subject for my dissertation? Many Thanks Rob Hi Rob, Last year I had to give a powepoint presentation on Web Services. I noticed some good books at barnes and noble that discussed the subject. These books were specific to Java and discussed Web Services in a very clear fashion. They gave some elementary examples that were easy to understand. I have not yet had the pleasure of creatin .NET Web Servi...

creating XML or XML Web Services?
Hi, I know XML is basically creating a file that allowed multiple applications to get data from the XML file ... and I am wondering .. why there is XML Web Services? What are the differences between these two? I am trying to create a Session that will keep update the value whenever it navigate to any page ... and get the Session value in multiple applications. In my guess, stores Session[] in XML file should work for what I am trying to do ... but what exactly is this XML Web Services? In what kind of situation we use XML or vice versa? All developers, even novices and hobbyists, must be a...

Calling a Web Service from a Web Service
Hello,I was looking for some feedback on calling a web service from within a web service. I've heard that it's not good practice (or not possible). I have a scenario where I think it might make some sense.Within our infrastructure, we've created a web service that handles incoming updates on the statuses of all processes. This has proven to be a good thing since it allows applications to communicate across server to make status updates. It's also used by third party developers and applications to communicate with our infrastructure.Along these lines ... we are planning to create a new compon...

what are web services and what are the advantages of web services?
 Hello  i am new to this .net stuff and i was ask on the job interview what a web services is?and if i did not know given that i had a project ( as a project manager,  or a web developer)   what  is it? how do i start a >NET project on it? what are the main advantages is?  HOW DO I START THIS IN THE INTERVIEW>  and what basic books do i buy?   Hi There, There plenty of source on the net about webservice Definiton:

Is web services a part of web Service?
  I have a question: Is web services a part of web server?? And when the client calls web service, it means that client calls web server?? Or is it a different entity in itself which communicates separately both with client and server and acts as middleware application.. I am very confused.. Can someone explain me the architecture...??? Thanks..Dont forget to click "Mark as Answer" on the post that helped you.This credits the member,earns you a point & marks your thread as Resolved so that new users will know where to search for their queries. When you build and dep...

Web Site Project: How to configure web service URL in web.config (web service defined in a referenced DLL)
I have a web site that references a business logic DLL project. In the business logic project, there is a web service defined in its app.config file something like this: <applicationSettings>  <MyNamespace.BLL.Properties.Settings>    <setting name="MyNamespace_BLL_MyServer_ServiceName" serializeAs="String">    <value>http://blah.blah.blah.asmx</value>  </setting>  </MyNamespace.BLL.Properties.Settings></applicationSettings> When the web site is published, the web ...

XML Web service , Web form
hi i hope if u could help me in what i am making so i have a web form that does the collection of the information from the user when he hits the button this data must be sent to the xml web service but this service must deliver this data in xml then i read the information and insert it to the sql serevr Database could you help me becouse iam soo confused about where to start and what is the stuff to search in it iam new in the xml stuff help me pleaseeeeee“To be incredible you must produce great work”Visit My Blog My first question is why are yo...

New to web services, why does PB10 web service proxy wizard say there are no services?
here... oops typo... still doesn't show any services though... "Chance" <> wrote in message news:43b44cb3$1@forums-1-dub... > here... > > > Upgraded to 10.2x and now seems to be least it created the proxy. "Chance" <

What action by a web service requires an app to update their web reference to a Web Service
I create a web reference to a web service in my aspx web application which returns an XML object. If the owner of the web service makes a change to their object am I required to do an update web reference? What if I dont use the information from the new object? thanks Larry You should make the change only if the contract b/w the two has changed (e.g. parameters, return values), etc.-Mathew Nolton If the web service now returns a new element and my class reference doesn't match their new class ref...

Web resources about - create valid xml to send to web service based on the schema provided by web service -

Facebook: No Data Provided To Turkish Government
Facebook responded emphatically and quickly to a report that it cooperated with the government in Turkey and turned over user data related to ...

LexGo – Entertainment news for Lexington, Central Kentucky and beyond provided by the Herald-Leader
Get LexGo – Entertainment news for Lexington, Central Kentucky and beyond provided by the Herald-Leader on the App Store. See screenshots and ...

American twin-engine bombers, provided by lend-lease, are shown being hoisted aboard ship in an unnamed ...
Title: American twin-engine bombers, provided by lend-lease, are shown being hoisted aboard ship in an unnamed American port. Production Date: ...

North Queensland Cowboys provided NRL with fairytale finish to 2015
Chief rugby league reporter Adrian Proszenko looks back at a dramatic season for the greatest game of all.

Researchers Who Provided Key Evidence For Gluten Sensitivity Have Thoroughly Shown That It Doesn't Exist ...
In one of the best examples of science working, a researcher who provided key evidence of (non-celiac disease) gluten sensitivity recently published ...

Transgender makeovers provided for free to the gender-diverse community in Canberra
Transgender woman Natalie takes part in a free makeover provided to the gender-diverse community in Canberra.

Tenacious Crow Rory Sloane has provided the critics wrong
NOT tough enough, they said. Can't kick. But it appears Adelaide's Rory Sloane had the talent and tenacity to prove them all wrong.

Arthur Sinodinos provided advice to company on how best to lobby former boss PM John Howard
Seven months after quitting as chief of staff to then prime minister John Howard, Arthur Sinodinos was providing advice to a company later linked ...

Church abuse revelations provided perfect storm for Devil's Playground
Prequels, sequels and remakes are all over TV at the moment; from nostalgia-themed reboots like 90210 and Dallas to Wentworth, a contemporary ...

Neglected server provided entry for JPMorgan hackers
The computer breach at JPMorgan Chase earlier this year - the largest intrusion of a US bank to date - might have been thwarted if the bank had ...

Resources last updated: 1/17/2016 10:35:39 AM