473,699 Members | 2,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

No Query Text Received

I have a written a web service which takes some user input and then looks up
the relevant details on a SQL server.

All works fine until I embed it in the Research pane - at which point I
receive no query text when I invoke the service

I'm deploying the service on my local machine so is there an IIS setting
that I have not set that stops the data being received? ..or is the code
wrong?

QueryXML is always "" when used in the research pane...

Any help would be greatly appreciated
Mike

Query code follows:

<WebMethod(Desc ription:="Query Method")Public Function Query(ByVal
QueryXML As String) As String
'SavePacket(Que ryXML, "query.txt" )

Dim xmlQuery As XmlDocument = New XmlDocument
xmlQuery.LoadXm l(QueryXML)
Dim nm As XmlNamespaceMan ager = New
XmlNamespaceMan ager(xmlQuery.N ameTable)
nm.AddNamespace ("msq", "urn:Microsoft. Search.Query")
Dim queryTerm As String =
xmlQuery.Select SingleNode("//ns:QueryText", nm).InnerText
Dim domain As String =
xmlQuery.Select SingleNode("/msq:QueryPacket/msq:Query",
nm).Attributes. GetNamedItem("d omain").Value
Dim queryId As String =
xmlQuery.Select SingleNode("/msq:QueryPacket/msq:Query/msq:QueryId",
nm).InnerText
xmlQuery = Nothing

Dim ioMemStream As New MemoryStream()
Dim myXMLwriter As New XmlTextWriter(i oMemStream, Nothing)

With myXMLwriter
.Indentation = 4
.IndentChar = " "
.WriteStartDocu ment()

.WriteStartElem ent("ResponsePa cket",
"urn:Microsoft. Search.Response ")
.WriteAttribute String("provide rRevision", "1")
.WriteStartElem ent("Response")

.WriteAttribute String("Domain" , domain)
.WriteElementSt ring("QueryID", queryId)
.WriteStartElem ent("Range")
.WriteStartElem ent("Results")
.WriteStartElem ent("Content",
ns:="urn:Micros oft.Search.Resp onse.Content")

GetMatterInfo(C Int(queryTerm), myXMLwriter)

.WriteEndElemen t() ' Content
.WriteEndElemen t() ' Results
.WriteEndElemen t() ' Range
.WriteElementSt ring("Status", "SUCCESS")
.WriteEndElemen t() ' Response
.WriteEndElemen t() ' ResponsePacket
.WriteEndDocume nt()
End With

myXMLwriter.Flu sh()
ioMemStream.Flu sh()
ioMemStream.Pos ition = 0

Dim iostReader As New IO.StreamReader (ioMemStream)
Query = iostReader.Read ToEnd.ToString
End Function

END CODE
Sep 26 '06 #1
1 1352
"owenmj" <ow****@discuss ions.microsoft. comwrote in message
news:F0******** *************** ***********@mic rosoft.com...
>I have a written a web service which takes some user input and then looks
up
the relevant details on a SQL server.

All works fine until I embed it in the Research pane - at which point I
receive no query text when I invoke the service

I'm deploying the service on my local machine so is there an IIS setting
that I have not set that stops the data being received? ..or is the code
wrong?

QueryXML is always "" when used in the research pane...

Any help would be greatly appreciated
Mike

Query code follows:

<WebMethod(Desc ription:="Query Method")Public Function Query(ByVal
QueryXML As String) As String
'SavePacket(Que ryXML, "query.txt" )
Is QueryXML.Length = 0 at this point in your code? If so, then there was no
point in including the rest of your code.

If it was not blank at this point, please tell me, and I'll take another
look at your code.

P.S. Not everyone here knows about the Research Pane. I don't, for instance.
You might want to post a few links to information on the Research Pane.

John
Sep 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3007
by: Dan | last post by:
Hello, Am trying to construct a query that'll both compute elapsed time based on certain criteria and sum this up for a subset of records. Sample Data that I'm working with: Row Ev_Time Ev_id Ev_Desc ------------------------------------------------------------------- 1 2004-12-03 14:28:45 400 Batch set Run
20
17628
by: xixi | last post by:
hi, we use db2 udb v8.1 on windows, i am trying to use federated database objects to create wrapper, even though i have update dbm cfg using federated yes, i still get error "the instance for the db is not enable for the specified action", do i miss sth else?
3
2422
by: Reginald | last post by:
I am trying to create a query based on 1 of 3 date fields from a table called "T40". the first date is T40RbtDte, 2nd is T40RbtRecDte, 3rd is T40RbtDueDte. I have created a form to alow the user to select what date the report is based on. The report has a drop down box with 2 columns, and column 1 selected as the bound column. The form is called "RptFrm Rebates Received by Vendor" and the drop down box name is "DateRequested"...
3
1011
by: cassandra.flowers | last post by:
Hi, I was wondering if it is possible (Using access) to have a query parameter as a drop down box rather than a text box? e.g. typing as criteria for a query produces a box with a text box for you to enter the parameter. Can any body enlighten me on how to turn this text box into a drop down box? And whether it is possible?
36
3050
by: Liam.M | last post by:
hey guys, I have one last problem to fix, and then my database is essentially done...I would therefore very much appreciate any assistance anyone would be able to provide me with. Currently I have set up a Query to show only records that meet a certain criteria...therefore excluding all of the records that do not meet this criteria (just for the record the criteria is any record within my database that falls within two months of its "Due...
7
2881
by: bryant | last post by:
Hi all. I am new to ASP and working in Expression Web. The following query displays the information I need in the gridview for a single record. SELECT "OE_HDR"."ORD_NO", "OE_HDR"."CUST_NAM", "OE_HDR"."SLS_MAN_NO", "OE_HDR"."SLS_MAN_INITIALS", "OE_HDR"."ORD_DAT", "OE_HDR"."SHIP_DAT" FROM "OE_HDR" WHERE ("OE_HDR"."ORD_NO"='174310') I also have DropDownList1 working properly. For the WHERE portion of
10
3818
by: mbatestblrock | last post by:
I dont know if this is possible.. I have a form frmCustomers with a subform sfrmCustomers and in the subform I have a unbound text field in the footer txtCOUNT with the control source of =Sum(IIf(="Received From",1,0)) and in the main form I have another unbound txt field txtReceivedtimes It is just for a quick reference as I am combing through customers to see how many returns I have for them.
3
2133
by: jasocke2 | last post by:
What I have, I think is quite a simple question, I have looked around for quite a while but can't seem to find the solution. What I have is a database with 1 table, the fields that I am concentrating on are: ID (Auto number) Date Received (date) Shop Name (Text) Error Log A (Yes/No) Error Log B (Yes/No) Error Log C (Yes/No)
5
2322
by: Just_a_fan | last post by:
I tried to put an "on error" statement in a routine and got the message that I cannot user "on error" and a lamda or query expression in the same routine. Help does not list anything useful for explaining a "lamda" expression and so I don't know what one is and I am not doing any database stuff in the entire program. So what does this error message really mean and what can I do to get an On Error into the routine?
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8613
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8908
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7745
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.