Skip to content

Instantly share code, notes, and snippets.

View BrandonMathis's full-sized avatar
🌸
me like code

BrandonMathis BrandonMathis

🌸
me like code
View GitHub Profile
@BrandonMathis
BrandonMathis / gist:8978987
Last active August 29, 2015 13:56
Close ProviderRequestSession Error
<!-- SOAP request: http://esb.terawe.com/ESB/Services/ProviderRequestService.svc -->
<!-- SOAPAction: "http://www.openoandm.org/xml/ISBM/CloseProviderRequestSession", Content&#45;Type: text/xml;charset=UTF&#45;8, Content&#45;Length: 427 -->
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:isbm="http://www.o
penoandm.org/xml/ISBM/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<isbm:CloseProviderRequestSession>
<isbm:SessionID>fd0bad5e-f181-4a06-814f-b96d0abdbfb5</isbm:SessionID>
</isbm:CloseProviderRequestSession>
</env:Body>
@BrandonMathis
BrandonMathis / gist:8979652
Last active August 29, 2015 13:56
PostRequest Error
<!-- SOAP request: http://esb.terawe.com/ESB/Services/ConsumerRequestService.svc -->
<!-- SOAPAction: "http://www.openoandm.org/xml/ISBM/PostRequest", Content&#45;Type: text/xml;charset=UTF&#45;8, Content&#45;Length: 1959 -->
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:isbm="http://www.o
penoandm.org/xml/ISBM/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<isbm:PostRequest>
<isbm:SessionID>5de0b5ba-8486-4551-9d75-6af72422be0c</isbm:SessionID>
<isbm:MessageContent>
<bod:ProcessRegistry xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
@BrandonMathis
BrandonMathis / gist:9096115
Created February 19, 2014 16:49
Posting message to old session
<?xml version="1.0" encoding="UTF-8"?>
<!-- SOAP request: http://esb.terawe.com/ESB/Services/ConsumerRequestService.svc -->
<!-- SOAPAction: "http://www.openoandm.org/xml/ISBM/PostRequest", Content&#45;Type: text/xml;charset=UTF&#45;8, Content&#45;Length: 1959 -->
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:isbm="http://www.openoandm.org/xml/ISBM/" xmlns:env="http://schemas.xmsoap/envelope/">
<env:Body>
<isbm:PostRequest>
<isbm:SessionID>ddbbf086-969f-45c6-8c13-43145ac6ab22</isbm:SessionID>
<isbm:MessageContent>
<bod:ProcessRegistry xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
<div id="jstree">
<ul>
<script id="metamorph-7-start" type="text/x-placeholder"></script><script id="metamorph-2-start" type="text/x-placeholder"></script>
<li id="ember495" class="ember-view registry tree-node" data-jstree="{ &quot;opened&quot;: true, &quot;icon&quot;:&quot;glyphicon glyphicon-list-alt&quot; }">
<a id="ember498" class="ember-view active" href="#/registries/1">
<span data-ember-action="1">
<script id="metamorph-8-start" type="text/x-placeholder"></script>Registry A<script id="metamorph-8-end" type="text/x-placeholder"></script>
</span>
</a>
<ul>
section.community
header.splash
p
line-height: 0
margin-top: 30px
section.service_offering_list
section.service_offering
@include grid-column(4)
margin-top: 20px
header
module SVG
class ImportJob < Struct.new(:xml, :user_id, :filename)
def self.enqueue(xml, user_id, options = {})
options[:job_type] ||= 'SVG Import'
doc = Nokogiri.strict_parse(xml)
if Delayed::Worker.delay_jobs
Delayed::Job.enqueue(SVG::ImportJob.new(doc.to_xml, user_id, options[:filename]), queue: options[:job_type])
else
SVG::ImportJob.new.import(doc)
end
before_install:
- sudo add-apt-repository -y ppa:moti-p/cc
- sudo apt-get update
- sudo apt-get -y --reinstall install imagemagick
- sudo apt-get -y --reinstall install wkhtmltopdf
- sudo apt-get -y install liblcms2-dev
- sudo apt-get -y install librsvg2-bin
diff --git a/public/xml_schemas/syspro.xsd b/public/xml_schemas/syspro.xsd
index f7ce7f1..7328128 100644
--- a/public/xml_schemas/syspro.xsd
+++ b/public/xml_schemas/syspro.xsd
@@ -30,7 +30,7 @@
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="OrderDetails" minOccurs="0">
+ <xs:element name="OrderDetails">
<?xml version="1.0"?>
<SalesOrders>
<OrderHeader>
<WupOrderId>adc739459d556aef58ea94af692273</WupOrderId>
<WupCustId>1</WupCustId>
<OrderActionType>A</OrderActionType>
<OrderDate>2015-08-12T13:30:05-04:00</OrderDate>
<CustomerID/>
<CustomerName>Siennaaaa Bartolettiaaa</CustomerName>
<CustomerEmail>trey.waelchi1@valleyforgefabricstest.com</CustomerEmail>
class Symbol
def to_ccom
self case
when :id_in_source
return "IdInInfoSource"
when :guid
return "GUID"
else
return self.to_s.camelize
end