Oracle.j2ee.ws.saaj.ContentTypeException:Not a valid SOAP Content-Type:text
Hi,
I m trying to invoke external webservice using Oracle BPEL. I create BPEL process to invoke the webservice.
BPEL process invokes the external webservice, retrieving the session id,etc. But, when the same webservice is invoked again using the session id throught the same BPEL process, BPEL process is throwing this fault error:
<fault>
-<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
-<part name="summary">
<summary>
exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=UTF-8
</summary>
</part>
</remoteFault>
</fault>
Can any one tell how to resolve the above exception...
Thanks in Advance.
Ajay
I am having a very similar problem. Did you end up solving this problem?
Similar Messages
-
I am using SOA Mediator 11.1.1.7(11g) and while invoking a thrid party web service API I get the following error. Please help me fix this issue.
ORAMED-03302:[Exception in oneway execution]Unexpected exception in one-way operation "execute" on reference "AppvOffclJMSInAdapter_Exist_RS.AppvOffclJMSInAdapter_Exist_RS".Possible Fix:Check whether the reference service is properly configured and running or look at exception for analyzing the reason or contact Oracle Support Services. Cause:Unable to invoke endpoint URI "https://stripesqa.doe.gov/headergeneric/HeaderGeneric/HeaderGeneric.asmx" successfully due to: javax.xml.soap.SOAPException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
Thanks,
Vedauser9055538 wrote:
i test the soa webservcies in a browserHi,
It would help if you could give us more details...
What type of soa webservices are we talking about here (JAX-RPC/BPEL/OSB)?
And how exactly are you testing your soa webservices in a browser (EM)?
A valid SOAP will have content-type: text/xml
You may be pointing to a invalid endpoint or you may have an authentication/authorisation problem, so you are receiving html instead of soap...
Cheers,
Vlad -
oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=UTF-8
Cause: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=UTF-8
I am getting the above error message when i test the soa webservcies in a browser.when i test with soap ui it works fineuser9055538 wrote:
i test the soa webservcies in a browserHi,
It would help if you could give us more details...
What type of soa webservices are we talking about here (JAX-RPC/BPEL/OSB)?
And how exactly are you testing your soa webservices in a browser (EM)?
A valid SOAP will have content-type: text/xml
You may be pointing to a invalid endpoint or you may have an authentication/authorisation problem, so you are receiving html instead of soap...
Cheers,
Vlad -
Not a valid SOAP Content-Type: text/html; charset=iso-8859-1
Friends
JDEV and SOA suite 10134
I have multiple domains on my BPEL Server. In one of the domain since I deployed the new process, all the processes of that domain are now failing on execution with following error in opmn/soa_instance/*.err log files. No errors in domain.log
+"Caused by: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; cha+
+rset=iso-8859-1"+
At the same time we get Internal Server Error on BPEL Console.
I have sync processes with 1 or two invokes, so I am generally losing the instances, cannot provide the details in the process execution. All BPEL processes are invoking Siebel Web Services, that is the common part.
When I restart my system, it may or may not work; even if it works then within few instances execution again starts giving the same error. I can see that after the errors the instance are going through and getting completed successfully few times. All these processes were working successfully earlier.
Any idea about this !!!!
ThanksThanks Anirudh,
I don't use compensation handlers. Moreover I have properly defined the scopes and sequences throughout the bpel process. My processes are sync in nature and I'm not able say at what step exactly the processes are failing and throwing the SOAP content Type error though the instances are getting completed with delay soemtimes. -
Hi,
I am constructing a mime message in resource adapter deployed in OC4J container (SOA 10.1.3.4).
I am attachments as body parts to the mime message. I am setting a InputStreamDataSource on the contents of the attachment which is a input stream. I am getting the below exception when i add the body parts to the MIME Multi Part using MulitPart.writeTo(bodypart)
java.lang.ClassCastException: java.lang.String
at oracle.j2ee.ws.saaj.soap.ch.XmlDataContentHandler.writeTo(XmlDataContentHandler.java:170)
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)
at javax.activation.DataHandler.writeTo(DataHandler.java:295)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:668)
at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
OC4J is using XMLDataContentHandler how can i resolve this issue. I tried registering the library which contains XMLDataContentHandler but same error is hit.
Any info will be helpfull in resolving this issue.
Thanksuser9055538 wrote:
i test the soa webservcies in a browserHi,
It would help if you could give us more details...
What type of soa webservices are we talking about here (JAX-RPC/BPEL/OSB)?
And how exactly are you testing your soa webservices in a browser (EM)?
A valid SOAP will have content-type: text/xml
You may be pointing to a invalid endpoint or you may have an authentication/authorisation problem, so you are receiving html instead of soap...
Cheers,
Vlad -
Hi Guys,
I am trying to integrate the Oracle Forms with BI Publisher.
When deploying the Web Service Stub at my development server, everything seem to be ok.
But when I am deploying it to production server at my client place its giving me following error
Exception: java.lang.Exception: java.lang.NoSuchMethodError: oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnectio.setPreemptiveBasicAuth(Z)V
Does any one have any idea from which jar file oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnectio.setPreemptiveBasicAuth(Z)V comes from?
Thanks & Regards,
RajenderRajender,
Forma have their own forum Forms
Timo -
Hi Kiran,
I setup a soa server on label DEVHCM, and I am using rel7 zip db because rel8 zip db has series performance issue.
I login as worker and create a goal , and submit for manager’s approve. But when manager trying to approve the goal, the access denied error happen, do you have suggestions on this.
<messages>
<input>
<approvalResult_InputVariable>
<part name="parameters">
<approvalResult>
<transactionId>300100015330778</transactionId>
<taskId>d39d4ca1-04cb-4709-b471-4020e236c5b8</taskId>
<result>APPROVED</result>
</approvalResult>
</part>
</approvalResult_InputVariable>
</input>
<fault>
<bpelFault>
<faultType>0</faultType>
<remoteFault>
<part name="summary">
<summary>access denied (oracle.wsm.security.WSFunctionPermission http://xmlns.oracle.com/apps/hcm/talent/common/transactionService/TalentTransactionService#approvalResult invoke)</summary>
</part>
<part name="detail">
<detail>oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client received SOAP Fault from server : access denied (oracle.wsm.security.WSFunctionPermission http://xmlns.oracle.com/apps/hcm/talent/common/transactionService/TalentTransactionService#approvalResult invoke)</detail>
</part>
<part name="code">
<code>{http://schemas.xmlsoap.org/soap/envelope/}Server</code>
</part>
</remoteFault>
</bpelFault>
</fault>
<faultType>
<message>0</message>
</faultType>
</messages>
Here is my wf_client_config.xml
<?xml version="1.0" encoding="UTF-8"?>
<workflowServicesClientConfiguration xmlns="http://xmlns.oracle.com/bpel/services/client">
<server name="default" default="true" clientType="REMOTE">
<localClient>
<participateInClientTransaction>false</participateInClientTransaction>
</localClient>
<remoteClient>
<serverURL>t3://slc03zii.us.oracle.com:7012/soa-infra/</serverURL>
<initialContextFactory>weblogic.jndi.WLInitialContextFactory</initialContextFactory>
<participateInClientTransaction>false</participateInClientTransaction>
</remoteClient>
<soapClient>
<rootEndPointURL>http://slc03zii.us.oracle.com:7012/soa-infra/</rootEndPointURL>
</soapClient>
</server>
</workflowServicesClientConfiguration>
And when I deploy talent application I check the mid tie of the talentTransactionService.Hi,
I am also facing a similar issue after deploying the web-service onto WebLogic Server. Not sure if it is related to deployment or security-related issue. Here are the exception details:
oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client received SOAP Fault from server : access denied (oracle.wsm.security.WSFunctionPermission http://xmlns.oracle.com/apps/scm/dos/supplyRequestDecomposition/receiveSupplyRequests/decompRcvService/ProcessSupplyOrdersService#createSupplyOrderHeaders invoke)
Anyone faced the similar issue? Help appreciated.
Thanks in advance,
Bhushan -
i see this error everywhere - In ULS logs, on site. On the site > Site settings > search keywords; I see this -
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS 7.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;} code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} .config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 40px;} ul.first,ol.first{margin-top:5px;} fieldset{padding:0 15px 10px 15px;} .summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin-top:0px; border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px solid #969696; border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;'.
I am facing issues in searching, my managed metadata service is not running, search results page throws internal error. Any Idea why this above error comes.
P.S: We use windows authentication in our environment.Hi IMSunny,
It seems you have solved this issue based on your another post.
http://social.technet.microsoft.com/Forums/en-US/aa468ab0-1242-4ba8-97ea-1a3eb0c525c0/search-results-page-throws-internal-server-error?forum=sharepointgeneralprevious
Thanks
Daniel Yang
TechNet Community Support -
Hi all,
We are trying to interact with Documentum server through DFS exposed WCF which communicates through port 9443 and we are provided with documentum issued Public Key certificates. We have successfully imported the certificates in client machine and configured
the bindings as below in our .Net web application config file.
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding
name="ObjectServicePortBinding1">
<security
mode="Transport">
<transport
clientCredentialType="None"
proxyCredentialType="None"
realm=""
/>
<message
clientCredentialType="Certificate"
algorithmSuite="Default"
/>
</security>
</binding>
<binding
name="QueryServicePortBinding">
<security
mode="Transport">
<transport
clientCredentialType="None"
proxyCredentialType="None"
realm=""
/>
<message
clientCredentialType="Certificate"
algorithmSuite="Default"
/>
</security>
</binding>
</wsHttpBinding>
</bindings>
Also, we set the message encoding as MTOM and the wcf client object initialization code snippet is as below,
ObjectServicePortClient
serviceClient = new
ObjectServicePortClient(new
WSHttpBinding("ObjectServicePortBinding1"),
new
EndpointAddress(UriUtil.ObjectServiceUri));
if (serviceClient.Endpoint.Binding
is
WSHttpBinding)
WSHttpBinding
wsBinding = serviceClient.Endpoint.Binding as
WSHttpBinding;
wsBinding.MessageEncoding =
"MTOM".Equals(transferMode) ?
WSMessageEncoding.Mtom :
WSMessageEncoding.Text;
serviceClient.Endpoint.Behaviors.Add(new
ServiceContextBehavior(Config.RepositoryName,
Config.DocumentumUserName,
Config.DocumentumPassword));
When we execute the above code, we are getting error message as below,
Exception: The content type text/xml;charset=utf-8 of the response message does not match the content type of the binding (multipart/related; type="application/xop+xml"). If using a custom encoder, be sure that the IsContentTypeSupported
method is implemented properly. The first 407 bytes of the response were: '<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"><faultcode>S:VersionMismatch</faultcode><faultstring>Couldn't
create SOAP message. Expecting Envelope in namespace http://schemas.xmlsoap.org/soap/envelope/, but got http://www.w3.org/2003/05/soap-envelope </faultstring></S:Fault></S:Body></S:Envelope>'
Then, we changed the bindings as below
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding
name="ObjectServicePortBinding1">
<security
mode="Transport">
<transport
clientCredentialType="Certificate"
proxyCredentialType="None"
realm=""
/>
<message
clientCredentialType="Certificate"
algorithmSuite="Default"
/>
</security>
</binding>
<binding
name="QueryServicePortBinding">
<security
mode="Transport">
<transport
clientCredentialType="
Certificate"
proxyCredentialType="None"
realm=""
/>
<message
clientCredentialType="Certificate"
algorithmSuite="Default"
/>
</security>
</binding>
</wsHttpBinding>
</bindings>
We are getting another error message,
Exception: The client certificate is not provided. Specify a client certificate in ClientCredentials.
Any pointers on resolving this issue would be highly helpful.
ThanksHi Dhanasegaran,
As per your case, the corresponding details which may guide you to resolve this issue:
1. First of all, you can try to call the wcf service directly from the browser & check where it will point out the correct location.
2. In config file ,Set IncludeExceptionDetailInFaults to true to enable exception information to flow to clients for debugging purposes .
Set this to true only during development to troubleshoot a service like below :
<serviceBehaviors>
<behavior name="metadataAndDebugEnabled">
<serviceDebug
includeExceptionDetailInFaults="true"
/>
<serviceMetadata
httpGetEnabled="true"
httpGetUrl=""
/>
</behavior>
</serviceBehaviors>
3. I suggest you to change that <security mode ="TransportWithMessageCredential"> instead of <security mode ="Transport">
for more information, refer the following link :
https://msdn.microsoft.com/en-us/library/aa354508(v=vs.110).aspx -
I have a WCF service I am trying to run on a new installation of 64-bit Windows Server 2008 IIS. Although it runs fine on Windows 2003 IIS, it is throwing the error in the thread title, which appears to be a server config issue, but I am not sure. Googling and searching the MSDN forums did not turn up a solution. I tried running WCF Logging, but that didn't help either.
Does anyone have any suggestions on how to solve this probelm?
Here is the error:
The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>500 - Internal server error.</title>
<style type="text/css">I have the same issue on Windows 7 machine. The service works fine using a SoapUI client but a .Net client faisl to get a response.
Hi,
I have a WCF service which works perfectly when using SoapUI but throws error in my .Net client.
{"The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first
1024 bytes of the response were: '<HTML><HEAD><link rel=\"alternate\" type=\"text/xml\" href=\"http://xyz.mysite.com/ysa/Broker.svc?disco\"/><STYLE type=\"text/css\">#content{ FONT-SIZE: 0.7em;
PADDING-BOTTOM: 2em; MARGIN-LEFT: 30px}BODY{MARGIN-TOP: 0px; MARGIN-LEFT: 0px; COLOR: #000000; FONT-FAMILY: Verdana; BACKGROUND-COLOR: white}P{MARGIN-TOP: 0px; MARGIN-BOTTOM: 12px; COLOR: #000000; FONT-FAMILY: Verdana}PRE{BORDER-RIGHT: #f0f0e0 1px solid; PADDING-RIGHT:
5px; BORDER-TOP: #f0f0e0 1px solid; MARGIN-TOP: -5px; PADDING-LEFT: 5px; FONT-SIZE: 1.2em; PADDING-BOTTOM: 5px; BORDER-LEFT: #f0f0e0 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #f0f0e0 1px solid; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e5e5cc}.heading1{MARGIN-TOP:
0px; PADDING-LEFT: 15px; FONT-WEIGHT: normal; FONT-SIZE: 26px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: -30px; WIDTH: 100%; COLOR: #ffffff; PADDING-TOP: 10px; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #003366}.intro{MARGIN-LEFT: -15px}</STYLE><TITLE>Broker
Service</TITLE></HEAD><BODY><DIV id=\"content\"><P class=\"head'."}
I have the same service hosted on my local machine and when I point to the local service I can execute the operation with no issues. The message encoding is Soap11. I tried changing to Soap12 but I get exact same error. Any ideas greatly appreciated.
I do have windows Activation Features installed and I am using .Net Framework 4.
Thanks
Sofia Khatoon -
Deploy error: j2ee version "2.4" not a valid enumeration type.
Hi!
I'm tasked with upgrading from WL Server 9.2 to 10.0, and got a strange error when deploying, namely that the contents of the version field of the web-app tag is not a valid enumeration value -- despite what the xsd says about it:
[wldeploy] weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
[wldeploy] problem: cvc-enumeration-valid: string value '2.4' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null>
BUILD FAILED
/home/lars/Programming/Eclipse/ampep/Aas/build.xml:562: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 102 failed: [Deployer:149026]redeploy application AmpEP on amplexServer.
Target state: redeploy failed on Server amplexServer
weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
problem: cvc-enumeration-valid: string value '2.4' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null>The start of the web.xml in question is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">If I remove the version attribute, it deploys under 10.0, but not under 9.2 (which we will be running until we're sure 10.0 works). Why is it going counter to the xsd? Is there something I can declare to make it happy? I notice the namespace ending in :<null>, is that a problem?
Thanks in advance,
-Lars ClausenHi,
I am also facing the same issue, Can you please tell me the solution if you have found anything...
Regards
Mani -
All the instructions I find when searching for how to ADD a file type just explain how to manage how Firefox handles that file type. And that is not possible when the file type is not in the list.
Usually MOV is played by the QuickTime plugin. Some other plugins also may handle MOV. This is handled by entries in a hidden database, but you can view the contents if you type or paste about:plugins in the address bar and press Enter.
In looking at your plugins list under "More System Details" I don't see QuickTime. Is it disabled (set to "never activate") on the Add-ons page? Missing?
Tools menu > Add-ons > ''in the left column, click'' Plugins -
Flash is not listed the Content type list in the applications tab Firefox prefs.
I can download Flash files and save them but they will not automatically open Flash when downloaded . . . normally a mime or what FF class Content type . . .
-
Group by collapsed not working for external content type
Hi,
I've got a list that displays data from external content type and I need it to be grouped by a column and have it collapsed by default.
The problem I have is that on a page by itself everything works fine. But when I add the list on a page with other web parts rendering the list as collapsed doesn't work as expected.
It will render the group headers correctly and everything is collapsed. But when I expand one of the groups ALL items are shown under that group, even the ones that belong to some other group. I then expand another group and it also shows ALL items. But when
I set the default to expanded each group header only has the items that belong to it, even if I collapse it and then expand again.
As I said, having the groups collapsed works fine if the listview is by itself on a web part page, but as soon as I add another web part (doesn't matter what type) it stops working.
Is this a bug or might there be something I'm doing wrong?Hi,
As this issue is submitted via internal pipeline without external URL can be provided, we will keep focus on it to see if there any update.
If there is an urgent requirement, I would suggest you call MS Customer Support Services for quick replies:
http://support.microsoft.com/
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
Custom Action not Binding to custom content type
I'm trying to create a custom action to replace the save button in the ribbon for publishing pages that have a specific content type. For some reason it isn't showing up on the publishing pages with the specified content type. Here is the xml:
<CustomAction Id="30c31720-e337-451c-a7ac-a68d09f64a37.RibbonCustomAction2"
RegistrationType="ContentType"
RegistrationId="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D0095AC9C03A12F40F9A023F6278B841536"
Location="CommandUI.Ribbon"
Sequence="1006"
Title="Invoke 'RibbonCustomAction1' action">
<CommandUIExtension>
<!--
Update the UI definitions below with the controls and the command actions
that you want to enable for the custom action.
-->
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.WikiPageTab.EditAndCheckout.Controls._children">
<Button Id="Ribbon.ListItem.Actions.RibbonCustomAction1Button"
Alt="Save"
Sequence="1"
Command="Invoke_RibbonCustomAction1ButtonRequest"
LabelText="Save"
TemplateAlias="o1"
Image32by32="_layouts/15/1033/images/formatmap32x32.png?rev=38"
Image32by32Top="-171"
Image32by32Left="-409"
Image16by16="_layouts/15/1033/images/formatmap16x16.png?rev=38" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="Invoke_RibbonCustomAction1ButtonRequest"
CommandAction="~remoteAppUrl/CustomActionTarget.aspx?{StandardTokens}&SPListItemId={SelectedItemId}&SPListId={SelectedListId}"/>
</CommandUIHandlers>
</CommandUIExtension >
</CustomAction>
However, if I remove the RegistrationType and RegistrationID the custom action does show up but it is on all pages. any ideas?Hi David,
According to your description, my understanding is that you want to add the custom action which bind to the content type to the Ribbon.WikiPage.Tab location.
I reproduced the issue with the code below, if I add the RegistrationType="ContentType" and RegistrationId="0x01"
to the custom action element, the button disappear in the ribbon, if I removed the button will again appear.
Here is my test code without binding content type snippet:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="Ribbon.WikiPageTab.CustomGroup"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.WikiPageTab.Groups._children">
<Group
Id="Ribbon.WikiPageTab.CustomGroup"
Sequence="55"
Description="Custom Group"
Title="Custom"
Command="EnableCustomGroup"
Template="Ribbon.Templates.Flexible2">
<Controls Id="Ribbon.WikiPageTab.CustomGroup.Controls">
<Button
Id="Ribbon.WikiPageTab.CustomGroup.CustomGroupHello"
Command="CustomGroupHelloWorld"
Image16by16="Insert an image URL here."
Image32by32="Insert an image URL here."
LabelText="Hello, World"
TemplateAlias="o2"
Sequence="15" />
<Button
Id="Ribbon.WikiPageTab.CustomGroup.CustomGroupGoodbye"
Command="CustomGroupGoodbyeWorld"
Image16by16="Insert an image URL here."
Image32by32="Insert an image URL here."
LabelText="Good-bye, World"
TemplateAlias="o2"
Sequence="18" />
</Controls>
</Group>
</CommandUIDefinition>
<CommandUIDefinition
Location="Ribbon.WikiPageTab.Scaling._children">
<MaxSize
Id="Ribbon.WikiPageTab.Scaling.CustomGroup.MaxSize"
Sequence="15"
GroupId="Ribbon.WikiPageTab.CustomGroup"
Size="LargeLarge" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="EnableCustomGroup"
CommandAction="javascript:return true;" />
<CommandUIHandler
Command="CustomGroupHelloWorld"
CommandAction="javascript:alert('Hello, world!');" />
<CommandUIHandler
Command="CustomGroupGoodbyeWorld"
CommandAction="javascript:alert('Good-bye, world!');" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>
In this case, I suggest you can add the custom action directly to the ribbon without binding to the content type and it will work as expected.
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected].
Maybe you are looking for
-
How To Reset a Form (Not as easy as you would think)?
Hi All, I'm unable to get a form to reset its value when using a commandButton that has immediate set to true. I've got a simple little jsf page that has a form and a datatable. The form is bound to an object in a class I'm using to handle the view,
-
Emails sent from alias are not appearing as alias address with recipients
I have a personal domain name email alias. I have linked this to a free Outlook account. I have set up the outlook account on TB using my personal domain alias. However, when I send an email using the alias, it appears in the recipient's inbox as com
-
Acknowledgment for Http Adapter
hi, how to receive an acknowledgment in a HTTP-XI asynchronous scenario...? Is there any possibilities? Thanks, RPN Edited by: RPN on Aug 11, 2008 7:57 AM
-
Custom component composed of other components
Hello. I have a form (long, but simple) that is reused a few times across my applicaition. It would be great if I could package it as a JSF component. But I see no obvious way to create an UIComponent composed of other UIComponents. Are UIComponents
-
Hai, Have any one of you done coding for Single table using Matrix. eg. <b>Field in Table</b> GroupCode GroupName i need to use matix for this and do following "ADD" "Update". 1.I need to create the form using Screen painter. 2. Bind the table and fi