Multi-part Post Using URLVariables
I want to use URLVariables to POST the following:
name String
key String
fname String
PNG ByteArray (encoded image data in memory that I want to pass to the server to write, (want to keep it Flash 9 and down).
XML String
It is easy to work with all small strings in URLVariables, but I cant get the mixed data types (adding the encoded PNG memory data) to work. I really dont want to break this apart to seperate posts.
It seems I have to do some extra encoding work in the Request Headers but I haven't found many helpful examples.
Anyone know any good examples (or libraries) out there that make this easier?
Thanks
You can post this in product suggestion center, http://digital.ni.com/applications/psc.nsf/default?openform.
Similar Messages
-
Web Services HTTP Multi Part Post
I noticed in LabView that there is a HTTP Client Palette library. The one particular VI is the HTTP Post Multipart VI that I am interested in. Why can't Lab Windows CVI have a similar HTTP Client Library in future versions of Lab Windows CVI for HTTP Clients?
You can post this in product suggestion center, http://digital.ni.com/applications/psc.nsf/default?openform.
-
Creating a cfhttp multi part form post for google docs upload
Hey all,
If you saw my last thread, you know I am working with google docs and uploading documents to it. Well I got basic document uploading working, but now I am trying to include meta data. Google requires you to include the metadata with the actual file data and seperate them by using a multi part form upload. I don't know exactly the process for doing so, but they have a handy code snippet of the desired results at
http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#UploadingDoc s
So I am basically trying to mimic that payload, however I am continually getting an error stating that there are no parts in a multi part form upload.
<errors xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>InvalidEntryException</code><internalReason>No parts detected in multipart message</internalReason></error></errors>
to be exact. I am not really sure what I am doing wrong here. I figure it is one of two things, either I am not including the actual data in the payload properly (I am currently using a body type param for the payload, but I have also tried a formfield named content to deliver it. Neither worked). So maybe I need to do something else tricky there? The other thing which I am not reallly sure about is the content-length attribute. I don't know exactly how to calculate that, and I read in another forum that a content length attribute was messing that guy up. Right now I am just taking the lenght of the payload string and multiplying by 8 (to get the number of bytes for the entire payload) but hell if I know if that is right. It could be I just don't know how to set up the parts for the message, it seems pretty straight forward though. Just define a boundary in the content-type, then put two dashes before it wherever you define a new part, and two dashes trailing the last part.
Anyway, here is my code, any help is much appreciate. I'm a bit beyond my expertise here (not really used to trying to have to roll my own http requests, nevermind multipart post form data) so I'm kinda flailing around. Thanks again.
<cffunction name="upload" access="public" returnType="any" hint="I upload the document." output="false">
<cfargument name="filePath" type="string" required="false" hint="file to upload.">
<cfargument name="docType" type="string" required="yes" hint="The document type to identify this document see google list api supported documents">
<cfargument name="parentCollectionId" type="string" required="no" hint="the name of the collection/collection to create (include collection%3A)">
<cfargument name="metaData" type="struct" required="no" hint="structure containing meta data. Keyname is attribute name, value is the value">
<cfset var result = structnew()>
<cfset result.success = true>
<cftry>
<cfif structkeyexists(arguments,"parentCollectionId")>
<cfset arguments.parentCollectionId = urlencodedformat(parentCollectionId)>
<cfset result.theUrl = "https://docs.google.com/feeds/default/private/full/#arguments.parentCollectionId#/contents">
<cfelse>
<cfset result.theUrl = "https://docs.google.com/feeds/default/private/full/">
</cfif>
<cfoutput>
<cffile action="read" file="#arguments.filePath#" variable="theFile">
<cfsavecontent variable="atomXML">
Content-Type: application/atom+xml
<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:docs="http://schemas.google.com/docs/2007">
<category scheme="http://schemas.google.com/g/2005##kind"
term="http://schemas.google.com/docs/2007###arguments.docType#"/>
<cfloop collection="#arguments.metaData#" item="key">
<#key#>#arguments.metadata[key]#</#key#>
</cfloop>
</entry>
--END_OF_PART
Content-Type: text/plain
#theFile#
--END_OF_PART--
</cfsavecontent>
</cfoutput>
<cfset result.postData = atomXML>
<cfhttp url="#result.theUrl#" method="post" result="httpRequest" charset="utf-8" multipart="yes">
<cfhttpparam type="header" name="Authorization" value="GoogleLogin auth=#getAuth()#">
<cfhttpparam type="header" name="GData-Version" value="3">
<cfhttpparam type="header" name="Content-Length" value="#len(trim(atomXML))*8#">
<cfhttpparam type="header" name="Content-Type" value="multipart/related; boundary=END_OF_PART">
<cfhttpparam type="header" name="Slug" value="test file --END_OF_PART">
<cfhttpparam type="body" name="content" value="#trim(atomXML)#">
</cfhttp>
<cftry>
<cfset packet = xmlParse(httpRequest.fileContent)>
<cfif httpRequest.statusCode neq "201 created">
<cfthrow message="HTTP Error" detail="#httpRequest.fileContent#" type="HTTP CODE #httpRequest.statusCode#">
</cfif>
<cfset result.data.resourceId = packet.entry['gd:resourceId'].xmlText>
<cfset result.data.feedLink = packet.entry['gd:feedLink'].xmlText>
<cfset result.data.title = packet.entry.title.xmlText>
<cfset result.data.link = packet.entry.title.xmlText>
<cfcatch>
<cfset result.data = httpRequest>
</cfcatch>
</cftry>
<cfcatch type="any">
<cfset result.error = cfcatch>
<cfset result.success = false>
</cfcatch>
</cftry>
<cfreturn result>
</cffunction>
Also, this is what my atomXML data ended up looking like when it got sent to google. This isn't the WHOLE request (it doesn't include the headers, just the body).
Content-Type: application/atom+xml
<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:docs="http://schemas.google.com/docs/2007">
<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/docs/2007#document"/>
<TITLE>Woot Test</TITLE> </entry>
--END_OF_PART
Content-Type: text/plain
I'm a test document lol!
--END_OF_PART--Woot, I got it. I had to send the gData version number, and change the URL.
Here is the working function.
<cffunction name="upload" access="public" returnType="any" hint="I upload the document." output="false">
<cfargument name="myFile" type="string" required="false" hint="file to upload.">
<cfset var result = "">
<cfset theUrl = "https://docs.google.com/feeds/default/private/full">
<cffile action="read" file="C:\website\xerointeractive\testing\test.txt" variable="theFile">
<cfset fileSize = createObject("java","java.io.File").init("C:\website\xerointeractive\testing\test.txt").length()>
<cfhttp url="#theURL#" method="post" result="result" charset="utf-8" >
<cfhttpparam type="header" name="Authorization" value="GoogleLogin auth=#getAuth()#">
<cfhttpparam type="header" name="Content-Type" value="text/plain">
<cfhttpparam type="header" name="Slug" value="test file">
<cfhttpparam type="header" name="GData-Version" value="3">
<cfhttpparam type="header" name="Content-Length" value="#fileSize#">
<cfhttpparam type="body" value="#theFile#">
</cfhttp>
<cfreturn result>
</cffunction> -
What size battery does my Palm Executive Multi-Function Stylus use? (Part # P10944U)
I think it uses 4 of them but I dont know what size and I cant find it anywhere on the Palm site. This is the same pen...
[IMG]http://i33.photobucket.com/albums/d82/Amducias/palm.jpg[/IMG]
Post relates to: NoneAnd find out what battery it uses, assuming that you have it.
Looks like not many places sell it anymore. Couldn't find any info for you.
You may need to find another multi-function stylus to replace it if you can't find the battery. -
Use question pool with multi-part questions?
Is it possible to use the question pool in Captivate 5 for a quiz with multi-part questions? I'd like to have a question selected from a pool, but after the learner answers the first part, they get a second question that is based on the first part.
They get a question: "Is this heart sound dangerous or safe?" Then, after answering that, they'd get the question "What is the diagnosis?" for the same sound. The first question comes from a specified pool, but the second question is based on the first question. Then, they'd go on to a new pool question.
I''d appreciate any suggestions.
Thanks!I would use the XML function from Captivate 4.
- Make yourself a test quiz with two slides, one being a multiple choice.
- Export it to XML
- Open the XML File in Excel
Good point to start with is ns1:g and ns1:Source26.
Most likely you can get all your question into captivate that way.
Mr_TD -
The multi-part identifier could not be bound.
Hi!
Somebody can tell me what I'm doing wrong on this code (see below) because I'm getting this message
(Msg 4104, Level 16, State 1, Line 1. The multi-part identifier "dbo.tdbComments.cmsComments" could not be bound.)
SELECT [to].odsProduct, tsd.sndInvoice, tsd.sndSerialID, tsd.sndTicketNo, tsd.sndStationID, ps.psName, CONVERT(varchar(8),tsd.sndDate,1) AS [Scanned Date],
CONVERT(varchar(8),tsd.sndLaborDay,1) AS [Labor day], tsd.sndEmployeeID, u.EmpName, tc.cmsComments AS [Comentarios]
FROM dbo.tdbScanDetail tsd
INNER JOIN dbo.proStation ps ON ps.psID = tsd.sndStationID
INNER JOIN UserPlenimex.dbo.Users u ON u.EmpID = tsd.sndEmployeeID
INNER JOIN dbo.tdbOrders [to] ON tsd.sndSerialID = odsSerial
INNER JOIN dbo.tdbComments tc ON odsInvoice = sndInvoice
WHERE tsd.sndInvoice = '55370.0870'
GROUP BY [to].odsProduct, tsd.sndInvoice, tsd.sndTicketNo, tsd.sndSerialID, tsd.sndStationID, ps.psName, tsd.sndDate, tsd.sndLaborDay, tsd.sndEmployeeID, u.EmpName, dbo.tdbComments.cmsComments
ORDER BY tsd.sndStationIDtry
SELECT [to].odsProduct
,tsd.sndInvoice
,tsd.sndSerialID
,tsd.sndTicketNo
,tsd.sndStationID
,ps.psName
,CONVERT(VARCHAR(8), tsd.sndDate, 1) AS [Scanned Date]
,CONVERT(VARCHAR(8), tsd.sndLaborDay, 1) AS [Labor day]
,tsd.sndEmployeeID
,u.EmpName
,tc.cmsComments AS [Comentarios]
FROM dbo.tdbScanDetail tsd
INNER JOIN dbo.proStation ps ON ps.psID = tsd.sndStationID
INNER JOIN UserPlenimex.dbo.Users u ON u.EmpID = tsd.sndEmployeeID
INNER JOIN dbo.tdbOrders [to] ON tsd.sndSerialID = odsSerial
INNER JOIN dbo.tdbComments tc ON odsInvoice = sndInvoice
WHERE tsd.sndInvoice = '55370.0870'
GROUP BY [to].odsProduct
,tsd.sndInvoice
,tsd.sndTicketNo
,tsd.sndSerialID
,tsd.sndStationID
,ps.psName
,tsd.sndDate
,tsd.sndLaborDay
,tsd.sndEmployeeID
,u.EmpName
,dbo.tdbComments
,tc.cmsComments
ORDER BY tsd.sndStationID
Thanks
Manish
Please click Mark as Answer if my post solved your problem and click
Vote as Helpful if this post was useful. -
Multi cam shoot using P2 cards. How to move clis to timecode positions
multi cam shoot using P2 cards. How to move clis to timecode positions. We were using free TC. I want to a large # of clips from both cams. and have them move to the correct TC position on the timline. In Nuendo eith audio u hit apple a or ctrl a right click move to orgin. Avid will take care of it for u. FCP???
If you read the "Apple Pro Training Sereis; Final Cut Pro 5" book, it's very easy. You can sync the clips manually by setting In or Out points, specifying TC, or using one of the two Aux TC fields. Since this is the first, and most basic step in doing Multiclip editing, I'd suggest you get the book, or read the appropriate section of the User Manual. I don't think anyone wants to post a full "how to" article in a forum.
It can be done, you're clips have to all have been recorded with synced TC, or they simply won't sync up in any NLE. Read the book. Cause even if I did have the time to explain FCP's Multiclip editing in this forum, you'd still have questions that are in the book.
If you actually walk through the first steps of building a Multiclip to edit, it's blatatnly obvious in the first step. I'd give it a try first.
Problem is the DVCPRO-HD codec is going to require a higher end Mac with tons of RAM and either RAID, or internal drives to do a DVCPRO-HD Multiclip, as DVCPRO-HD (P2) is a pretty high bandwidth codec. I use it daily, I know, it takes horsepower to do. -
Error calling BPEL from ESB Multi-part simple type
I am trying to define a soap service in ESB which is refering a BPEL service. I get the error
The selected porttype is using a message that is invalid for ESB because it is multi-part or has a simple type.The message RuntimeFaultMessage in operation process of port type exportCaCustomers is invalid. Please select another portype.
Here is the wsdl for the BPEL service. exportCaCustomers.wsdl
<definitions
name="exportCaCustomers"
targetNamespace="http://xmlns.oracle.com/exportCaCustomers"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://www.globalcompany.com/ns/order"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:ns3="http://usconcrete.com/v1/interfaces/common/InputMessage.xsd"
xmlns:ns2="http://schemas.oracle.com/bpel/extension"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:client="http://xmlns.oracle.com/exportCaCustomers"
xmlns:ns10="http://usconcrete.com/v1/interfaces/common/InputMessage.xsd"
>
<import namespace="http://schemas.oracle.com/bpel/extension" location="RuntimeFault.wsdl"/>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.globalcompany.com/ns/order"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:client="http://xmlns.oracle.com/exportCaCustomers">
<import namespace="http://xmlns.oracle.com/exportCaCustomers" schemaLocation="exportCaCustomers.xsd"/>
</schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.globalcompany.com/ns/order"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:client="http://xmlns.oracle.com/exportCaCustomers">
<xsd:import namespace="http://www.globalcompany.com/ns/order" schemaLocation="sampleTax.xsd"/>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://usconcrete.com/v1/interfaces/common/InputMessage.xsd" schemaLocation="InputMessage.xsd"/>
</xsd:schema>
</types>
<message name="exportCaCustomersRequestMessage">
<part name="payload" element="ns10:CVInputMessage"/>
</message>
<message name="exportCaCustomersResponseMessage">
<part name="payload" element="client:exportCaCustomersProcessResponse"/>
</message>
<portType name="exportCaCustomers">
<operation name="process">
<input message="client:exportCaCustomersRequestMessage"/>
<output message="client:exportCaCustomersResponseMessage"/>
<fault name="bindingFault" message="ns2:RuntimeFaultMessage"/>
</operation>
</portType>
<plnk:partnerLinkType name="exportCaCustomers">
<plnk:role name="exportCaCustomersProvider">
<plnk:portType name="client:exportCaCustomers"/>
</plnk:role>
</plnk:partnerLinkType>
</definitions>
These are the contents of RuntimeFault.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="RuntimeFault"
targetNamespace="http://schemas.oracle.com/bpel/extension"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<message name="RuntimeFaultMessage">
<part name="code" type="xsd:string"/>
<part name="summary" type="xsd:string"/>
<part name="detail" type="xsd:string"/>
</message>
</definitions>
This looks like a very basic thing to do. My BPEL process is working fine. I just want to access it from ESB. Any ESB gurus there. Please respond.<fault name="bindingFault" message="ns2:RuntimeFaultMessage"/>Don't think this is the way to define the RuntimeFaults.
the fault-element you use to 'throw' you own business faults.
RunTimeFaults are handled by the bpel framework itself and aren't throwable like this.
See :
http://www.oracle.com/technology/products/ias/bpel/htdocs/orabpel_technotes.tn007.html
""Business faults are application specific faults and occur when an explicit <throw> activity is executed or an <invoke> activity gets a fault as response. The fault name of a business fault is specified by the BPEL process and the messageType, if one exists, is defined in the WSDL.
Runtime faults are not user defined and will not appear in the WSDL for a process or service."" -
Multiple Forms in a Flash Document and Posting Using ASP
Hello everyone!
I have some what of a dilemma on my hands. I am creating
multiple forms in one document using Flash and need them to post
using ASP script. I have been researching this for the last six
days, and I have had NO luck. I have noticed that all the
information that I have found is for one form, not more than one.
What I have so far is the Flash document, with 4 forms. The
basic idea is that a user chooses from a drop down menu (the
combobox) a location, and depending on the location chosen, it
takes the user to another frame in the flash document. The forms
(all their own movie clip) contains a name field, a department
field, and either a manager name a userID field or an employee
number as well as the basic buttons for submitting the form or
resetting the form.
So far what I have working is the drop down menu (combobox)
taking me to the proper frame and it shows the appropriate form.
The reset button clearing the form (deleting any information that I
have imputed into the input fields), but I have absolutely NO idea
how to get the submit button to work (I did manage to get it to
send me a message if there was nothing in one of the input fields),
and NO idea how to get the information to the ASP file.
Where there are 4 forms do each of them have to have their
own ASP file attached to them, or can I use one?
If anyone knows a site that deals with multiple forms in one
SWF and posts using ASP that would be greatly appreciated, or if
you know some actionscript that could be helpful.
Thank you all in advance.That would be part of my problem, I really don't know ASP,
and I am flying by the seat of my pants.
The current script I have for the ASP file is:
<% @Language = "VBScript" %>
<%
Option explicit
Dim strfullName
Dim strdeptName
Dim strmanagerName
Dim strobjeemail
Dim strlocation
strfullName.Request.Form("fullName_txt")
strdeptName.Request.Form("deptName_txt")
strmanagerName.Request.Form("managerName_txt")
strlocation.Request.Form("locationName")
Set strobjemail = CreateObject("CDO.Message")
strobjemail.From = "[email protected]"
strobjemail.To = "[email protected]"
strobjemail.Subject = "Program from " + strlocation
strobjemail.Body = "This user has completed this progrmam
from " + strlocation & Chr(13) & Chr(10) & "Name: " +
strfullName & Chr(13) & Chr(10) & "Department: " +
strdeptName & Chr(13) & Chr(10) & + "Manager: " +
strmanagerName
strobjemail.Send
Set strobjemail=nothing
%>
The AS code that I have so far is:
function formValidationChecks(){
if (fullName_txt.length==0){
status_txt.text = "Please enter your Name";
else if (deptName_txt.length==0){
status_txt.text = "Please enter your Department";
else if (managerName_txt.length==0){
status_txt.text = "Please enter your Manager";
else {
status_txt.text = "Thank You!";
variables.fullName_txt = fullName_txt.text;
variables.deptName_txt = deptName_txt.text;
variables.managerName_txt = managerName_txt.text;
varLoader.load(varSend);
trace("-----");
trace("Name: "+fullName_txt.text);
trace("Department: "+deptName_txt.text);
trace("Manager: "+managerName_txt.text);
trace("Form validated");
submit_btn.onRelease = function(){
status_txt.text = "";
if(formValidationChecks()){
var lv = new LoadVars();
lv.fullName_txt = form.fullName_txt.text;
lv.deptName_txt = form.deptName_txt.text;
lv.managerName_txt = form.managerName_txt.text;
lv.sendAndLoad("mail.asp", lv, "POST");
reset_btn.onRelease = function()
fullName_txt.text = "";
deptName_txt.text = "";
managerName_txt.text = "";
So far my reset button clears everything, and the submit
button is tracing the content in the form fields, but it's not even
grabbing the asp page.
Any suggestions? Even pages that have tutorials that are in
the form of a video.
Thanks -
Is there a workaround for wsdl with multi-part porttype with ESB?
I am trying to implement a simple connection to a service with ESB, and have been successful in trials with several other products, but when I try to use the SOA adapter with ESB I get the following message.
"The selected porttype is using a message that is invalid for ESB because it is multi-part or has a simple type. The message getTransactionsByRegistrationIdRequest in operation getTransactionsByRegistrationIdRequest of prottype QueryTransactionsWebService is invalid. Please select another porttype of fix the wsdl."
Is there a work around for this?
We would like to use ESB since we are licensed, but continue to have problems.
Any help would be appreciated.This works out of box in 11 but as a 10.1.3 workaround, You can write a java web service to proxy the multipart service and expose a regular doc literal service wsdl to ESB. This shouldn't be too much work for an experienced java/web service programmer. We are going to enable multipart for a pass through (no filters or xsl) service in 10.1.3.4. Let me know what path you choose.
-
Weblogic throwing "null SOAP element Exception" in multi-part SOAP response
Hi All,
I'm using weblogic 10. My application is a webservice client generated using '*clientgen*', which is running on weblogic, and
is invoking a remotely hosted webservice ( Remotely hoseted webservice may not be running on weblogic).
I've the wsdl file of remotely hosted webservice.
Now the problem is with WSDL file (I suppose), have a look at this.
*<message name="m1">*
*<part name="body" element="tns:GetCompanyInfo"/>*
*</message>*
*<message name="m2">*
*<part name="body" element="tns:GetCompanyInfoResult"/>*
*<part name="docs" type="xsd:AnyComplexType"/> ------> assume all elements inside this complex type can be nil or minOccurs set to '0'*
*<part name="logo" type="xsd:AnyOtherComplexType"/> ------> assume all elements inside this complex type can be nil or minOccurs set to '0'*
*</message>*
<portType name="pt1">
<operation name="GetCompanyInfo">
<input message="m1"/>
*<output message="m2"/> -----> multi part message.*
</operation>
</portType>
Now here is sample message for the request(I've composed this message for this question):
<soap:Envelope> MESSAGE1
<soap:header/>
<soap:body>
<tns:m2>
<tns:GetCompanyInfoResult>
Blah Blah....
</tns:GetCompanyInfoResult>
<tns:docs>
Blah Blah....
</tns:docs> Assume no data for 'logo', so it's not returned. Since all its elements can be nillable.
<tns:m2>
</soap:body>
</soap:Envelope>
First of all, is this SOAP response is valid? I'm not sure about *'message' and 'parts' in SOAP*, but according to XML schema standards it's invalid.
Because, according to *'message' m2, 'logo' is missing*, eventhough all it's elements are nillable in such case there should be *<logo/>* at the end.
I mean valid message should be like below
<soap:Envelope> '*MESSAGE2*'
<soap:header/>
<soap:body>
<tns:m2>
<tns:GetCompanyInfoResult>
Blah Blah....
</tns:GetCompanyInfoResult>
<tns:docs>
Blah Blah....
</tns:docs>
*<tns:logo/> ------------------> here is the change compared to above message. empty element.*
<tns:m2>
</soap:body>
</soap:Envelope>
Now the concerns are :
(1) Which is a valid response? Message1 or Message2
(2) If message1 is valid then why is weblogic throwing an exception 'null SOAP element', I suppose this is due to missing 'logo' element.
(To confirm this I've used tcpmonitor and found message1 as response but weblogic is still throwing 'null SOAP Element' exception,
which confirms it needs 'logo' as well, I suppose <logo/> at least). Is there any workaround for this in weblogic for multi-part messages?
(3) If message1 is invalid according to SOAP standards then You've answered my question. ---> I need to talk to the webservice provider in this case.....
Thanks in advance...Message 1 is not Basic Profile 1.1 compliant. It is specified by BP1.1 in section 4.4.1(http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html#Bindings_and_Parts) that when a wsdl:part element is defined using the type attribute, the serialization of that part in a message is equivalent to an implicit (XML Schema) qualification of a minOccurs attribute with the value "1", a maxOccurs attribute with the value "1" and a nillable attribute with the value "false".
-
SQL Server 2005: Multi-part identifier could not be bound
Hello,
I use IBM WebSphere Portal and am desperately trying to move data from the default Cloudspace Database to MS SQL Server 2005, of course following the official guidelines.
What happens is that WebSphere's Configuration Wizard fails because of an error caused by the SQL Script. Trouble is, I can't bring it to work not even in the SQL Server Management Studio.
What follows is the code generated by the script. The error is caused by the last "check"-constraint (colored in red).
CREATE TABLE community.APP_DESC (
OID BINARY(18) NOT NULL,
TYPE INTEGER NOT NULL,
APP_NAME NVARCHAR(255) NOT NULL,
IS_ACTIVE INTEGER NOT NULL,
JSR_VERSION NVARCHAR(255),
GUID NVARCHAR(255),
WEB_MOD_OID BINARY(18),
WEB_MOD_SL BINARY(18),
WSRP_PROD_OID BINARY(18),
WSRP_PROD_SL BINARY(18),
DEFAULT_LOCALE NVARCHAR(64),
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
WSC_GROUP_ID NVARCHAR(255),
CONSTRAINT PK20 PRIMARY KEY NONCLUSTERED (OID),
CONSTRAINT FK20A FOREIGN KEY (WEB_MOD_OID) REFERENCES community.WEB_MOD (OID) ON DELETE CASCADE,
constraint FK20B FOREIGN KEY (WSRP_PROD_OID) REFERENCES community.WSRP_PROD (OID) ON DELETE CASCADE,
CONSTRAINT CC20A CHECK (((community.APP_DESC.WEB_MOD_OID IS NULL) AND (community.APP_DESC.WEB_MOD_SL IS NOT NULL)) OR ((community.APP_DESC.WEB_MOD_OID IS NOT NULL) AND (community.APP_DESC.WEB_MOD_SL IS NULL)))
And that's what SQL Server 2005 told me:
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "community.APP_DESC.WEB_MOD_OID" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "community.APP_DESC.WEB_MOD_SL" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "community.APP_DESC.WEB_MOD_OID" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "community.APP_DESC.WEB_MOD_SL" could not be bound.
BTW, as this is a generated script I do not have the possibility to change it. Because it has been released by IBM I am rather convinced that it is correct - therefore I was wondering whether SQL Server 2005 has a known bug that makes it refuse "check"-constraints.
Any hint is very appreciated.
Thanks in advance,
adapterTHe problem is that is was probably not made for SQL Server 2005. It should read:
CONSTRAINT PK20 PRIMARY KEY NONCLUSTERED (OID),
CONSTRAINT FK20A FOREIGN KEY (WEB_MOD_OID) REFERENCES community.WEB_MOD (OID) ON DELETE CASCADE,
constraint FK20B FOREIGN KEY (WSRP_PROD_OID) REFERENCES community.WSRP_PROD (OID) ON DELETE CASCADE,
CONSTRAINT CC20A CHECK (((APP_DESC.WEB_MOD_OID IS NULL) AND (APP_DESC.WEB_MOD_SL IS NOT NULL)) OR ((APP_DESC.WEB_MOD_OID IS NOT NULL) AND (APP_DESC.WEB_MOD_SL IS NULL)))
The meaning of the first identifier changed in SQL Server 2005, as this is now the Schema and not the owner. DO you have a chance of using a SQL Server 2000 computer ? In terms of licences you will have a downgrade licence for the SQL Server, otherwise you should ping the IBM guys to provide a compatible script.
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de -
Processing multi-part messages in Flex
Hello,
I'm writing an extension for Photoshop using AS3 and Flex. This extension connects to a HTTP server that replies with an HTTP multi-part response containing images. Is Flex able to decode this response?
So far I have only been able to see the response as a whole text, but not interact with it without parsing it manually. Is there any other option?
Thanks a lot,There is a property file that contains all default messages. The value is required message takes a parameter � element id.
You have three ways of handling this:
1. If you are using JSF 1.2, in the <h:form> tag use property prependId=�false�. This will stop JSF from generating the long element ids.
2. Again, if you are using JSF 1.2, you may use the new property requiredMessage of the <h:inputText> tag.
3. Another solution, but not a very good one, is to change the text of the error message as it is defined in the properties file. But this will change the error message text everywhere. -
ave an issue from my auto response email, it showing the "MIME This is a multi-part message in MIME format. " and the signature message disappeared and replaced with some unreadable message
Hi msnyder1112,
Thank you for posting in MSDN forum.
Since this issue is related to the VB.NET, so we will move this case to VB forum:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral , you will get better support.
Thanks for your understanding.
Best Regards,
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. -
BAPI_REL_GETRELATIONS when objectid-objkey is multi-part ???
BAPI_REL_GETRELATIONS takes an importing parm OBJECTID of type bapiborid.
In the bapiborid structure, obkkey is a char 70 field:
OBJKEY SWO_TYPEID CHAR 70
So when my BO is "DRAW" with a complex multi-part key consisting of
DOKAR DOKAR CHAR 3
DOKNR DOKNR CHAR 25
DOKVR DOKVR CHAR 2
DOKTL DOKTL_D CHAR 3
how do I specifiy objkey within objectid?
Do I just concatenate dokar, doknr, dokvr, and doktl into objkey ?????
Please advise.
Thanks.hi use
data: test(3) type c value 'test',
test1(5) type c value 'test',
test2(6) type c value 'test',
test3(7) type c value 'test',
test4(40) type c .
concatenate test test1 test2 test3 into test4 .
write:/ test4 .
if zeros need use the conversion exits
Maybe you are looking for
-
Solving an Apple ID problem if I move to iCloud
After many years of being a Mac user, I still contend the most un-Apple like thing they do is the restriction process of Apple IDs. I might be wrong, and hopefully I am, but here is my current situation and how I'd like to change it. 1. I'm current
-
My Soundtrack pro looses the mic on AJAKona. It will appear as an input only by clicking on New audio file, then ok, and an Recording alert comes up. But if I change track I loose the AJA again. How do I fix this?
-
Session gets expired on using richTextEditor inside a popup
Hi, I have a a custom component inside a jsff page.In the custom component I have a popup having af:richTextEditor inside it. While closing the popup I get error message popup saying : Because of inactivity, your session has timed out and is no longe
-
ok i know this has probably been covered but... on my g5 (oem ATI radeon 9600 pro 64mb) it seems like maybe it's my video card making a ticking noise when scrolling with the mouse or doing other actions affecting the GUI. i can 100% reproduce the noi
-
Creative Suite 2 Fails to Re-register
I am trying to complete a re-registration on a new laptop for this product. The process fails and I am directed to phone customer support. After that lengthy process, I was instructed to search for this patch at Adobe.com: KB409127 That patch is a